VLAN transparent transmission configuration example

Network requirements

As shown in Figure 71:

Configure QinQ on PE 1 and PE 2 to provide Layer 2 connectivity for CVLANs 10 through 50 over the service provider network.

Configure VLAN transparent transmission for VLAN 3000 on PE 1 and PE 2 to enable the hosts in VLAN 3000 to communicate without using an SVLAN.

Figure 71: Network diagram

Configuration procedure

  1. Configure PE 1:

    # Configure HundredGigE 1/0/1 as a trunk port, and assign it to VLANs 100 and 3000.

    <PE1> system-view
    [PE1] interface hundredgige 1/0/1
    [PE1-HundredGigE1/0/1] port link-type trunk
    [PE1-HundredGigE1/0/1] port trunk permit vlan 100 3000
    

    # Set the PVID of HundredGigE 1/0/1 to VLAN 100.

    [PE1-HundredGigE1/0/1] port trunk pvid vlan 100
    

    # Enable QinQ on HundredGigE 1/0/1.

    [PE1-HundredGigE1/0/1] qinq enable
    

    # Enable transparent transmission for VLAN 3000 on HundredGigE 1/0/1.

    [PE1-HundredGigE1/0/1] qinq transparent-vlan 3000
    [PE1-HundredGigE1/0/1] quit
    

    # Configure HundredGigE 1/0/2 as a trunk port, and assign it to VLANs 100 and 3000.

    [PE1] interface hundredgige 1/0/2
    [PE1-HundredGigE1/0/2] port link-type trunk
    [PE1-HundredGigE1/0/2] port trunk permit vlan 100 3000
    [PE1-HundredGigE1/0/2] quit
    
  2. Configure PE 2:

    # Configure HundredGigE 1/0/1 as a trunk port, and assign it to VLANs 100 and 3000.

    <PE2> system-view
    [PE2] interface hundredgige 1/0/1
    [PE2-HundredGigE1/0/1] port link-type trunk
    [PE2-HundredGigE1/0/1] port trunk permit vlan 100 3000
    

    # Set the PVID of HundredGigE 1/0/1 to VLAN 100.

    [PE1-HundredGigE1/0/1] port trunk pvid vlan 100
    

    # Enable QinQ on HundredGigE 1/0/1.

    [PE2-HundredGigE1/0/1] qinq enable
    

    # Enable transparent transmission for VLAN 3000 on HundredGigE 1/0/1.

    [PE2-HundredGigE1/0/1] qinq transparent-vlan 3000
    [PE2-HundredGigE1/0/1] quit
    

    # Configure HundredGigE 1/0/2 as a trunk port, and assign it to VLANs 100 and 3000.

    [PE2] interface hundredgige 1/0/2
    [PE2-HundredGigE1/0/2] port link-type trunk
    [PE2-HundredGigE1/0/2] port trunk permit vlan 100 3000
    
  3. Configure the devices between PE 1 and PE 2:

    # Set the MTU to a minimum of 1504 bytes for each port on the path of QinQ frames. (Details not shown.)

    # Configure all ports on the forwarding path to allow frames from VLANs 100 and 3000 to pass through without removing the VLAN tag. (Details not shown.)