Native Vlan:默认情况下,交换机所有接口都在Native VLAN中,vlan1是Native VLAN,无法删除,非Native VLAN的流量在Trunk中传输数据时,要被添加VLAN标记,但是Native VLAN在Trunk中传输数据时是不进行标记的。
在接口模式下:
interface FastEthernet0/3
switchport access vlan 6
switchport trunk encapsulation dot1q
switchport trunk native vlan 6
switchport mode trunk
spanning-tree portfast