Switch>en
Switch#conft
Switch(config)#vlan10创建vlan10
Switch(config-vlan)#exit
Switch(config)#interf0/1
Switch(config-if)#switchportaccessvlan10把接口f0/1加入到vlan10中
补充:
直接在接口下:
Switch(config-if)#switchportaccessvlan10
这样交换机会自动创建vlan10
补充:
这不叫赖皮,是技巧,要么人家老师怎么会这样问呢.