cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1799
Views
0
Helpful
15
Replies

IP HOST cdc ip.addr

john.wright
Level 3
Level 3

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.

15 Replies 15

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