11-29-2019 11:41 AM
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
11-29-2019 11:43 AM
11-29-2019 03:16 PM
11-30-2019 04:18 AM - edited 11-30-2019 04:24 AM
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
11-30-2019 11:18 AM
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
11-29-2019 02:56 PM
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
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