cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1091
Views
13
Helpful
6
Replies

How to access DNS from across different VLAN

Evievie
Level 1
Level 1

I have two separate VLANS

VLAN 101 - 192.168.101.98
VLAN 150 - 192.168.150.98
DNS - 192.168.150.254
PC - 192.168.101.2
PC - Default Gateway - 192.168.101.1
PC - DNS - 192.168.150.254

My DNS server exists on VLAN 150. The PC on VLAN 101 directly references the ip address of the DNS.
How do you properly configure the DNS for different VLANS?
At the moment the PC cannot find the DNS server.

6 Replies 6

there is inter-VLAN between these two VLAN ??

That is correct. The router configurations are as follows
interface gig 0/1.101 - 192.168.101.1
interface gig 0/1.15 - 192.168.150.1

That should be
interface gig0/1.150

The sub-interface number is not relevant here as long as the encapsulation command is having the right VLAN. So, what commands are under the sub-interface?

no matter the number in subinterface g0/0.x
the matter and that not make subinterface work is what you use in
encapsulation dot1q Y <<- this must be same as VLAN ID in SW, otherwise the subinterface config is wrong

also please make tracreroute & ping from both PC in both VLAN to DNS server
please share the output here

NetworkDave
Spotlight
Spotlight

@Evievie,

Please send a topology image and a zipped packet tracer file, if available.

You provided IP addresses, what are the associated subnet masks?

Are both of the VLANS (101 & 150) on the same switch or separate switches?

How many switches are between the End devices and their respective router?

How many routers is there (one or multiple)? If multiple routers, are there switches between them?

Can the VLAN101 PC ping the VLAN150 DNS server and/or a VLAN150 PC? If not, can VLAN101 PC ping its own gateway?

Also, Please read the post from @MHM Cisco World in regards to testing connectivity between VLAN101 & VLAN150.

----------------------------------------------------------------------------------------------------
Remember to mark helpful posts and mark the correct answer as a solution; It helps other users with similar questions.

Review Cisco Networking products for a $25 gift card