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

    Example: Configuring VPLS VLAN Encapsulation

    This example shows how to configure VPLS VLAN encapsulation and enable it on the physical and the logical interfaces.

    Requirements

    Before you begin:

    Overview

    This example describes how to enable VLAN tagging on VPLS interface ge-3/0/6, configure the encapsulation type on the physical and logical interfaces, and configure the VPLS family on the logical interface.

    Note: Perform the following CLI quick configuration and procedures on all of the PE interfaces (CE facing).

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    set interfaces ge-3/0/6 vlan-taggingset interfaces ge-3/0/6 encapsulation vlan-vpls set interfaces ge-3/0/6 unit 0 encapsulation vlan-vpls set interfaces ge-3/0/6 unit 0 vlan-id 512set interfaces ge-3/0/6 unit 0 family vpls

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide PDF Document.

    To configure VPLS VLAN encapsulation:

    1. Enable VLAN tagging on the VPLS interface.
      [edit interfaces ge-3/0/6]user@host# set vlan-tagging
    2. Configure the encapsulation type on the physical interface.
      [edit interfaces ge-3/0/6]user@host# set interfaces ge-3/0/6 encapsulation vlan-vpls
    3. Configure the encapsulation type on the logical interface.
      [edit interfaces ge-3/0/6 unit 0]user@host# set encapsulation vlan-vpls
    4. Configure the VLAN ID on the logical interface.
      [edit interfaces ge-3/0/6 unit 0]user@host# set vlan-id 512
    5. Configure the family VPLS on the logical interface.
      [edit interfaces ge-3/0/6 unit 0]user@host# set family vpls

    Results

    From configuration mode, confirm your configuration by entering the show interfaces ge-3/0/6 command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

    [edit]user@host# show interfaces ge-3/0/6vlan-tagging;encapsulation vlan-vpls;unit 0 {encapsulation vlan-vpls;vlan-id 512;family vpls;}

    If you are done configuring the device, enter commit from configuration mode.

    Verification

    To confirm that the configuration is working properly, perform these tasks:

    Verifying VPLS VLAN Encapsulation

    Purpose

    Verify that the VPLS VLAN encapsulation is enabled at the interfaces.

    Action

    From operational mode, enter the show interfaces command.

    Verifying VPLS VLAN Encapsulation for Logical Interfaces

    Purpose

    Verify that the VPLS VLAN encapsulation is enabled at the logical interface.

    Action

    From operational mode, enter the show interfaces ge-3/0/6 unit 0 command.

    Published: 2012-06-29