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.
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
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.
(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).
Associated IP address.
(Optional) Additional associated IP address. You can bind up to eight addresses to a host name.
"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
ip host oh3 192.168.10.1
ip address 192.168.5.1 255.255.255.252
ip dns server
ip name-server 192.168.5.1
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.