实验目的:
Trunk对于pvid的处理原理
对于Access、Hybrid来说,pvid是接口给没有tag的帧打上tag,从无到有;
而对于Trunk来说,如果向外向的帧里,tag == pvid就把tag剥离掉,所以又叫native vlan本征VLAN,还原成native 帧,从有到无的过程。
拓扑:
配置:
SW1配置
[sw1]dis cur int g0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
return
[sw1]dis cur int g0/0/24
#
interface GigabitEthernet0/0/24
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 20
#
return
SW2配置
[sw2]dis cur int g0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 20
#
return
[sw2]dis cur int g0/0/24
#
interface GigabitEthernet0/0/24
port link-type trunk
port trunk pvid vlan 20
port trunk allow-pass vlan 10 20
#
return
最后提一句,trunk对于pvid的处理,各别厂商实现不一定相同,比如中兴的trunk对tag == pvid是不处理直接转发
原文地址:http://17766991309.blog.51cto.com/1668507/1896039