你可以这样做的一种方法:
给定以下两个接口:
interfaces {
ge-1/0/1 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
unit 1 {
encapsulation vlan-bridge;
vlan-tags outer 1 inner 600;
}
}
ge-1/0/2 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
unit 1 {
encapsulation vlan-bridge;
vlan-tags outer 336 inner 600;
}
}
然后通过指定 vlan-id "none" 在您的网桥域进行规范化:
bridge-domains {
QT {
vlan-id none;
interface ge-1/0/1.1;
interface ge-1/0/2.1;
}
}
然后,当您查看接口时,您会看到 MX 将在入口处弹出两个标签,然后推送两个新标签以匹配出口接口,例如:
Logical interface ge-1/0/1.1 (Index 345) (SNMP ifIndex 538)
Flags: Device-Down SNMP-Traps 0x0
VLAN-Tag [ 0x8100.1 0x8100.600 ] In(pop-pop) Out(push-push 0x8100.1 0x8100.600) <--
Encapsulation: VLAN-Bridge
Input packets : 0
Output packets: 0
Protocol bridge, MTU: 1522
Flags: Is-Primary
Logical interface ge-1/0/2.1 (Index 346) (SNMP ifIndex 542)
Flags: Device-Down SNMP-Traps 0x0
VLAN-Tag [ 0x8100.336 0x8100.600 ] In(pop-pop) Out(push-push 0x8100.336 0x8100.600) <--
Encapsulation: VLAN-Bridge
Input packets : 0
Output packets: 0
Protocol bridge, MTU: 1522