cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10778
Views
0
Helpful
2
Replies

Command to show all possible routes

Arun
Level 1
Level 1

Hi Experts,

Is there any way/command to see all the possible routes to the particular destination irrespective of routing protocols. For example, you have external bgp and floating static route to the destination. sh ip route will show only the best route.. sh ip bgp x.x.x.x would show only the bgp routes.. but i want to see eBGP and static route using show command.

Thanks,

Arun

1 Accepted Solution

Accepted Solutions

Ajay Raj
Level 1
Level 1

Only best routes from Routing Protocols are installed in Routing Table. ie., show ip route.

There is no other way other than checking in topology tables...

View solution in original post

2 Replies 2

Ajay Raj
Level 1
Level 1

Only best routes from Routing Protocols are installed in Routing Table. ie., show ip route.

There is no other way other than checking in topology tables...

gpiermattei
Level 1
Level 1

Yes, there is a way:

* Do a "show running-config" and search for all the routes configured by user. For instance, in my case I have a floating static route as a OSPF backup, so in running config I have:

ip route 10.0.1.0 255.255.255.0 10.0.0.1 120

This route will not be shown in "show ip route" while OSPF is running, but as soon as OSPF routes fail, the floating will be shown in the ip route table.

 

With OSPF running:

R2# show ip route
O 10.0.1.0/24 [110/2] via 10.0.0.1, 00:24:46, GigabitEthernet0/2/0

 

With OSPF down:

R2(config)# no router ospf 1
R2# show ip route
S 10.0.1.0/24 [120/0] via 10.0.0.1