Download This Guide
Example: VPLS Multihoming, Improved Convergence Time
This example shows how to configure a virtual private LAN service (VPLS) employing multihoming to a customer site. This particular VPLS multihoming example shows how to configure a feature that improves the network convergence time in the event a multihomed site needs to switch traffic to its alternate PE router.
Requirements
This example uses the following hardware and software components:
- Three M Series, MX Series, or T Series routers
- Junos OS Release 12.2 or later
If you are using M Series or T Series routers, the PE routers must have either virtual loopback tunnel (vt) interfaces or label-switched interfaces (LSIs). On M Series and T Series routers, VPLS uses tunnel-based PICs to create virtual ports on vt interfaces. If you do not have a tunnel-based PIC installed on your M Series or T Series router, you can still configure VPLS by using LSIs to support the virtual ports. Use of LSIs requires Ethernet-based PICs installed in an Enhanced Flexible PIC Concentrator (FPC).
You do not need to use routers for the CE devices. For example, the CE devices can be EX Series Ethernet Switches.
Overview
All PE routers in a VPLS network operate like a large, distributed Ethernet switch to provide Layer 2 services to attached devices. This example illustrates a network of PE routers and CE devices configured to use VPLS multihoming.. The topology consists of six routers: four PE routers and two CE devices. Device CE1 is multihomed to Routers PE1 and PE2. The PE routers are configured with the best-site and mac-flush statements to improve the convergence time in the event the connection between Device CE1 and one of its multihomed PE routers fails.
This example includes the following settings:
best-site—Uses the B-bit of the control flags bit vector (the third bit counting from the most significant bit) within the Layer 2 information extended community to indicate that the site is preferred. Each VPLS site configured with the best-site statement signals to the other PE routers that it is the preferred site. The Layer 2 information extended community includes the following information:
- Extended community type (2 octets)
- Encapsulation type (1 octet)
- Control flags (1 octet)
- Layer 2 MTU (2 octets)
- Reserved (2 octets)
- mac-flush—Enables media access control (MAC) flush processing for the VPLS routing instance or for the mesh group under a VPLS routing instance. MAC flush processing removes MAC addresses from the MAC address database that have been learned dynamically. With the dynamically learned MAC addresses removed, MAC address convergence requires less time to complete.
Topology
Figure 1 shows the topology used in this example. Router PE1 is configured with the best-site statement and acts as the preferred gateway for traffic from Device CE1.
Figure 1: VPLS Multihoming Topology with Router PE1 Configured as the Best Site

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.
Router PE1:
Router PE2:
Router PE3:
Router PE1
Step-by-Step Procedure
To configure Router PE1:
- Configure the interfaces, interface encapsulation, and
the protocol families.[edit interfaces]user@PE1# set interfaces fe-0/1/0 encapsulation ethernet-vpls user@PE1# set interfaces fe-0/1/0 unit 0 family vpls user@PE1# set interfaces fe-0/1/2 unit 0 family inet address 10.0.59.14/32 user@PE1# set interfaces fe-0/1/2 unit 0 family iso user@PE1# set interfaces fe-0/1/2 unit 0 family mpls user@PE1# set interfaces fe-0/1/3 unit 0 family inet address 10.0.89.14/30 user@PE1# set interfaces fe-0/1/3 unit 0 family iso set interfaces fe-0/1/3 unit 0 family mplsuser@PE1# set lo0 unit 0 family inet address 192.168.9.1/32user@PE1# set lo0 unit 0 family iso address 47.0005.8083.0000.1921.6800.5003.00
- Configure the protocol-independent properties.[edit routing-options]user@PE1# set router-id 192.168.9.1
- Configure MPLS on the router’s interfaces.[edit protocols mpls]user@PE1# set interface all
- Configure BGP.[edit protocols bgp]user@PE1# set group int type internaluser@PE1# set group int local-address 8.0.0.104user@PE1# set group int family l2vpn signaling
- Configure IS-IS as the IGP between the PE routers.[edit protocols isis]user@PE1# set level 1 disableuser@PE1# set interface fe-0/1/3.0user@PE1# set interface lo0.0
- Configure LDP as the signaling protocol for MPLS.[edit protocols ldp]user@PE1# set interface alluser@PE1# set interface fxp0.0 disableuser@PE1# set interface lo0.0
- Configure the VPLS routing instance.
Include the mac-flush statement to ensure that stale routes are removed from Router PE1 promptly.
[edit routing-instances vpls_1]user@PE1# set instance-type vplsuser@PE1# set interface fe-0/1/0.0user@PE1# set route-distinguisher 10.255.107.74:1user@PE1# set vrf-target target:65056:1user@PE1# set protocols vpls no-tunnel-servicesuser@PE1# set protocols vpls site site_3 site-identifier 3user@PE1# set protocols vpls site site_3 multi-hominguser@PE1# set protocols vpls site site_3 site-preference primaryuser@PE1# set protocols vpls site site_3 interface fe-0/1/0.0user@PE1# set protocols vpls site site_994 site-identifier 994user@PE1# set protocols vpls mac-flush
Results
From configuration mode, confirm your configuration by entering the show interfaces, show protocols, show routing-instances, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
Router PE2
Step-by-Step Procedure
To configure Router PE2:
- Configure the interfaces, interface encapsulation, and
the protocol families.[edit interfaces]user@PE2# set fe-0/1/1 encapsulation ethernet-vplsuser@PE2# set fe-0/1/1 unit 0 family vplsuser@PE2# set fe-0/1/2 unit 0 family inet address 10.0.59.13/32user@PE2# set fe-0/1/2 unit 0 family isouser@PE2# set fe-0/1/2 unit 0 family mplsuser@PE2# set lo0 unit 0 family inet address 192.168.5.1/32user@PE2# set lo0 unit 0 family iso address 47.0005.8083.0000.1921.6800.5005.00
- Configure the protocol-independent properties.[edit routing-options]user@PE2# set router-id 192.168.5.1
- Configure MPLS on the Router PE2 interfaces.[edit protocols]user@PE2# set mpls interface all
- Configure the LDP as the signaling protocol for MPLS on
the PE router facing interface.[edit protocols ldp]user@PE2# set interface alluser@PE2# set interface fxp0.0 disableuser@PE2# set interface lo0.0
- Configure IS-IS as the IGP between the PE routers.[edit protocols isis]user@PE2# set level 1 disableuser@PE2# set interface fe-0/1/2.0user@PE2# set interface lo0.0
- Configure the VPLS routing instance vpls_1.
Include the best-site statement to ensure that Router PE2 acts as the preferred path for the CE router. Include the mac-flush statement to ensure that stale routes are removed from Router PE2 promptly.
[edit routing-instances vpls_1]user@PE2# set instance-type vplsuser@PE2# set interface fe-0/1/1.0user@PE2# set route-distinguisher 10.255.107.76:1user@PE2# set vrf-target target:65056:1user@PE2# set protocols vpls no-tunnel-servicesuser@PE2# set protocols vpls site site_3 site-identifier 3user@PE2# set protocols vpls site site_3 multi-hominguser@PE2# set protocols vpls site site_3 site-preference backupuser@PE2# set protocols vpls site site_3 interface fe-0/1/1.0user@PE2# set protocols vpls site site_995 site-identifier 995user@PE2# set protocols vpls site site_995 best-siteuser@PE2# set protocols vpls mac-flush
Results
From configuration mode, confirm your configuration by entering the show interfaces, show protocols, show routing-instances, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
Router PE3
Step-by-Step Procedure
To configure Router PE3:
- Configure the interfaces, interface encapsulation, and
the protocol families.[edit interfaces]user@PE3# set fe-1/3/0 unit 0 description "PE3 to PE1"user@PE3# set fe-1/3/0 unit 0 family inet address 10.0.89.13/30user@PE3# set fe-1/3/0 unit 0 family isouser@PE3# set fe-1/3/0 unit 0 family mplsuser@PE3# set fe-1/3/1 encapsulation ethernet-vpls user@PE3# set fe-1/3/1 unit 0 family vplsuser@PE3# set lo0 unit 0 family inet address 192.168.8.1/32user@PE3# set lo0 unit 0 family iso address 47.0005.8083.0000.1921.6800.5002.00
- Configure the protocol-independent properties.[edit routing-options]user@PE3# set router-id 192.168.8.1
- Configure IS-IS as the IGP between the PE routers.[edit protocols isis]user@PE3# set level 1 disableuser@PE3# set interface fe-0/1/3.0user@PE3# set interface lo0.0
- Configure LDP as the signaling protocol for MPLS.[edit protocols ldp]user@PE3# set interface alluser@PE3# set interface fxp0.0 disableuser@PE3# set interface lo0.0
- Configure the VPLS routing instance.
Include the mac-flush statement here to ensure that stale routes are removed from Router PE1 promptly.
[edit routing-instances vpls_1]user@PE3# set instance-type vplsuser@PE3# set interface fe-1/3/1.0user@PE3# set route-distinguisher 10.255.107.72:1user@PE3# set vrf-target target:65056:1user@PE3# set protocols vpls no-tunnel-servicesuser@PE3# set protocols vpls site site_2 site-identifier 2user@PE3# set protocols vpls site site_2 interface fe-0/1/0.100user@PE3# set protocols vpls site site_993 site-identifier 993user@PE3# set protocols vpls site site_993 best-siteuser@PE3# set protocols vpls mac-flush
Results
From configuration mode, confirm your configuration by entering the show interfaces, show protocols show routing-instances, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.