Switchcofing t
Switch(cofing)nterface fo/5 //进入接口5配置模式
Switch(coling-if)switchport mode access (7)
Switch(cofing-if)switchport access vlan 2 //把端口5分配给相信的vlan2
Switch(cofing)exit
Switch(cofing)interface fo/6
Switch(cofing-if)switchport mode access
Switch(cofing-if)switchport access vlan 3
Switch(cofing-if)exit
Switch(cofing)exit
Switch