尝试设置从位于 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 发送标记帧,两个接口上都没有数据包传出。
我错过了什么?