04-25-2007 07:19 AM - edited 03-05-2019 03:41 PM
In a PIX/ASA you can use the following command:
name <ip_address of the server> <hostname of the server>
Is there anything like it in IOS? Thanks!
Solved! Go to Solution.
04-25-2007 07:59 PM
04-25-2007 08:36 AM
Barry,
In IOS you use IP Host:
ip host exampleserver 10.1.1.1
Please rate helpful posts.
Dave
04-25-2007 07:59 PM
ip host serverA 10.10.10.1
(to test, ping serverA)
04-26-2007 09:33 AM
Thanks! Just curious, but is there anyway to get the router to use that info, like in a SHOW ARP, etc?
04-26-2007 09:44 AM
I don't think there's a way to get to router use the host name for show arp but you can make ospf use the host name with the command 'ip ospf name-lookup'.
R1#show ip ospf nei
Neighbor ID Pri State Dead Time Address Interface
172.30.1.12 1 FULL/BDR 00:00:32 172.30.1.12 Ethernet0/0
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip host R2 172.30.1.12
R1(config)#ip ospf name-lookup
R1(config)#exit
R1#
R1#
R1#show ip ospf nei
Neighbor ID Pri State Dead Time Address Interface
R2 1 FULL/BDR 00:00:35 172.30.1.12 Ethernet0/0 ---> the command(s) caused the neighbor ID to be displayed as host name instead of the IP address.
HTH
Sundar
04-26-2007 11:36 AM
Nice! Too bad nothing else uses the name-lookup feature. We are running EIGRP. I appreciate the info though.
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