Tuesday, March 10, 2020

Add Vlan to Cisco Switch

Bare with me as Cisco cli is not my forte, but can do it once pointed the right way

The switches are both Cisco SG300

We need a new vlan to be sent across the core switch over the uplink port to a 2nd switch in a different building (where we need the vlan)

I see the following on the Core switch

 interface gigabitethernet48 description "Trunk to Juniper Firewall port 6" spanning-tree portfast switchport trunk allowed vlan add 3,20,30,40,50,100,200 switchport trunk native vlan 2 

and, which is the uplink between the two switces

 interface gigabitethernet52 description "Uplink to sw-hanger-1 port gi28" switchport trunk allowed vlan add 2-3,20,30,40,50,100,200,220-221 switchport trunk allowed vlan add 230-231,240-241 

and my show vlan

 Vlan Name Ports Type Authorization ---- ----------------- --------------------------- ------------ ------------- 1 1 gi50-52,Po1-8 Default Required 2 2 gi48,gi50-52 static Required 3 3 gi48,gi50-52 static Required 20 20 gi48,gi50-52 static Required 30 30 gi48,gi50-52 static Required 40 40 gi48,gi50-52 static Required 50 50 gi48-52 static Required 100 100 gi1-25,gi27,gi29-48,gi50-52 static Required 200 Mesh gi26,gi28,gi48,gi50-52 static Required 220 name1 gi26,gi50,gi52 static Required 221 name2 gi26,gi50,gi52 static Required 230 name3 gi26,gi50,gi52 static Required 231 name4 gi26,gi50,gi52 static Required 240 name5 gi26,gi50,gi52 static Required 241 name6 gi26,gi50,gi52 static Required 

So I would assume I would need to add a vlan to the switch by

 config vlan database vlan 150 --- to add it exit 

Then configure the ports to add it correct?

 conf t int port gi48 (and port 52) switch port trunk allowed vlan add 150 end 

And that should add vlan 150 to the switch and then assign it to both port 48 and 58

And then do the same on the other switch



No comments:

Post a Comment