cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1834
Views
0
Helpful
3
Replies

Connecting 2 switches while using VLANs

wordizbon
Level 1
Level 1

I'm new to this community and am not sure if this is the best place to post this but I'm trying to connect 2 switches and using VLANs in preparation for my CCNA. I set up VTP and it appears to be working well between the Server and Client. I've set up 3 VLANs and each has a default gateway and IP address as below:

Switch 1

VLAN1: IP - 192.168.1.2; Gateway - 192.168.1.1

VLAN2: IP - 192.168.2.2; Gateway - 192.168.2.1

VLAN3: IP - 192.168.3.2; Gateway - 192.168.3.1 802.1q

 

Switch 2

VLAN1: IP - 192.168.1.3; Gateway - 192.168.1.1

VLAN2: IP - 192.168.2.3; Gateway - 192.168.2.1

VLAN3: IP - 192.168.3.3; Gateway - 192.168.3.1 802.1q

 

Each have  ports assigned to them and and there is a switch port that is a trunk port connected between the 2 of them. I have no conflict with the native VLAN but I can only ping back and forth between VLAN 1. For some reason VLAN 2 is not able to ping back and forth between the switches. 

I have successfully simulated a router on a stick with 1 router/1 switch and proceeded to try an additional switch (switch 2) to see if I could test my knowledge a step further. 

Not sure what I'm missing or what I'm doing wrong. 

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

On your trunk port between switch 1 and 2 did you add vlan 2 and 3?

Also, are you using a router to route between vlans 1,2 and 3?  If so the connection between the router and the switch needs to be configured as trunk port with sub-interfaces configured on the router with .1q encapsulation and the gateway addresses (192.168.1.1, 2.1 and 3.1)

Also, can you post relevant config from all devices?

HTH

jhager001
Level 1
Level 1

Did you setup the router as your VTP Server and your switches blow as VTP clients?

Are you using packet tracer for this? or physical equipment?