04-07-2016 03:29 PM - edited 03-08-2019 05:17 AM
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?
Solved! Go to Solution.
04-07-2016 03:34 PM
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?
04-07-2016 03:34 PM
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?
04-07-2016 03:55 PM
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.
04-07-2016 03:57 PM
So what has 192.168.20.1 and 192.168.30.1 configured on it? Where are these default gateways?
04-07-2016 04:05 PM
they are only configured on PC2 & PC3.
of course all three vlans are created on a layer 2 switch
04-07-2016 04:13 PM
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.
04-07-2016 05:51 PM
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!
04-07-2016 05:52 PM
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.
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