Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Example: Configuring Layer 2 Protocol Tunneling on the QFX Series

    Layer 2 Protocol Tunneling (L2PT) allows you to send Layer 2 protocol data units (PDUs) across a service provider network and deliver them to a switch that is not part of the local broadcast domain. This feature is useful when you want to run Layer 2 protocols on a network that includes switches located at remote sites that are connected across a service provider network.

    Requirements

    This example uses the following hardware and software components:

    • Six EX Series switches, with three each at two customer sites
    • Two provider edge (PE) devices connected to one switch at each customer site
    • Two uplink modules
    • Junos OS Release 11.1 for QFX Series Switches.

    Before you configure L2PT, be sure you have:

    • Installed uplink modules in Switch A at Customer Site 1 and Switch D at Customer Site 2 and connected them to the provider edge (PE) devices in the service provider network. See .

    Overview and Topology

    Layer 2 Protocol Tunneling (L2PT) allows you to send Layer 2 protocol data units (PDUs) across a service provider network and deliver them to Juniper Network EX Series Switches that are not part of the local broadcast domain. This feature is useful when you want to run Layer 2 protocols on a network that includes switches located at remote sites that are connected across a service provider network.

    Figure 1 shows a customer network that includes two sites that are connected across a service provider network. Site 1 contains three switches connected in a Layer 2 network, with Switch A connected to the PE device in the service provider network. These three switches form a single broadcast domain. Site 2 contains a Layer 2 network with a similar topology to that of Site 1 with Switch D connected to the PE device. The switches at Site 2 form a single broadcast domain that is separate from the broadcast domain at Site 1.

    Q-in-Q tunneling must be enabled for L2PT to work. Also, this example uses STP as the Layer 2 protocol being tunneled, but any of the supported protocols could be substituted for STP. The drop-theshold configuration statement allows you to specify the maximum number of Layer 2 PDUs of the specified protocol that can be received per second on an interface before the switch begins dropping the Layer 2 PDUs. The shutdown-threshold configuration statement allows you to specify the maximum number of Layer 2 PDUs of the specified protocol that can be received per second on an interface before the interface is disabled.

    Figure 1: L2PT Topology

    L2PT Topology

    Configuration

    To configure L2PT, perform these tasks:

    CLI Quick Configuration

    To quickly configure L2PT, copy the following commands and paste them into the switch terminal window of each PE switch (in Figure 1, Switch A and Switch D are the PE switches).

    [edit]
    set vlans customer-1 dot1q-tunneling
    set vlans customer-1 dot1q-tunneling layer2–protocol-tunneling protocol stp
    set vlans customer-1 dot1q-tunneling layer2–protocol-tunneling protocol stp drop-threshold 50
    set vlans customer-1 dot1q-tunneling layer2–protocol-tunneling protocol stp shutdown-threshold 100

    Step-by-Step Procedure

    To configure L2PT, perform these tasks on each PE switch (in Figure 1, Switch A and Switch D are the PE switches):

    1. Enable Q-inQ tunneling on VLAN customer-1:
      [edit]
      user@switchA# set vlans customer-1 dot1q-tunneling
    2. Enable L2PT for STP on VLAN customer-1:
      [edit]
      user@switchA# set vlans customer-1 dot1q-tunneling layer2-protocol-tunneling stp
    3. Configure the drop threshold to 50:
      [edit]
      user@switchA# set vlans customer-1 dot1q-tunneling layer2–protocol-tunneling protocol stp drop-threshold 50
    4. Configure the shutdown threshold to 100:
      [edit]
      user@switchA# set vlans customer-1 dot1q-tunneling layer2–protocol-tunneling protocol stp shutdown-threshold 100
    5. Repeat steps 1-4 on each PE switch.

    Results

    Check the results of the configuration:

    [edit]user@switch# show vlans customer-1 dot1q-tunneling
    layer2–protocol-tunneling {stp {drop-threshold 50;shutdown-threshold 100;}}

    Verification

    Verify that L2PT is working correctly, perform this task:

    Verify That L2PT Is Working Correctly

    Purpose

    Verify that Q-in-Q tunneling and L2PT are enabled.

    Action

    Check to see that Q-in-Q tunneling and L2PT are enabled on each PE switch (in Figure 1, Switch A and Switch D are the PE switches):

    user@switchA> show vlans extensive customer-1

    VLAN: customer–1, Created at: Thu Jun 25 05:07:38 2009
    802.1Q Tag: 100, Internal index: 4, Admin State: Enabled, Origin: Static
    Dot1q Tunneling status: Enabled
    Layer2 Protocol Tunneling status: Enabled
    Protocol: Port Mode, Mac aging time: 300 seconds
    Number of interfaces: Tagged 0 (Active = 0), Untagged  3 (Active = 0)
          ge-0/0/7.0, untagged, access
          ge-0/0/8.0, untagged, access
          ge-0/0/9.0, untagged, access
    

    Check to see that L2PT is tunneling STP on VLAN customer-1 and that drop-threshold and shutdown-threshold have been configured correctly:


    Layer2 Protocol Tunneling VLAN information:
    VLAN          Protocol      Drop       Shutdown
                                Threshold  Threshold
    customer—1    stp           50         100
    

    Meaning

    Q-in-Q tunneling and L2PT have been enabled, L2PT is tunneling the STP protocol on VLAN customer-1, the drop threshold has been set to 50, and shutdown threshold has been set to 100.

     

    Related Documentation

     

    Modified: 2016-12-16