Cisco switch put a port in a VLAN

These are the command lines to put ports 7 to 12 in VLAN 2.
You will connect hosts on these ports.

Switch(config)#conf t
Switch(config)#interface range fastEthernet 0/7-12
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 2
Switch(config-if-range)#no shut
Switch(config-if-range)#exit

Leave a Reply