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

Clients can be pinged by hostname only if my pc is in the same pool of the dhcp server of the clients in a cisco switch.

rogermg80
Level 1
Level 1

HI. I running many dhcp servers in a cisco switch. I would will like to have access to the clients by hostnames from a computer. The problem is that i only can do it in the network connected to my computer. Even if i switch to another one the same happens. I only can access the others networks dhcp clients by IP. My gateway is the router IP , each vlan has an static ip in the router. DHCP servers are using public dns server. Idont have a dns server in my network, I would like to use the switch if possible.

Thanks

5 Replies 5

Jaderson Pessoa
VIP Alumni
VIP Alumni
Which DNS are you using in your clients? You cant use public DNS and try to ping his hostname locally. If you want manage your device trough hostname you need install a locally DNS to manage them, not public.
Jaderson Pessoa
*** Rate All Helpful Responses ***

Thanks for the replay. Yes i understand but I found that the dhcp server
in the switch is resolving names but only if you are in the same network.
When Im connected to another network provided by another DHCP server from
the same switch I cant ping by hostname.
I thought that the switch was capable to resolve hostname, so i dont need
to install a dns server, i dont understand why this is happening.

Thanks.

Hello,

 

out of curiosity: are you talking about the FQDN or the WINS/Netbios name ? Just in case you mean the WINS name, try and configure the below:

 

Globally:

 

ip forward-protocol udp 138
ip forward-protocol udp 137

 

And on the VLAN interfaces:

 

ip directed-broadcast

To be able to understand this and to be able to provide good answers we need additional details. As a start pick one of the PCs that can not ping by name and provide information about that PC including IP address, mask, default gateway, and DNS server (the output of ipconfig /all would be the easy way to do this). From the switch please post the output of the command

show ip interface brief, the configuration of the various dhcp pools, and the name and address and the device that you are attempting to ping.

 

HTH

 

Rick

HTH

Rick

Hello,

 

on a side note, if you don't have a DNS server, but you want to use your IOS device to resolve hostnames, you have to configure something like the below. That said, I am not sure you can do it on a switch, I think you need a router (check if the 'ip dns server' command is available, as that enables the DNS service):

 

S1#configure terminal
S1(config)# ip dns server
S1(config)# ip domain-lookup
S1(config)# ip name-server 8.8.8.8
S1(config)# ip name-server 8.8.4.4
S1(config)# ip host PC1 192.168.1.2
S1(config)# ip host PC2 192.168.2.2
S1(config)# ip host PC3 192.168.3.2

Review Cisco Networking for a $25 gift card