特别说明Dot1q : 现在使用最广泛的VLAN协议标准是 IEEE802.1Q,二层功能的交换机接口自动封装了该协议,三层功能的交换机接口由于具备路由功能,必须手工封装 encapsulation dot1q,否则接口不能设置trunk模式,也不能VLAN。对于三层交换机VLAN间的通信,必须使用路由功能,VLAN之间不泛洪(flood)。
Switch(config-if)#exit
Switch(config)#int fa 0/3
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
三层交换机当做二层交换机用时,trunk 接口 要这样设置 switchport trunk encapsulation dot1q