cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
736
Views
5
Helpful
5
Replies

Does IOS Have Something Like the PIX Name Config Command?

bbeal
Level 1
Level 1

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!

1 Accepted Solution

Accepted Solutions

ip host serverA 10.10.10.1

(to test, ping serverA)

View solution in original post

5 Replies 5

dgahm
Level 8
Level 8

Barry,

In IOS you use IP Host:

ip host exampleserver 10.1.1.1

Please rate helpful posts.

Dave

ip host serverA 10.10.10.1

(to test, ping serverA)

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

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

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

Review Cisco Networking for a $25 gift card