08-26-2009 07:45 AM - edited 03-06-2019 07:26 AM
Hi
Can you please tell me a command to find out which routes are being advertised by a neighbour?
Thanks
Dan
08-26-2009 07:50 AM
Dan
Are you asking for a command that ONLY shows routes from a certain neighbour? if so then I know of no command, and I just dump in a excel sheet and filter out everything else.
or
Are you asking to which neighbour a packet will go when being routed? if so the simple
sh ip route x.x.x.x
will show that.
hope this helps
Kev
08-26-2009 11:21 AM
Basically it depends on the routing protocol that is used.
For example, it will be "Router#show ip ospf neighbour", if it has configured with OSPF.
08-30-2009 03:47 AM
The "show ip ospf neighbor" command is just going go show you information about your neighbors such as the IP address of the neighbor etc. If you type "show ip route" look for where it says VIA.
For Example
192.168.10.0 via 192.168.20.1 Which means the 192.168.10.0 network was learned from 192.168.20.1. If yo have multiple networks which which advertised from 20.1 you can also see those.
08-30-2009 10:11 AM
Hi Dan,
It depends of the routing protocol:
RIP:
debug ip rip
EIGRP:
- debug ip EIGRP but you need to clear the session
- sh ip eigrp topology
OSPF:
You need to check per LSA type:
sh ip ospf database
BGP:
If you want to know all the prefixes you received before your inbound filtering policy filters them, you need the soft-configuration inbound feature:
http://www.cisco.com/en/US/docs/ios/12_1/iproute/command/reference/1rdbgp.html#wp1020388
The use the show ip bgp neighbor x.x.x.x received-route command
I've just notice the title focus on EIGRP only ;-) but didn't want to remove all I wrote in case it may help others.
Laurent.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide