Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Does IOS Have Something Like the PIX Name Config Command?

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

Re: Does IOS Have Something Like the PIX Name Config Command?

ip host serverA 10.10.10.1

(to test, ping serverA)

5 REPLIES
Blue

Re: Does IOS Have Something Like the PIX Name Config Command?

Barry,

In IOS you use IP Host:

ip host exampleserver 10.1.1.1

Please rate helpful posts.

Dave

Re: Does IOS Have Something Like the PIX Name Config Command?

ip host serverA 10.10.10.1

(to test, ping serverA)

New Member

Re: Does IOS Have Something Like the PIX Name Config Command?

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

Re: Does IOS Have Something Like the PIX Name Config Command?

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

New Member

Re: Does IOS Have Something Like the PIX Name Config Command?

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

265
Views
5
Helpful
5
Replies
CreatePlease to create content