03-17-2008 05:10 AM - edited 03-03-2019 09:10 PM
Could you please tell me how we can see hostnames of OSPF routers in an output of 'show ip ospf neighbours'.
What is the command we can put in OSPF configuration? Please advice.
03-17-2008 05:16 AM
Azmath
I am not aware of any way to have the command show ip ospf neighbor to show the host name rather than the IP address of the neighbor.
HTH
Rick
03-17-2008 05:16 AM
Hi,
Kindly try "ip ospf name-lookup" in the global configuration.
BR,
Mohammed Mahmoud.
03-17-2008 01:37 PM
Mohammed
Thanks for pointing out a command that I had forgotten. It deserves the rating that I gave it.
HTH
Rick
03-18-2008 12:46 AM
Hi Rick,
You are very welcomed, this is nothing beside what i've learned from you on this forum. Thank you very much for the rating.
BR,
Mohammed Mahmoud.
03-17-2008 05:24 AM
Hello,
Yes, Mohammed is right. You should have a DNS server configured (ip name-server
Kind Regards,
M.
03-17-2008 05:33 AM
Hi,
Mohammed is right.
However, some "show commands in OSPF will take sometime to provide you the output if...
- DNS is not configured properly in the router
- Router lost connection to DNS
- DNS is not available
...so if this happens and you are troubleshooting OSPF, you can issue a "show" command and prepare a cappuccino :)
Regards,
Dandy
03-17-2008 06:02 AM
Hi,
When i've used this command, i've always used local resolution to resolve the RIDs rather than using a DNS server, but agree with you regarding the DNS server issues:
ip host R5 151.5.5.5
ip ospf name-lookup
R6(config)#do sh ip os ne
Neighbor ID Pri State Dead Time Address Interface
R5 1 FULL/BDR 00:00:33 150.1.1.5 FastEthernet0/0
BR,
Mohammed Mahmoud.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: