Example: Configuring Extended VLAN VPLS Encapsulation
This example shows how to configure extended VLAN VPLS encapsulation and enable it on the physical and the logical interfaces.
Before you begin:
Before you begin, see Understanding Selective Stateless Packet-Based Services .
Configure the interfaces that will carry the VPLS traffic between the PE router and the CE devices. See Example: Configuring Routing Interfaces on the VPLS PE Router and Example: Configuring the Interface to the VPLS CE Device.
Create a VPLS routing instance on each PE router that is participating in the VPLS. See Example: Configuring the VPLS Routing Instance.
Configure an IGP on the PE routers to exchange routing information. See Example: Configuring OSPF on the VPLS PE Router.
Configure RSVP-TE, see Example: Configuring RSVP on the VPLS PE Router and then MPLS LSPs on the PE routers, see Example: Configuring MPLS on the VPLS PE Router. Alternatively configure LDP on the PE routers, see Example: Configuring LDP on the VPLS PE Router.
Configure routing options on the PE router. See Example: Configuring Routing Options on the VPLS PE Router.
Configure an IBGP session between PE routers so that the routers can exchange information about routes originating and terminating in the VPLS. See Example: Configuring BGP on the VPLS PE Router.
This example describes how to enable VLAN tagging on the VPLS interface ge-3/0/6, configure the extended-vlan-vpls type on the physical and logical interfaces, and configure the VPLS family on the logical interface.
Perform the following CLI quick configurations and procedures on all PE interfaces (CE facing).
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, copy and paste the commands into the CLI at the  hierarchy level, and then enter commit from configuration mode.
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.
To configure extended VPLS VLAN encapsulation:
- Enable VLAN tagging on the VPLS interface as it will receive
tagged packets from CE.[edit interfaces ge-3/0/6]user@host# set vlan-tagging
- 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
- Configure the VLAN ID on the logical interface.[edit interfaces ge-3/0/6 unit 0]user@host# set encapsulation vlan-vpls vlan-id 100
- Configure the VPLS family on the logical interface.[edit interfaces ge-3/0/6 unit 0]user@host# set family vpls
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.
If you are done configuring the device, enter commit from configuration mode.
Confirm that the configuration is working properly.
Verifying Extended VLAN VPLS Encapsulation
Verify that the extended VLAN VPLS encapsulation is enabled at the interfaces.
From operational mode, enter the show interfaces command.
Verifying Extended VLAN VPLS Encapsulation for Logical Interfaces
Verify that the extended VLAN VPLS encapsulation is enabled at the logical interface.
From operational mode, enter the show interfaces ge-3/0/6 unit 0 command.