.
.

Create new VLAN and move Interfaces into new VLAN

Create new VLAN and move Interface in New VLAN, check the configuration VLAN on Cisco Switch 2900 serie

Creating new VLANs and switch interface from VLAN 1 to VLAN 2 and VLAN 3

 

Switch 2900 serie

Switch#enable
Switch#class (password)

Switch#show vlan (view table VLANs where we can see info about inclusion interfaces, in this moment all the interfaces-ports belong to VLAN 1)

Switch#vlan database (entry in configuration mode for the VLAN on the switch, if we set a new VLAN)
Switch(vlan)#vlan 2 name VLAN2 (setting a new VLAN named VLAN2, be sure to put a number 2 next to the name of the VLAN)
Switch(vlan)#vlan 3 name VLAN3 (setting a new VLAN named VLAN3, be sure to put a number 3 next to the name of the VLAN)
Switch(vlan)#exit

Switch#configure terminal
Switch(config)#interface fastethernet 0/4 (entry in config mode fastethetnet interfaces 0/4)
Switch(config-if)#switchport mode access (change a switchport to a non-default VLAN, entry in config mode where we switch interface-port from the default VLAN 1 in the non-default Vlan in this case it is VLAN 2)
Switch(config-if)#switchport access vlan 2 (switching interfaces FA0/4 in VLAN 2)
Switch(config-if)#exit

Switch(config)#interface fastethernet 0/5 (entry in config mode fastethetnet interfaces 0/5)
Switch(config-if)#switchport mode access (change a switchport to a non-default VLAN, entry in config mode where we switch interface-port from the default VLAN 1 in the non-default Vlan in this case it is VLAN 2)
Switch(config-if)#switchport access vlan 2 (switching interfaces FA0/5 in VLAN 2)
Switch(config-if)#exit

Switch(config)#interface fastethernet 0/6 (entry in config mode fastethetnet interfaces 0/6)
Switch(config-if)#switchport mode access (change a switchport to a non-default VLAN, entry in config mode where we switch interface-port from the default VLAN 1 in the non-default Vlan in this case it is VLAN 2)
Switch(config-if)#switchport access vlan 2 (switching interfaces FA0/6 in VLAN 2)
Switch(config-if)#end (switching in to User exec mode)

Switch#show vlan (view table VLAN where we can see info about inclusion interfaces, at this moment all interfaces-ports belong to VLAN 1 unless 0/4, 0/5, 0/6 belonging to VLAN 2)

Switch#configure terminal
Switch(config)#interface fastethernet 0/7 (entry in config mode fastethetnet interfaces 0/7)
Switch(config-if)#switchport mode access (change a switchport to a non-default VLAN, entry in config mode where we switch interface-port from the default VLAN 1 in the non-default Vlan in this case it is VLAN 3)
Switch(config-if)#switchport access vlan 3 (switching interfaces FA0/7 in VLAN 3)
Switch(config-if)#exit

 

Switch 1900 serie

Creating new VLANs, switch Interfaces from one VLAN to VLAN 2 and VLAN 3
Some commands setting from one VLAN to another VLAN are different from series to series switch.

Switch#enable
Switch#class (password)

Switch#show vlan-membership (view table VLANs where we can see info about inclusion interfaces, in this moment all the interfaces-ports belong to VLAN 1)

Switch#configure terminal
Switch(config)#vlan 2 name VLAN2 (setting a new VLAN named VLAN2, be sure to put a number 2 next to the name of the VLAN)
Switch(config)#vlan 3 name VLAN3 (setting a new VLAN named VLAN2, be sure to put a number 3 next to the name of the VLAN)
Switch(config)#exit

Switch#configure terminal
Switch(config)#interface ethernet 0/4 (entry in config mode fastethetnet interfaces 0/4)
Switch(config-if)#vlan static 2 (switching-setting interface e0/4 in VLAN 2)
Switch(config)#interface ethernet0/5 (entry in config mode fastethetnet interfaces 0/5)
Switch(config-if)#vlan static 2 (switching-setting interface e0/5 in VLAN 2)
Switch(config)#interface ethernet 0/6 (entry in config mode fastethetnet interfaces 0/6)
Switch(config-if)#vlan static 2 (switching-setting interface e0/6 u VLAN 2)
Switch(config-if)#end (switching in to User exec mode)

Switch#show vlan-membership (view table VLAN where we can see info about inclusion interfaces, at this moment, all interfaces-ports belong to VLAN 1 except for 04, 0/5, 0/6 belonging to VLAN 2)

Switch#configure terminal
Switch(config)#interface ethernet 0/7 (entry in config mode fastethetnet interfaces 0/7)
Switch(config-if)#vlan static 3 (switching-setting interface e0/7 in VLAN 3)
Switch(config-if)#exit