10-22-2022 06:43 AM
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.
10-22-2022 07:03 AM
there is inter-VLAN between these two VLAN ??
10-22-2022 08:36 AM
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
10-22-2022 08:37 AM
That should be
interface gig0/1.150
10-23-2022 03:08 AM
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?
10-23-2022 03:46 AM
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
10-23-2022 04:27 AM
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.
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