标签为 "vlan" 的存档

Native VLAN,及Native VLAN配置

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

分享家:Addthis中国

switchport trunk native vlan X

switchport trunk native vlan 8 这个命令的意思是:更改native vlan为vlan 8,也就是说属于VLAN8的主机的数据帧经过TRUNK端口时不需要打802.1q标签,换句话说,只要交换机碰到没有打802.1q标签的数据帧(即普通以太网帧)时,均会默认将其发到VLAN 8内的网络中去。

PS:没有修改2950默认的native vlan,所以默认是vlan1;

分享家:Addthis中国