2024年4月4日发(作者:)
第8章Vlan dot1q tunnel配置
本章主要讲述了交换机支持Vlan dot1q tunnel功能以及如何配置该功能。
章节主要内容:
z Vlan dot1q tunnel(mapping)简介
z 应用实例
z 调试和监控
8.1 Vlan dot1q tunnel简介
Vlan dot1q tunnel是基于802.1Q协议的扩展,在原有的802.1Q报文包头上又增加一层802.1Q标签
(VLAN标签)实现,通过双层标签,使VLAN个数增加为4K×4K。QinQ将用户私网VLAN Tag封装
在公网VLAN Tag中,使报文带着两层VLAN Tag穿越运营商的骨干网络(公网)。在公网中报文只根
据外层VLAN Tag(即公网VLAN Tag)传播,用户的私网VLAN Tag被屏蔽,节约了公网VLAN ID,为
用户提供一种较为简单的二层VPN隧道。
Vlan dot1q tunnel mapping也是基于802.1Q的扩展,与Vlan dot1q tunnel不同之处在于:Vlan dot1q
tunnel mapping不是在报文原有802.1Q的基础上再封装一层802.1Q标签,而是将报文原有802.1Q标签替
换成新的802.1Q表项,报文仍然只带有一层802.1Q表项。
8.1.1 基本Vlan dot1q tunnel功能
端口使能Vlan dot1q tunnel功能,当端口接收到报文,为报文增加一层VLAN Tag。增加Tag的
VLAN ID为端口缺省VLAN ID。如果接收到的报文是Tag报文,该报文变成双层Tag报文;如果接口到
的报文不带Tag,报文为单层Tag报文。
8.1.2 灵活Vlan dot1q tunnel功能
灵活Vlan dot1q tunnel功能是与端口VLAN相配合,对Vlan dot1q tunnel的一种灵活实现。端口根据
灵活Vlan dot1q tunnel(mapping)表项,根据报文Tag中的VLAN ID,为报文增加指定的外层VLAN
Tag,Vlan dot1q tunnel mapping则是将报文Tag中的VLAN ID 替换为指定的VLAN ID 。如果端口不匹配
版权所有©2010,迈普通信技术股份有限公司,保留所有权利
1
灵活Vlan dot1q tunnel(mapping)表项,则给报文封装外层VLAN Tag,此VLAN Tag为端口PVID
VLAN。
8.1.3 仅支持灵活Vlan dot1q tunnel功能
灵活Vlan dot1q tunnel功能是与端口VLAN相配合,对Vlan dot1q tunnel的一种灵活实现。端口根据
灵活Vlan dot1q tunnel(mapping)表项,根据报文Tag中的VLAN ID,为报文增加指定的外层VLAN
Tag,Vlan dot1q tunnel mapping则是将报文Tag中的VLAN ID 替换为指定的VLAN ID 。如果端口不匹配
灵活Vlan dot1q tunnel(mapping)表项,则报文被丢弃。该功能通过配置来实现,见配置命令vlan
dot1q-tunnel drop
8.1.4 灵活Vlan dot1q tunnel报文TPID
TPID(Tag Protocol Identifier),标签协议标识,是报文中Tag的一个字段,表示VLAN Tag对应的
协议类型。VLAN Tag字段 的取值为0x8100。Vlan dot1q tunnel报文外层VLAN Tag的取值默认为
0x8100,不同厂商可能设置Vlan dot1q tunnel报文外层VLAN Tag的取值不同,如取值为0x9100。
8.2 基本指令描述
命令
vlan dot1q-tunnel enable
vlan dot1q-tunnel vlanId
vlanId
描述
端口使能基本vlan dot1q-tunnel 功能
配置端口灵活vlan dot1q-tunnel表项
配置模式
config-port-xxx
config-link-aggregation-x
config-port-xxx
config-link-aggregation-x
配置端口灵活vlan dot1q-tunnel
config-port-xxx
vlan dot1q-tunnel
mapping vlanId vlanId
mapping表项
config-link-aggregation-x
配置端口仅支持灵活vlan dot1q-tunnel
(mapping)表项;端口接收到的报文
config-port-xxx
不匹配灵活vlan dot1q-tunnel
config-link-aggregation-x
(mapping)表项,丢弃报文
配置端口外层Tag的TPID
配置端口内层Tag优先级priority字段
值复制到外层Tag优先级priority字段
值
config-port-xxx
config-link-aggregation-x
config-port-xxx
config-link-aggregation-x
vlan dot1q-tunnel drop
frame-tag tpid tpvalue
inner-priority-trust
enable
发布者:admin,转转请注明出处:http://www.yc00.com/web/1712202069a2022093.html
评论列表(0条)