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

VLANS across multiple switches

14101R14944A
Level 1
Level 1

Hi there, please move if in wrong forum

I have a single switch (Switch1 10.10.6.10) with three VLANS (VLAN200, VLAN300 and VLAN400)

I want to add two switches for more ports (Switch2 10.10.6.20 and Switch3 10.10.6.30) so all three switches have all three VLANS.

What are the commands I need to add to each switch to do this?

I have seen several examples on this forum, but not sure of the correct syntax

Thanks!

1 Accepted Solution

Accepted Solutions

Hello

I assume your switch 1 is the L3 switch performing the inter-vlan routing as such below is a basic config to the successful connection 

Switch1

int x/x
description link to switch 2
switchport mode trunk
no shut

exit

int x/x
description link to switch 3
switchport mode trunk
no shut

exit



Switch2
int vlan 200
Description MGT ip address for switch
ip address 10.10.6.20 255.255.255.0
no shut

no ip routing
ip default-gateway 10.10.6.10 

int x/x
description link to switch 1
switchport mode trunk
no shut

exit

vlan 200,300,400
exit

 

int x/x
description access-port for vlan 200
switchport host
switchport access vlan 200
no shut

exit

int x/x
description access-port for vlan 300
switchport host
switchport access vlan 300
no shut

exit

etc....

 

 

 

 

Switch3
int vlan 200
Description MGT ip address for switch
ip address 10.10.6.30 255.255.255.0
no shut

no ip routing
ip default-gateway 10.10.6.10 

int x/x
description link to switch 1
switchport mode trunk
no shut

exit

vlan 200,300,400
exit

int x/x
description access-port for vlan 200
switchport host
switchport access vlan 200
no shut

exit

int x/x
description access-port for vlan 300
switchport host
switchport access vlan 300
no shut

exit

etc....

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

3 Replies 3

luis_cordova
VIP Alumni
VIP Alumni

Hi @14101R14944A ,

 

The links that connect the switches must be configured in trunk mode:

 

S(config)# interface f0/x

S(config-if)# switchport mode trunk 

 

To create the vlan:

 

S(config)#  vlan 200

S(config-vlan)# name <vlan name>

 

Regards

 

 

Hello

I assume your switch 1 is the L3 switch performing the inter-vlan routing as such below is a basic config to the successful connection 

Switch1

int x/x
description link to switch 2
switchport mode trunk
no shut

exit

int x/x
description link to switch 3
switchport mode trunk
no shut

exit



Switch2
int vlan 200
Description MGT ip address for switch
ip address 10.10.6.20 255.255.255.0
no shut

no ip routing
ip default-gateway 10.10.6.10 

int x/x
description link to switch 1
switchport mode trunk
no shut

exit

vlan 200,300,400
exit

 

int x/x
description access-port for vlan 200
switchport host
switchport access vlan 200
no shut

exit

int x/x
description access-port for vlan 300
switchport host
switchport access vlan 300
no shut

exit

etc....

 

 

 

 

Switch3
int vlan 200
Description MGT ip address for switch
ip address 10.10.6.30 255.255.255.0
no shut

no ip routing
ip default-gateway 10.10.6.10 

int x/x
description link to switch 1
switchport mode trunk
no shut

exit

vlan 200,300,400
exit

int x/x
description access-port for vlan 200
switchport host
switchport access vlan 200
no shut

exit

int x/x
description access-port for vlan 300
switchport host
switchport access vlan 300
no shut

exit

etc....

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Thank you Paul!