Does IOS Have Something Like the PIX Name Config Command?

Answered Question
Apr 25th, 2007

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!

I have this problem too.
0 votes
Correct Answer by Johan Van Der W... about 9 years 7 months ago

ip host serverA 10.10.10.1

(to test, ping serverA)

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
dgahm Wed, 04/25/2007 - 08:36

Barry,

In IOS you use IP Host:

ip host exampleserver 10.1.1.1

Please rate helpful posts.

Dave

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

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

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

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

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

Actions

This Discussion