Link to home
Start Free TrialLog in
Avatar of ingersoe
ingersoe

asked on

Change VLAN number and cannot ping default gateway

I have a question about configuring the VLANS on a Cisco switch.
I have a 2960 switch and have a 2811 router connected to it.  
I have configured the switchport that is connected to the router as a trunk.
The interface on the router is configured with IP 192.168.1.1
I have workstations on the switch and have their default gateway set as 192.168.1.1.
I can ping the default gateway fine from my workstations when they are in the default VLAN 1.
Now I create a VLAN 100 and move all access ports to it.
I can no longer ping the default gateway of 192.168.1.1 and I'm not sure why?
Can the router not accept tagged packets unless setup with subinterfaces?
ASKER CERTIFIED SOLUTION
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ingersoe
ingersoe

ASKER

So you're saying I could also set the Native VLAN to 100, then the switch would not tag any traffic from VLAN 100 and the router could see it?

If I changed the default-gateway on the hosts to 192.168.100.1, then I would also have to change all of their IP addresses also...assuming a /24 mask.

Is there no way to set encap dot1q 100 on the interface instead of a subinterface?
Each VLAN will have a different IP addressing scheme. If you VLAN 1 is using 192.168.1.0, then VLAN 100 will have to be something other than 192.168.1.0.
Thanks.  That's what I needed to know.