Does IOS Have Something Like the PIX Name Config Command?

Answered Question
Apr 25th, 2007
User Badges:

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!

Correct Answer by Johan Van Der W... about 10 years 2 months ago

ip host serverA

(to test, ping serverA)

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
dgahm Wed, 04/25/2007 - 08:36
User Badges:
  • Blue, 1500 points or more


In IOS you use IP Host:

ip host exampleserver

Please rate helpful posts.


bbeal Thu, 04/26/2007 - 09:33
User Badges:

Thanks! Just curious, but is there anyway to get the router to use that info, like in a SHOW ARP, etc?

sundar.palaniappan Thu, 04/26/2007 - 09:44
User Badges:
  • Green, 3000 points or more

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 1 FULL/BDR 00:00:32 Ethernet0/0

R1#config t

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#ip host R2

R1(config)#ip ospf name-lookup




R1#show ip ospf nei

Neighbor ID Pri State Dead Time Address Interface

R2 1 FULL/BDR 00:00:35 Ethernet0/0 ---> the command(s) caused the neighbor ID to be displayed as host name instead of the IP address.



bbeal Thu, 04/26/2007 - 11:36
User Badges:

Nice! Too bad nothing else uses the name-lookup feature. We are running EIGRP. I appreciate the info though.


This Discussion