SW1>enable (进入特权模式)
SW1(config)interface f0/23 (进入接口23配置模式)
SW1(config-if)switchport mode trunk (9)
SW1(config-if)switchport trunk encaps isl (10)
SW1(config-if)spanning-tree vlan 1 port-priority 10 (11)
SW1(config-if)spanning-tree vlan 2 port-priority 10
SW1(config-if)spanning-tree vlan 3 port-priority 10
SW1(config-if)interface f0/24 (进入接口24配置模式)
SW1(config-if)……. (对端口24进行配置)
SW1(config-if)end
SW1copy run start