1.VLAN的创建和删除
Switch#vlan databaseSwitch(vlan)#vlan 2Switch(vlan)#vlan 3 name kefuSwitch(vlan)#no vlan 2 Switch(vlan)#exit
2.给VLAN分配IP
Switch1#configSwitch(config)#config vlan2Switch(config-if)#ip address 192.168.2.1 255.255.255.0Switch(config-if)#no shutdown
3.配VTP
Switch1#Switch1#configSwitch1(config)#vtp domain ciscoSwitch1(config)#vtp mode serverSwitch1(config)#end
4.配置trunkSwitch1#configSwitch1(config)#interface gigabitethernet0/1Switch1(config-if)#switchport trunk encapsulation dot1qSwitch1(config-if)#switchport mode trunkSwitch1(config-if)#end