
showing "show ip route"
When I'm troubleshooting redistribution, I like to do a sh ip route | i via <neighbor's ip addr>. The problem is, sometimes (usually when working with EIGRP), I don't get the right stuff because the line is split. For example...
R2#sh ip rout | i via 152.1.125.5
[170/2560002816] via 152.1.125.5, 00:02:14, FastEthernet1/0
[170/2560002816] via 152.1.125.5, 00:02:14, FastEthernet1/0
[170/2560002816] via 152.1.125.5, 00:02:14, FastEthernet1/0
Notice that I get the lines that I searched for but they don't include the nets -- because they are on the lines just above what I got. I get the highlighted stuff because that's what my regexp matched. But what I really want are the nets, of course.
D EX 152.1.5.0/24
[170/2560002816] via 152.1.125.5, 00:10:25, FastEthernet1/0
D EX 152.1.45.4/32
[170/2560002816] via 152.1.125.5, 00:10:25, FastEthernet1/0
D EX 152.1.45.0/24
[170/2560002816] via 152.1.125.5, 00:10:25, FastEthernet1/0
Any idea on how to get sh ip route to put everything on one line so I can capture the right stuff? I tried increasing term width -- doesn't work. Any tips?
Comments
pls disregard -- a light just went on. [I]