cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
379
Views
0
Helpful
7
Replies

vlan access link with router

herooft01
Level 1
Level 1

hello everyone. 

I have some problem and need help, I have 3 vlans created in 2 layer switch:

vlan 10 -> 192.168.10.0

vlan 20 -> 192.168.20.0

vlan 30 -> 192.168.30.0

and there are 3 PCs and they are associated to their vlans:

PC1: 192.168.10.2 and default gateway 192.168.10.1

PC2: 192.168.20.2 and default gateway 192.168.20.1

PC3: 192.168.30.2 and default gateway 192.168.30.1 

everything seems fine till now, the problem is the link from switch to router is not a trunk link, it's a vlan 10 access with it's default gateway.

I can ping from PC1 to default gateway of the router but the other PCs can't ping the default gateway

do I need to make all PCs default gateway 192.168.10.1? or there is some misconfiguration?

1 Accepted Solution

Accepted Solutions

Philip D'Ath
VIP Alumni
VIP Alumni

I think it is safe to assume there is some mis-configuration.

Does the router have 192.168.10.1, 20.1 and 30.1 configured on it?  If so, then the router should be plugged into a trunk port on the switch, not an access port.

What sort of switch is it, and what sort of router?

View solution in original post

7 Replies 7

Philip D'Ath
VIP Alumni
VIP Alumni

I think it is safe to assume there is some mis-configuration.

Does the router have 192.168.10.1, 20.1 and 30.1 configured on it?  If so, then the router should be plugged into a trunk port on the switch, not an access port.

What sort of switch is it, and what sort of router?

thanks for reply. 

I know about the trunk link and subinterfaces, but what is required from me in the project is a vlan 10 access link to router and no subinterfacess at all!

10.1 is configured in the router because I have a valn 10 access link.

So what has 192.168.20.1 and 192.168.30.1 configured on it?  Where are these default gateways?

they are only configured on PC2 & PC3.

of course all three vlans are created on a layer 2 switch

This is never going to work.  You have a fundamental issue with your design.

You need the default gateways, 192.168.20.1 and 192.168.30.1 actually configured on something that can do routing for you.

You need to either move the machines into VLAN10 and change them to use 192.168.10.x addresses, or setup the default gateways correctly.

yeah I believe so, it's confusing and it's the first time I see something like this. 

unfortunately, it's not a topology design issue, everything is clearly documented and verified. 

I tried to give all PCs 10.1 as a default gateway and it was working fine  and even pinging the other networks without any problem!!

to be clear, I used trunking in 2 other networks with subinterfaces without any problem, but in this network vlan 10 access link is required!

We'll have to agree to disagree.  It is a design issue.

Each VLAN needs a default gateway in it to route the packets - if you want traffic to be able to flow between the VLANs, or even just flow in and out of the VLANs to another destination.

Review Cisco Networking products for a $25 gift card