ON THIS PAGE
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 thebest-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)
When a neighboring PE router within the VPLS routing instance receives the label block advertisement, it knows that the corresponding PE router is the most preferable router of those remote PE routers multihomed to that site. If a neighboring PE router does not support the best site feature, the standard local site selection process is used. For example, if Router PE1 does not receive a B-bit from any of the label blocks advertisements received from Router PE3, Router PE1 proceeds to assume that Router PE3 does not support the best site feature. It creates a virtual circuit based on its minimum-designated site. For the other PE routers that do support the best site feature, Router PE1 builds virtual circuits using the locally tagged best site.
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 PE2 is configured with the best-site
statement and acts as the preferred gateway for traffic from Device
CE1.
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:
set interfaces fe-0/1/0 encapsulation ethernet-vpls set interfaces fe-0/1/0 unit 0 family vpls set interfaces fe-0/1/2 unit 0 family inet address 10.0.59.14/32 set interfaces fe-0/1/2 unit 0 family iso set interfaces fe-0/1/2 unit 0 family mpls set interfaces fe-0/1/3 unit 0 family inet address 10.0.89.14/30 set interfaces fe-0/1/3 unit 0 family iso set interfaces fe-0/1/3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.9.1/32 set interfaces lo0 unit 0 family iso address 47.0005.8083.0000.1921.6800.5003.00 set routing-options router-id 192.168.9.1 set protocols mpls interface all set protocols bgp group int type internal set protocols bgp group int local-address 192.0.2.1 set protocols bgp group int family l2vpn signaling set protocols isis level 1 disable set protocols isis interface fe-0/1/2.0 set protocols isis interface fe-0/1/3.0 set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface fe-0/1/0.0 set routing-instances vpls_1 route-distinguisher 10.255.107.74:1 set routing-instances vpls_1 vrf-target target:65056:1 set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls site site_3 site-identifier 3 set routing-instances vpls_1 protocols vpls site site_3 multi-homing set routing-instances vpls_1 protocols vpls site site_3 site-preference primary set routing-instances vpls_1 protocols vpls site site_3 interface fe-0/1/0.0 set routing-instances vpls_1 protocols vpls site site_994 site-identifier 994 set routing-instances vpls_1 protocols vpls mac-flush
Router PE2:
set interfaces fe-0/1/1 encapsulation ethernet-vpls set interfaces fe-0/1/1 unit 0 family vpls set interfaces fe-0/1/2 unit 0 family inet address 10.0.59.13/32 set interfaces fe-0/1/2 unit 0 family iso set interfaces fe-0/1/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.5.1/32 set interfaces lo0 unit 0 family iso address 47.0005.8083.0000.1921.6800.5005.00 set routing-options router-id 192.168.5.1 set protocols mpls interface all set protocols isis level 1 disable set protocols isis interface fe-0/1/2.0 set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface fe-0/1/1.0 set routing-instances vpls_1 route-distinguisher 10.255.107.76:1 set routing-instances vpls_1 vrf-target target:65056:1 set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls site site_3 site-identifier 3 set routing-instances vpls_1 protocols vpls site site_3 multi-homing set routing-instances vpls_1 protocols vpls site site_3 site-preference backup set routing-instances vpls_1 protocols vpls site site_3 interface fe-0/1/1.0 set routing-instances vpls_1 protocols vpls site site_995 site-identifier 995 set routing-instances vpls_1 protocols vpls site site_995 best-site set routing-instances vpls_1 protocols vpls mac-flush
Router PE3:
set interfaces fe-1/3/0 unit 0 description "PE3 to PE1" set interfaces fe-1/3/0 unit 0 family inet address 10.0.89.13/30 set interfaces fe-1/3/0 unit 0 family iso set interfaces fe-1/3/0 unit 0 family mpls set interfaces fe-1/3/1 encapsulation ethernet-vpls set interfaces fe-1/3/1 unit 0 family vpls set interfaces lo0 unit 0 family inet address 192.168.8.1/32 set interfaces lo0 unit 0 family iso address 47.0005.8083.0000.1921.6800.5002.00 set routing-options router-id 192.168.8.1 set protocols isis level 1 disable set protocols isis interface fe-1/3/0.0 set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set protocols mpls interface all set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface fe-1/3/1.0 set routing-instances vpls_1 route-distinguisher 10.255.107.72:1 set routing-instances vpls_1 vrf-target target:65056:1 set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls site site_2 site-identifier 2 set routing-instances vpls_1 protocols vpls site site_2 interface fe-0/1/0.100 set routing-instances vpls_1 protocols vpls site site_993 site-identifier 993 set routing-instances vpls_1 protocols vpls mac-flush
Router PE1
Step-by-Step Procedure
To configure Router PE1:
Configure the interfaces, interface encapsulation, and the protocol families.
[edit interfaces] user@PE1# set fe-0/1/0 encapsulation ethernet-vpls user@PE1# set fe-0/1/0 unit 0 family vpls user@PE1# set fe-0/1/2 unit 0 family inet address 10.0.59.14/32 user@PE1# set fe-0/1/2 unit 0 family iso user@PE1# set fe-0/1/2 unit 0 family mpls user@PE1# set fe-0/1/3 unit 0 family inet address 10.0.89.14/30 user@PE1# set fe-0/1/3 unit 0 family iso user@PE1# set interfaces fe-0/1/3 unit 0 family mpls user@PE1# set lo0 unit 0 family inet address 192.168.9.1/32 user@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 internal user@PE1# set group int local-address 192.0.2.1 user@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 disable user@PE1# set interface fe-0/1/3.0 user@PE1# set interface lo0.0
Configure LDP as the signaling protocol for MPLS.
[edit protocols ldp] user@PE1# set interface all user@PE1# set interface fxp0.0 disable user@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 vpls user@PE1# set interface fe-0/1/0.0 user@PE1# set route-distinguisher 10.255.107.74:1 user@PE1# set vrf-target target:65056:1 user@PE1# set protocols vpls no-tunnel-services user@PE1# set protocols vpls site site_3 site-identifier 3 user@PE1# set protocols vpls site site_3 multi-homing user@PE1# set protocols vpls site site_3 site-preference primary user@PE1# set protocols vpls site site_3 interface fe-0/1/0.0 user@PE1# set protocols vpls site site_994 site-identifier 994 user@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.
user@PE1# show interfaces fe-0/1/0 { encapsulation ethernet-vpls; unit 0 { family vpls; } } fe-0/1/2 { unit 0 { family inet { address 10.0.59.14/32; } family iso; family mpls; } } fe-0/1/3 { unit 0 { family inet { address 10.0.89.14/30; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.168.9.1/32; } family iso { address 47.0005.8083.0000.1921.6800.5003.00; } } }
user@PE1# show protocols mpls { interface all; } bgp { group int { type internal; local-address 192.0.2.1; family l2vpn { signaling; } } } isis { level 1 disable; interface fe-0/1/2.0; interface fe-0/1/3.0; interface lo0.0; } ldp { interface all; interface fxp0.0 { disable; } interface lo0.0; }
user@PE1# show routing-instances vpls_1 { instance-type vpls; interface fe-0/1/0.0; route-distinguisher 10.255.107.74:1; vrf-target target:65056:1; protocols { vpls { no-tunnel-services; site site_3 { site-identifier 3; multi-homing; site-preference primary; interface fe-0/1/0.0; } site site_994 { site-identifier 994; } mac-flush; } } }
user@PE1# show routing-options router-id 192.168.9.1;
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-vpls user@PE2# set fe-0/1/1 unit 0 family vpls user@PE2# set fe-0/1/2 unit 0 family inet address 10.0.59.13/32 user@PE2# set fe-0/1/2 unit 0 family iso user@PE2# set fe-0/1/2 unit 0 family mpls user@PE2# set lo0 unit 0 family inet address 192.168.5.1/32 user@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 all user@PE2# set interface fxp0.0 disable user@PE2# set interface lo0.0
Configure IS-IS as the IGP between the PE routers.
[edit protocols isis] user@PE2# set level 1 disable user@PE2# set interface fe-0/1/2.0 user@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 themac-flush
statement to ensure that stale routes are removed from Router PE2 promptly.[edit routing-instances vpls_1] user@PE2# set instance-type vpls user@PE2# set interface fe-0/1/1.0 user@PE2# set route-distinguisher 10.255.107.76:1 user@PE2# set vrf-target target:65056:1 user@PE2# set protocols vpls no-tunnel-services user@PE2# set protocols vpls site site_3 site-identifier 3 user@PE2# set protocols vpls site site_3 multi-homing user@PE2# set protocols vpls site site_3 site-preference backup user@PE2# set protocols vpls site site_3 interface fe-0/1/1.0 user@PE2# set protocols vpls site site_995 site-identifier 995 user@PE2# set protocols vpls site site_995 best-site user@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.
user@PE2# show interfaces fe-0/1/1 { encapsulation ethernet-vpls; unit 0 { family vpls; } } fe-0/1/2 { unit 0 { family inet { address 10.0.59.13/32; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.168.5.1/32; } family iso { address 47.0005.8083.0000.1921.6800.5005.00; } } }
user@PE2# show protocols mpls { interface all; } isis { level 1 disable; interface fe-0/1/2.0; interface lo0.0; } ldp { interface all; interface fxp0.0 { disable; } interface lo0.0; }
user@PE2# show routing-instances vpls_1 { instance-type vpls; interface fe-0/1/1.0; route-distinguisher 10.255.107.76:1; vrf-target target:65056:1; protocols { vpls { no-tunnel-services; site site_3 { site-identifier 3; multi-homing; site-preference backup; interface fe-0/1/1.0; } site site_995 { site-identifier 995; best-site; } mac-flush; } } }
user@pe2# show routing-options router-id 192.168.5.1;
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/30 user@PE3# set fe-1/3/0 unit 0 family iso user@PE3# set fe-1/3/0 unit 0 family mpls user@PE3# set fe-1/3/1 encapsulation ethernet-vpls user@PE3# set fe-1/3/1 unit 0 family vpls user@PE3# set lo0 unit 0 family inet address 192.168.8.1/32 user@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 disable user@PE3# set interface fe-0/1/3.0 user@PE3# set interface lo0.0
Configure LDP as the signaling protocol for MPLS.
[edit protocols ldp] user@PE3# set interface all user@PE3# set interface fxp0.0 disable user@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 vpls user@PE3# set interface fe-1/3/1.0 user@PE3# set route-distinguisher 10.255.107.72:1 user@PE3# set vrf-target target:65056:1 user@PE3# set protocols vpls no-tunnel-services user@PE3# set protocols vpls site site_2 site-identifier 2 user@PE3# set protocols vpls site site_2 interface fe-0/1/0.100 user@PE3# set protocols vpls site site_993 site-identifier 993 user@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.
user@PE3# show interfaces fe-1/3/0 { unit 0 { description "PE3 to PE1"; family inet { address 10.0.89.13/30; } family iso; family mpls; } } fe-1/3/1 { encapsulation ethernet-vpls; unit 0 { family vpls; } } lo0 { unit 0 { family inet { address 192.168.8.1/32; } family iso { address 47.0005.8083.0000.1921.6800.5002.00; } } }
user@PE3# show protocols mpls { interface all; } bgp { group int { type internal; local-address 192.0.2.2; family l2vpn { signaling; } } } isis { level 1 disable; interface fe-1/3/0.0; interface lo0.0; } ldp { interface all; interface fxp0.0 { disable; } interface lo0.0; }
user@PE3# show routing-instances vpls_1 { instance-type vpls; interface fe-0/1/0.100; ## 'fe-0/1/0.100' is not defined route-distinguisher 10.255.107.72:1; vrf-target target:65056:1; protocols { vpls { no-tunnel-services; site site_2 { site-identifier 2; interface fe-1/3/1.0; } site site_993 { site-identifier 993; } mac-flush; } } }
user@pe3# show routing-options router-id 192.168.8.1;