Native vlan(本征VLAN)详解
(2013-10-01 21:56:29)分类: 交换 |
Native
Vlan(本征VLAN)和其他Vlan的另外一个区别在于:非Native
Vlan在trunk中传输数据时要被添加Vlan标记的(如dot1q或者isl),但是native
vlan在trunk中传输数据时是不进行标记的。
命令:
Switch(config-if)#switchport trunk native
vlan vlanID
Switch#show
interfaces f0/24 switchport
在cisco4507上查看vlan的配置选项
cisco4507(config-if)#switchport trunk ?
cisco4507(config-if)#switchport trunk native vlan
?
cisco4507(config-if)#switchport trunk allowed vlan
?
配置举例:
SW1的F0/13连接SW2的F0/13,我们修改默认的native
vlan为10
SW1:
interface
FastEthernet0/13
switchport
trunk encapsulation dot1q
switchport
trunk native vlan 10
switchport
mode trunk
SW2:
interface
FastEthernet0/13
switchport
trunk encapsulation dot1q
switchport
trunk native vlan 10
switchport
mode trunk
SW1#show
interface fa0/13 switchport
Name:
Fa0/13
Switchport:
Enabled
Administrative
Mode: trunk
Operational
Mode: trunk
Administrative
Trunking Encapsulation: dot1q
Operational
Trunking Encapsulation: dot1q
Negotiation of
Trunking: On
Access Mode
VLAN: 1 (default)
Trunking Native Mode VLAN: 10
(Inactive)
我们通过命令查看,得到该接口下的native Vlan被修改为10
分享:
喜欢
0
赠金笔
加载中,请稍候......
后一篇:cisco 交换机端口模式