Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

"show ip route | include" output to telnet s/w

Guys, If you want to do a search of all prefixes in your routing table with the pipe/include options as below, how can you ensure that the output is not truncated as shown, ie if the prefix and information regarding that prefix will not fit on certain text boundary, the information for the prefix will be shown on two lines, and when you use the pipe/include, this gets omitted from the output?

Many thx indeed,

Ken

router>show ip route

D EX 16.16.16.0/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D 177.177.177.0/26

[170/6776] via 14.16.18.173, 2w1d, interface-x

D EX 15.15.15.0/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

.........

+5000 other prefixes

.........

router>sh ip route | incl 6776

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

[170/6776] via 14.16.18.173, 2w1d, interface-x

[170/6776] via 14.16.18.177, 2w1d, interface-y

D EX 15.15.15.0/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 16.16.16.0/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 15.15.15.64/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 16.16.16.64/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 15.15.15.128/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 16.16.16.128/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 15.15.15.192/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

D EX 16.16.16.192/26 [170/6776] via 18.18.18.2, 1w6d, interface-x

[170/6776] via 18.18.18.6, 1w6d, interface-y

--More--

1 REPLY
Bronze

Re: "show ip route | include" output to telnet s/w

The command "show ip route | include " is used for filtering output(lines from the show command) from the show command that matches the expression. Eventhough the information for the prefix is shown in two lines, but the match occurs on only the first line, hence the second line gets omitted in the output.

2052
Views
0
Helpful
1
Replies
CreatePlease to create content