10-21-2009 10:54 AM - edited 03-06-2019 08:14 AM
I just took over the management of a new switch and I saw this in the config.
IP HOST cdc 10.51.x.x
Anybody know what purpose this serves?
I saw this in cisco help but I still do not know what the use of this IP HOST is.
ip host
To define a static host name-to-address mapping in the host cache, use the ip host global configuration command. To remove the name-to-address mapping, use the no form of this command.
ip host name [tcp-port-number] address1 [address2...address8]
no ip host name address
Syntax Description
name
Name of the host. The first character can be either a letter or a number. If you use a number, the operations you can perform are limited.
tcp-port-number
(Optional) TCP port number to connect to when using the defined host name in conjunction with an EXEC connect or Telnet command. The default is Telnet (port 23).
address1
Associated IP address.
address2...address8
(Optional) Additional associated IP address. You can bind up to eight addresses to a host name.
Solved! Go to Solution.
10-22-2009 08:03 AM
John
"it has always worked on the device where it is configed. I was hoping it would work from another device."
Ahhh, i see :-)
Well you can get it work from another device but you need to configure the router/switch that has the ip host entry as a DNS server. So
R1
==
ip host oh3 192.168.10.1
int s0/0
ip address 192.168.5.1 255.255.255.252
ip dns server
R2
==
ip name-server 192.168.5.1
int s0/0
ip address 192.168.5.2 255.255.255.252
then from R2 you should be able to ping oh3.
So the ip host is used for local resolution on the router and also it can be used to resolve remote DNS queries but you must then configure the router as a DNS server.
Jon
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