在瞻博网络路由器上桥接两个 QinQ 接口

网络工程 第 2 层
2022-02-06 09:26:37

在瞻博网络 MX 路由器上,我有 2 个接口需要桥接在一起。

接口A配置了QinQ:

vlan-tags outer 0x8100.1 inner 0x8100.600

接口 B 已配置 QinQ

vlan-tags outer 0x8100.336 inner 0x8100.600

这些是在一起的桥梁:

domain-type bridge;
interface A;
interface B;

如果我保持两个外部 VLAN 标记相同。然后我可以通过桥接域发送流量。当我有 2 个不同的外部 VLAN 标签时,我会怎么做?

1个回答

你可以这样做的一种方法:

给定以下两个接口:

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