具有任意 C-VLAN 的 EX4200 上的 QinQ

网络工程 VLAN 杜松 琴琴
2021-07-20 13:21:21

尝试设置从位于 A 楼的 CE 到 B 楼的 CE 的以太网链接。客户可能会也可能不会标记通过链接发送的帧。这是我尝试使用的设置

+----+       +--------+      +----------+             +----------+  
| CE +--(A)--+ EX4200 +-(B)--+ Router A +---(L2VPN)---+ Router B + 
+----+       +--------+      +----------+             +----------+  

链路上的何处 客户可以发送带有任意 VLAN-ID 的标记帧或未标记帧。在链路 B 上,帧的外部标记为 S-Tag。我什至不担心 L2VPN 部分。

在实验室中,我将标记的帧发送到 EX4200。面向 CE 的端口配置为接入端口,vlan 成员指定 S-Tag

set interfaces ge-0/0/22 unit 0 family ethernet-switching port-mode access

set interfaces ge-0/0/22 unit 0 family ethernet-switching vlan members qinq

vlan qinq 是这样配置的:

set vlans qinq vlan-id 100
set vlans qinq dot1q-tunneling customer-vlans native
set vlans qinq dot1q-tunneling customer-vlans 1-4094
set ethernet-switching-options dot1q-tunneling ether-type 0x8100

中继到路由器:

set interfaces xe-0/1/0 unit 0 family ethernet-switching port-mode trunk
set interfaces xe-0/1/0 unit 0 family ethernet-switching vlan members qinq

为了测试 IP 连接性,我从 CE 向路由器 A 发送 ping。如果我发送未标记的帧,我将获得 IP 连接性。一旦我向 EX4200 发送标记帧,两个接口上都没有数据包传出。

我错过了什么?

1个回答

啊,是的,EX 交换机上 Q-in-Q 配置的高度混乱的世界 - 我们又见面了。

尝试对您的配置进行以下更改:

delete interfaces ge-0/0/22 unit 0 family ethernet-switching vlan members qinq
delete interfaces xe-0/1/0 unit 0 family ethernet-switching vlan members qinq
set vlans qinq interface ge-0/0/22.0
set vlans qinq interface xe-0/1/0.0

我从来没有很幸运地使用常见的“接口下配置的 VLAN”层次结构来使 Q-in-Q 工作(即使网络上有示例显示它是通过这种方式完成的),但是如果您切换到“VLAN 下的接口” " 这样做的方式(如上),你应该没问题。

这也可能有帮助:

瞻博 EX4200 QinQ 问题