cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1000
Views
0
Helpful
1
Replies

Inter-Vlan Hostname resolution

murmucka
Level 1
Level 1

Hi,

 

i have the following problem: host-name resolution works only within the same VLAN. To reach hosts in different vlan (on the same router c1111-4P) works only via IP address, not via hostname. Relevant config parts:

 

....
ip name-server 1.1.1.1 8.8.8.8
ip dhcp excluded-address 10.0.10.0 10.0.10.99
ip dhcp excluded-address 10.0.20.0 10.0.20.99
ip dhcp excluded-address 10.0.99.0 10.0.99.99
!
ip dhcp pool ClientPrinter
 network 10.0.10.0 255.255.255.0
 default-router 10.0.10.2
 dns-server 10.0.10.2
 lease 1 1 1
!
ip dhcp pool ManagementNetwork
 network 10.0.99.0 255.255.255.0
 default-router 10.0.99.2
 dns-server 10.0.99.2
 lease 1 1 1
!
ip dhcp pool IoT
 network 10.0.20.0 255.255.255.0
 default-router 10.0.20.2
 dns-server 10.0.20.2
 lease 1 1 1

....
interface Vlan1
 no ip address
 shutdown
!
interface Vlan10
 description *** ClientPrinter ***
 ip address 10.0.10.2 255.255.255.0
 ip nat inside
!
interface Vlan20
 description *** IoT ***
 ip address 10.0.20.2 255.255.255.0
 ip nat inside
!
interface Vlan99
 description *** Management ***
 ip address 10.0.99.2 255.255.255.0
 ip nat inside
!

...

1 Reply 1

pieterh
VIP
VIP

currently you assign each dhcp scope / vlan a different dhcp server : 
dns-server 10.0.10.2
dns-server 10.0.99.2
dns-server 10.0.20.2  
=> first suggestion is using the same DNS server for all hosts

if not you need to configure all your DNS servers to query each other if a host is not found locally