Example: Configuring Multipoint LDP Recursive FEC
Our content testing team has validated and updated this example.
Use this configuration example to configure and verify Multipoint Label Distribution Protocol (LDP) Recursive forwarding equivalence class (FEC) in an OSPF network. This enables to form MLDP point-to-multipoint (P2MP) tunnels between two autonomous systems (ASs) when the backbone has no direct route to the root node.
Reading Time |
45 minutes |
Configuration Time |
1 hour |
Example Prerequisites
Hardware requirements |
MX Series routers as CE, PE, and intermediate routers. |
Software requirements |
Junos OS Release 23.4R1 or later running on all devices. |
Before You Begin
Benefits |
The Multipoint LDP (MLDP) Recursive Forwarding Equivalence Class (FEC) is useful in a deployment in which the intermediate routers do not have the route to reach the root node. |
Know more |
Functional Overview
Technologies used |
|
Primary verification tasks |
|
Topology Overview
This configuration example depicts a host system capable of sending multicast traffic and a host system capable of receiving multicast traffic. It shows two autonomous systems (ASes); AS65010 that consists of PE1, P1, and ASBR1 routers and AS65020 that consists of PE2, P2, and ASBR2 routers. All routers within an AS run OSPF as the IGP. All routers belong to area 0. The customer edge (CE) devices use EBGP peering to exchange routes with their provider edge device as part of a Layer 3 VPN service. The PE devices use IBGP to exchange IPv4 routes with the remote PE.
The Provider edge (PE2) and AS border router (ASBR2) routers have route to the root PE1. However, The P (P1 and P2) routers do not have a route towards the root. The MLDP P2MP tunnel is formed from the egress (PE2) to ingress (PE1) routers to pass the FEC element through mLDP.
Hostname |
Role |
Function |
---|---|---|
Remote CE device. |
EBGP peer to PE1 router to advertise and learn CE device loopback addresses. |
|
Local PE device. |
The root node that intermediate routers of another AS try to reach in a scenario where there is no direct route to PE1. |
|
Intermediate device P1. |
Intermediate router that has no route to PE2 router. It receives PE1-FEC from ASBR1 and processes it as a normal LDP P2MP FEC. |
|
AS border router ASBR1 |
EBGP peer to ASBR2 router to advertise and learn IGP routes. The ASBR1 finds the route to the root (which is an IGP route) and replaces ASBR1-FEC with the contents of the Recursive Opaque Value (PE1-FEC) before doing any further processing. |
|
AS border router ASBR2 |
EBGP peer to ASBR1 router to advertise and learn IGP routes. Acts as root node for P2 and does a lookup to find the route to actual root (PE1). Determines the route to PE1 is a BGP route and forms a LDP Recursive FEC with ASBR1 to PE1. |
|
Intermediate device P2. |
Intermediate router that has no route to PE1 router. It receives the FEC element from PE2 through mLDP. However, it cannot use the same FEC element, because it does not have route to PE1. |
|
Local PE device. |
PE2 creates an MP FEC element with the address of PE1 as the root node address to form a P2MP tunnel from PE2 to root PE1. |
|
Remote CE device. |
EBGP peering to PE2 router to advertise and learn CE device loopback addresses. |
Topology Illustration
PE1 Configuration Steps
For complete sample configurations on PE1, see:
This section highlights the main configuration tasks needed to configure the PE1 device for this example. The first step is common to configuring a basic Layer 3 VPN service. The following set of steps are specific to configuring recursive FEC. Both PE devices have a similar configuration, here we focus on PE1.
First, provision the general Layer 3 VPN:
-
Configure and number the loopback, core facing, and CE-facing interfaces for IPv4. Be sure to enable the
mpls
family on the core-facing interfaces connecting to the P devices to support MPLS switching. -
Configure an autonomous system number.
-
Configure single area OSPF on the loopback and core-facing interfaces.
-
Configure LDP, MPLS on all the interfaces.
-
Configure the IBGP peering session to include the
inet-vpn
address family to support IPv4 layer 3 VPN. Configure a VRF based routing-instance for the CE1 device. Use EBGP as the PE-CE routing protocol.
[edit] set interfaces ge-0/0/0 description "CONNECTED TO CE1" set interfaces ge-0/0/0 unit 0 family inet address 172.16.1.2/30 set interfaces ge-0/0/1 unit 0 family inet address 10.1.23.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.2/32 set interfaces lo0 unit 1 family inet address 192.168.102.1/32
[edit] set chassis network-services enhanced-ip
[edit] set routing-instances VPN1 instance-type vrf set routing-instances VPN1 protocols bgp group CE1-PE1 type external set routing-instances VPN1 protocols bgp group CE1-PE1 family inet unicast set routing-instances VPN1 protocols bgp group CE1-PE1 export EXPORT-LOCAL-ROUTES set routing-instances VPN1 protocols bgp group CE1-PE1 peer-as 65101 set routing-instances VPN1 protocols bgp group CE1-PE1 local-as 65100 set routing-instances VPN1 protocols bgp group CE1-PE1 neighbor 172.16.1.1 set routing-instances VPN1 interface ge-0/0/0.0 set routing-instances VPN1 interface lo0.1 set routing-instances VPN1 route-distinguisher 192.168.100.2:1 set routing-instances VPN1 vrf-table-label
[edit] set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.2 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT peer-as 65100 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.3 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols mpls interface all set protocols mpls interface fxp0.0 disable
[edit] set routing-options router-id 192.168.100.2 set routing-options autonomous-system 65100
-
Configure the mode for C-PIM join messages to use rendezvous-point trees, and switch to the shortest-path tree after the source is known.
[edit] set routing-instances VPN1 protocols mvpn mvpn-mode rpt-spt set routing-instances VPN1 provider-tunnel ldp-p2mp set routing-instances VPN1 vrf-target target:1:1
Configure PIM to enable PE to CE multicast routing.
[edit] set routing-instances VPN1 protocols pim rp static address 192.168.100.1
Enable PIM on the interfaces connected to the CE router.
[edit] set routing-instances VPN1 protocols pim interface lo0.1 set routing-instances VPN1 protocols pim interface ge-0/0/0.0
Configure dynamic selective point-to-multipoint LSP and specify the data threshold required before the new tunnel is created.
[edit] set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 ldp-p2mp set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 threshold-rate 1
Configure point-to-multipoint recursive LDP FEC.
[edit] set protocols ldp p2mp recursive fec
Configure the routing policies.
[edit] set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept
Verification
Command | Verification Task |
---|---|
show ldp overview | Verify Recursive fec enabled in the LDP overview
information. |
show ldp database | Verify the labels advertised point-to-multipoint binding information in the LDP database. |
show ldp p2mp path | Verify LDP P2MP FEC information. |
show ldp p2mp fec | Verify LDP P2MP LSPs. |
- Verify Recursive FEC in the LDP overview information.
- Verify the Advertised Label
- Verify P2MP FEC Information
- Verify P2MP Path Information
Verify Recursive FEC in the LDP overview information.
Purpose
To confirm recursive FEC
is enabled and is displayed in PE1
LDP overview information.
Action
From operational mode, enter the show ldp overview
command.
user@PE1 show ldp overview Instance: master Reference count: 3 Router ID: 192.168.100.2 LDP inet: enabled Transport preference: IPv4 Message id: 33 Configuration sequence: 12 Deaggregate: disabled Explicit null: disabled IPv6 tunneling: disabled Strict targeted hellos: disabled Loopback if added: yes Route preference: 9 P2MP max branches: 4096 Unicast transit LSP chaining: disabled P2MP transit LSP chaining: disabled Transit LSP statistics based on route statistics: disabled LDP route acknowledgement: enabled BGP export: enabled No TTL propagate: disabled LDP mtu discovery: disabled LDP SR Mapping Client: disabled Capabilities enabled: p2mp, make-before-break Egress FEC capabilities enabled: entropy-label-capability Downstream unsolicited Sessions: Operational: 1 Retention: liberal Control: ordered Auto targeted sessions: Auto targeted: disabled Dynamic tunnel session count: 0 P2MP: Recursive route: disabled Recursive fec: enabled No rsvp tunneling: disabled Timers: Keepalive interval: 10, Keepalive timeout: 30 Link hello interval: 5, Link hello hold time: 15 Targeted hello interval: 15, Targeted hello hold time: 45 Label withdraw delay: 60, Make before break timeout: 30 Make before break switchover delay: 3 Link protection timeout: 120 Graceful restart: Restart: disabled, Helper: enabled, Restart in process: false Reconnect time: 60000, Max neighbor reconnect time: 120000 Recovery time: 160000, Max neighbor recovery time: 240000 Traffic Engineering: Bgp igp: disabled Both ribs: disabled Mpls forwarding: disabled IGP: Tracking igp metric: disabled Sync session up delay: 10 Session protection: Session protection: disabled Session protection timeout: 0 Interface addresses advertising: 10.1.23.1 192.168.100.2 LDP Job: Read job time quantum: 1000, Write job time quantum: 1000 Read job loop quantum: 100, Write job loop quantum: 100 Backup inbound read job time quantum: 1000, Backup outbound read job time quantum: 1000 Backup inbound read job loop quantum: 100, Backup outbound read job loop quantum: 100 Label allocation: Current number of LDP labels allocated: 2 Total number of LDP labels allocated: 51 Total number of LDP labels freed: 49 Total number of LDP label allocation failure: 0 Current number of labels allocated by all protocols: 0
Meaning
The output confirms that recursive fec is enabled on PE1.
Verify the Advertised Label
Purpose
Verify the labels advertised from ASBR1 and received by PE1.
Action
From operational mode, enter the show ldp database
command.
On ASBR1
user@ASBR1 show ldp database Input label database, 192.168.100.4:0--192.168.100.5:0 Labels received: 5 Label Prefix 145 192.168.100.4/32 3 192.168.100.5/32 139 192.168.100.6/32 140 192.168.100.7/32 144 P2MP root-addr 192.168.100.2, lsp-id 16777220 next-root:192.168.100.4 Output label database, 192.168.100.4:0--192.168.100.5:0 Labels advertised: 4 Label Prefix 3 192.168.100.4/32 164 192.168.100.5/32 159 192.168.100.2/32 158 192.168.100.3/32 Input label database, 192.168.100.4:0--192.168.100.3:0 Labels received: 3 Label Prefix 125 192.168.100.4/32 88 192.168.100.2/32 3 192.168.100.3/32 Output label database, 192.168.100.4:0--192.168.100.3:0 Labels advertised: 5 Label Prefix 3 192.168.100.4/32 164 192.168.100.5/32 159 192.168.100.2/32 158 192.168.100.3/32 163 P2MP root-addr 192.168.100.2, lsp-id 16777220
On PE1
user@PE1 show ldp database Input label database, 192.168.100.2:0--192.168.100.3:0 Labels received: 4 Label Prefix 125 192.168.100.4/32 88 192.168.100.2/32 3 192.168.100.3/32 129 P2MP root-addr 192.168.100.2, lsp-id 16777220 Output label database, 192.168.100.2:0--192.168.100.3:0 Labels advertised: 3 Label Prefix 107 192.168.100.4/32 3 192.168.100.2/32 104 192.168.100.3/32
Meaning
You can see label 3 advertised from ASBR1 and label 3 received by PE1.
Verify P2MP FEC Information
Purpose
Verify the LDP P2MP FEC information from ASBR2.
Action
From operational mode, enter the show ldp p2mp fec extensive
command.
user@PE2 show ldp p2mp fec extensive LDP P2MP FECs: P2MP root-addr 192.168.100.2, lsp-id 16777220 next-root: 192.168.100.5 Fec type: Egress (Active) Label: 52, Reference count: 1
user@ASBR2 show ldp p2mp fec extensive LDP P2MP FECs: P2MP root-addr 192.168.100.2, lsp-id 16777220 Fec type: Transit (Active) Label: 144, Reference count: 1
Meaning
The output shows that PE2 forms a LDP recursive FEC to find the route to actual root (PE1).
Verify P2MP Path Information
Purpose
Verify the LDP P2MP path information from PE2.
Action
From operational mode, enter the show ldp p2mp path
extensive
command.
user@PE2 show ldp p2mp path extensive P2MP path type: Transit/Egress Output Session (label): 192.168.100.6:0 (52) (Primary) Egress label: 52 Attached FECs: P2MP root-addr 192.168.100.2, lsp-id 16777220 next-root:192.168.100.5 (Active) Address: 0x76f69e0, Reference count: 2
Meaning
The output shows PE2 with the FEC element, in which the root node address is the address of protocol nexthop ASBR2.
Appendix 1: Set Commands on All Devices
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.
We use logical systems to represent the source and receiver for this example.
CE1
set system host-name CE1-source set logical-systems source interfaces lt-0/0/0 unit 12 encapsulation ethernet set logical-systems source interfaces lt-0/0/0 unit 12 peer-unit 11 set logical-systems source interfaces lt-0/0/0 unit 12 family inet address 172.16.12.1/30 set logical-systems source interfaces lo0 unit 12 family inet address 192.168.12.12/32 set logical-systems source protocols ospf area 0.0.0.0 interface all set logical-systems source protocols ospf area 0.0.0.0 interface lo0.12 passive set logical-systems source protocols pim rp static address 192.168.100.1 set logical-systems source protocols pim interface lt-0/0/0.12 set chassis fpc 0 pic 0 tunnel-services set chassis network-services enhanced-ip set interfaces lt-0/0/0 description "CONNECTED TO source" set interfaces lt-0/0/0 unit 11 encapsulation ethernet set interfaces lt-0/0/0 unit 11 peer-unit 12 set interfaces lt-0/0/0 unit 11 family inet address 172.16.12.2/30 set interfaces ge-0/0/1 description "CONNECTED TO PE1" set interfaces ge-0/0/1 unit 0 family inet address 172.16.1.1/30 set interfaces lo0 unit 0 family inet address 192.168.100.1/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-options router-id 192.168.100.1 set routing-options autonomous-system 65101 set protocols bgp group CE1-PE1 type external set protocols bgp group CE1-PE1 family inet unicast set protocols bgp group CE1-PE1 export EXPORT-LOCAL-ROUTES set protocols bgp group CE1-PE1 peer-as 65100 set protocols bgp group CE1-PE1 local-as 65101 set protocols bgp group CE1-PE1 neighbor 172.16.1.2 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols pim rp local family inet address 192.168.100.1 set protocols pim interface lo0.0 set protocols pim interface ge-0/0/1.0 set protocols pim interface lt-0/0/0.11
PE1
set system host-name PE1 set chassis network-services enhanced-ip set interfaces ge-0/0/0 description "CONNECTED TO CE1" set interfaces ge-0/0/0 unit 0 family inet address 172.16.1.2/30 set interfaces ge-0/0/1 description "CONNECTED TO P1" set interfaces ge-0/0/1 unit 0 family inet address 10.1.23.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.2/32 set interfaces lo0 unit 1 family inet address 192.168.102.1/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-instances VPN1 instance-type vrf set routing-instances VPN1 protocols bgp group CE1-PE1 type external set routing-instances VPN1 protocols bgp group CE1-PE1 family inet unicast set routing-instances VPN1 protocols bgp group CE1-PE1 export EXPORT-LOCAL-ROUTES set routing-instances VPN1 protocols bgp group CE1-PE1 peer-as 65101 set routing-instances VPN1 protocols bgp group CE1-PE1 local-as 65100 set routing-instances VPN1 protocols bgp group CE1-PE1 neighbor 172.16.1.1 set routing-instances VPN1 protocols mvpn mvpn-mode rpt-spt set routing-instances VPN1 protocols pim rp static address 192.168.100.1 set routing-instances VPN1 protocols pim interface lo0.1 mode sparse set routing-instances VPN1 protocols pim interface ge-0/0/0.0 mode sparse set routing-instances VPN1 interface ge-0/0/0.0 set routing-instances VPN1 interface lo0.1 set routing-instances VPN1 route-distinguisher 192.168.100.2:1 set routing-instances VPN1 vrf-target target:1:1 set routing-instances VPN1 vrf-table-label set routing-instances VPN1 provider-tunnel ldp-p2mp set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 ldp-p2mp set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 threshold-rate 51 set routing-options router-id 192.168.100.2 set routing-options autonomous-system 65100 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.2 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT peer-as 65100 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.3 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
P1
set system host-name P1 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.23.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.34.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.3/32 set routing-options router-id 192.168.100.3 set routing-options autonomous-system 65100 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.3 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT cluster 192.168.100.3 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.2 set protocols bgp group INT neighbor 192.168.100.4 set protocols bgp group eBGP_PE_PE type external set protocols bgp group eBGP_PE_PE multihop ttl 25 set protocols bgp group eBGP_PE_PE local-address 192.168.100.3 set protocols bgp group eBGP_PE_PE family inet-vpn any set protocols bgp group eBGP_PE_PE family inet-mvpn signaling set protocols bgp group eBGP_PE_PE neighbor 192.168.100.6 peer-as 65200 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive route set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
ASBR1
set system host-name ASBR1 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.34.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.45.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0040.0400.4004.00 set policy-options policy-statement To-ASBR2 term 1 from route-filter 192.168.100.2/32 exact set policy-options policy-statement To-ASBR2 term 1 from route-filter 192.168.100.3/32 exact set policy-options policy-statement To-ASBR2 term 1 then accept set policy-options policy-statement To-ASBR2 term 2 then reject set policy-options policy-statement from-direct term 1 from interface lo0.0 set policy-options policy-statement from-direct term 1 then accept set policy-options policy-statement from-ospf term 1 from protocol ospf set policy-options policy-statement from-ospf term 1 then accept set routing-options router-id 192.168.100.4 set routing-options autonomous-system 65100 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.4 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT peer-as 65100 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.3 set protocols bgp group eBGP_ASBR type external set protocols bgp group eBGP_ASBR multihop ttl 2 set protocols bgp group eBGP_ASBR local-address 192.168.100.4 set protocols bgp group eBGP_ASBR family inet labeled-unicast resolve-vpn set protocols bgp group eBGP_ASBR export from-ospf set protocols bgp group eBGP_ASBR export from-direct set protocols bgp group eBGP_ASBR export To-ASBR2 set protocols bgp group eBGP_ASBR neighbor 192.168.100.5 peer-as 65200 set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface lo0.0 set protocols isis level 2 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
ASBR2
set system host-name ASBR2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.45.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.56.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.5/32 set interfaces lo0 unit 0 family iso address 49.0001.0050.0500.5005.00 set policy-options policy-statement To-ASBR1 term 1 from route-filter 192.168.100.7/32 exact set policy-options policy-statement To-ASBR1 term 1 from route-filter 192.168.100.6/32 exact set policy-options policy-statement To-ASBR1 term 1 then accept set policy-options policy-statement To-ASBR1 term 2 then reject set policy-options policy-statement from-direct term 1 from interface lo0.0 set policy-options policy-statement from-direct term 1 then accept set policy-options policy-statement from-ospf term 1 from protocol ospf set policy-options policy-statement from-ospf term 1 then accept set routing-options router-id 192.168.100.5 set routing-options autonomous-system 65200 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.5 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT peer-as 65200 set protocols bgp group INT local-as 65200 set protocols bgp group INT neighbor 192.168.100.6 set protocols bgp group eBGP_ASBR type external set protocols bgp group eBGP_ASBR multihop ttl 2 set protocols bgp group eBGP_ASBR local-address 192.168.100.5 set protocols bgp group eBGP_ASBR family inet labeled-unicast resolve-vpn set protocols bgp group eBGP_ASBR export from-ospf set protocols bgp group eBGP_ASBR export from-direct set protocols bgp group eBGP_ASBR export To-ASBR1 set protocols bgp group eBGP_ASBR neighbor 192.168.100.4 peer-as 65100 set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface lo0.0 set protocols isis level 2 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
P2
set system host-name P2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.56.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.67.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.6/32 set routing-options router-id 192.168.100.6 set routing-options autonomous-system 65200 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.6 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT cluster 192.168.100.6 set protocols bgp group INT local-as 65200 set protocols bgp group INT neighbor 192.168.100.5 set protocols bgp group INT neighbor 192.168.100.7 set protocols bgp group eBGP_PE_PE type external set protocols bgp group eBGP_PE_PE multihop ttl 25 set protocols bgp group eBGP_PE_PE local-address 192.168.100.6 set protocols bgp group eBGP_PE_PE family inet-vpn any set protocols bgp group eBGP_PE_PE family inet-mvpn signaling set protocols bgp group eBGP_PE_PE neighbor 192.168.100.3 peer-as 65100 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive route set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
PE2
set system host-name PE2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.67.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 description "CONNECTED TO CE2" set interfaces ge-0/0/1 unit 0 family inet address 172.16.2.2/30 set interfaces lo0 unit 0 family inet address 192.168.100.7/32 set interfaces lo0 unit 1 family inet address 192.168.100.17/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-instances VPN2 instance-type vrf set routing-instances VPN2 protocols bgp group PE2-CE2 type external set routing-instances VPN2 protocols bgp group PE2-CE2 family inet unicast set routing-instances VPN2 protocols bgp group PE2-CE2 export EXPORT-LOCAL-ROUTES set routing-instances VPN2 protocols bgp group PE2-CE2 peer-as 65201 set routing-instances VPN2 protocols bgp group PE2-CE2 local-as 65200 set routing-instances VPN2 protocols bgp group PE2-CE2 neighbor 172.16.2.1 set routing-instances VPN2 protocols mvpn mvpn-mode rpt-spt set routing-instances VPN2 protocols pim rp static address 192.168.100.1 set routing-instances VPN2 protocols pim interface lo0.1 mode sparse set routing-instances VPN2 protocols pim interface ge-0/0/1.0 mode sparse set routing-instances VPN2 protocols pim interface all set routing-instances VPN2 interface ge-0/0/1.0 set routing-instances VPN2 interface lo0.1 set routing-instances VPN2 route-distinguisher 192.168.100.17:1 set routing-instances VPN2 vrf-target target:1:1 set routing-instances VPN2 vrf-table-label set routing-options router-id 192.168.100.7 set routing-options autonomous-system 65200 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.7 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT peer-as 65200 set protocols bgp group INT local-as 65200 set protocols bgp group INT neighbor 192.168.100.6 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
CE2
set system host-name CE2-receiver set logical-systems receiver interfaces lt-0/0/0 unit 22 encapsulation ethernet set logical-systems receiver interfaces lt-0/0/0 unit 22 peer-unit 21 set logical-systems receiver interfaces lt-0/0/0 unit 22 family inet address 172.16.22.22/30 set logical-systems receiver interfaces lo0 unit 22 family inet address 192.168.22.22/32 set logical-systems receiver protocols ospf area 0.0.0.0 interface all set chassis fpc 0 pic 0 tunnel-services set chassis network-services enhanced-ip set interfaces ge-0/0/0 description "CONNECTED TO PE2" set interfaces ge-0/0/0 unit 0 family inet address 172.16.2.1/30 set interfaces lt-0/0/0 description "CONNECTED FROM CE2 TO receiver" set interfaces lt-0/0/0 unit 21 encapsulation ethernet set interfaces lt-0/0/0 unit 21 peer-unit 22 set interfaces lt-0/0/0 unit 21 family inet address 172.16.22.21/30 set interfaces lo0 unit 0 family inet address 192.168.100.8/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-options router-id 192.168.100.8 set routing-options autonomous-system 65201 set protocols bgp group CE2-PE2 type external set protocols bgp group CE2-PE2 family inet unicast set protocols bgp group CE2-PE2 export EXPORT-LOCAL-ROUTES set protocols bgp group CE2-PE2 peer-as 65200 set protocols bgp group CE2-PE2 local-as 65201 set protocols bgp group CE2-PE2 neighbor 172.16.2.2 set protocols igmp interface lt-0/0/0.21 static group 225.1.1.1 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols pim rp static address 192.168.100.1 set protocols pim interface all set protocols pim interface fxp0.0 disable set protocols sap listen 225.1.1.1 port 5000
Appendix 2: Show Configuration Output on PE1 and ASBR2
- The Complete PE1 configuration in Curly Brace Format
- The Complete ASBR2 configuration in Curly Brace Format
The Complete PE1 configuration in Curly Brace Format
user@PE1# show | no-more system { host-name PE1; } interfaces { ge-0/0/0 { description "CONNECTED TO CE1"; unit 0 { family inet { address 172.16.1.2/30; } } } ge-0/0/1 { description "CONNECTED TO P1"; unit 0 { family inet { address 10.1.23.1/24; } family mpls; } } lo0 { unit 0 { family inet { address 192.168.100.2/32; } } unit 1 { family inet { address 192.168.102.1/32; } } } } policy-options { policy-statement EXPORT-LOCAL-ROUTES { term 1 { from protocol direct; then accept; } } } routing-instances { VPN1 { instance-type vrf; protocols { bgp { group CE11-PE1 { type external; family inet { unicast; } export EXPORT-LOCAL-ROUTES; peer-as 65101; local-as 65100; neighbor 172.16.1.1; } } mvpn { mvpn-mode { rpt-spt; } } pim { rp { static { address 192.168.100.1; } } interface lo0.1; interface ge-0/0/0.0; } } interface ge-0/0/0.0; interface lo0.1; route-distinguisher 192.168.100.2:1; vrf-target target:1:1; vrf-table-label; provider-tunnel { ldp-p2mp; selective { group 225.1.1.1/32 { source 172.16.12.1/32 { ldp-p2mp; threshold-rate 1; } } } } } } routing-options { router-id 192.168.100.2; autonomous-system 65100; nonstop-routing; } protocols { bgp { group INT { type internal; local-address 192.168.100.2; family inet { labeled-unicast { resolve-vpn; } } family inet-vpn { any; } family inet-mvpn { signaling; } export from-direct; peer-as 65100; local-as 65100; neighbor 192.168.100.3; } } ldp { interface all; interface fxp0.0 { disable; } p2mp { recursive { fec; } } } mpls { interface all; interface fxp0.0 { disable; } } ospf { area 0.0.0.0 { interface lo0.0 { passive; } interface all; interface fxp0.0 { disable; } } } }
The Complete ASBR2 configuration in Curly Brace Format
user@ASBR2# show | no-more system { host-name ASBR2; } interfaces { ge-0/0/0 { unit 0 { family inet { address 10.1.45.2/24; } family iso; family mpls; } } ge-0/0/1 { unit 0 { family inet { address 10.1.56.1/24; } family mpls; } } lo0 { unit 0 { family inet { address 192.168.100.5/32; } family iso { address 49.0001.0060.0600.6006.00; } } } } policy-options { policy-statement NHP { term 1 { from protocol bgp; then { next-hop self; accept; } } } policy-statement To-ASBR1 { term 1 { from { route-filter 192.168.100.7/32 exact; route-filter 192.168.100.6/32 exact; } then accept; } term 2 { then reject; } } policy-statement from-direct { term 1 { from interface lo0.0; then accept; } } policy-statement from-ospf { term 1 { from protocol ospf; then accept; } } } routing-options { router-id 192.168.100.5; autonomous-system 65200; nonstop-routing; } protocols { bgp { group INT { type internal; local-address 192.168.100.5; family inet { labeled-unicast { resolve-vpn; } } peer-as 65200; local-as 65200; neighbor 192.168.100.6 { export NHP; } } group eBGP_ASBR1-ASBR2 { type external; local-address 192.168.100.5; family inet { labeled-unicast { resolve-vpn; } } export [ from-ospf from-direct To-ASBR1 ]; neighbor 192.168.100.4 { multihop; peer-as 65100; } } } isis { interface ge-0/0/0.0 { level 2 disable; } interface lo0.0 { level 1 { passive; } } } ldp { interface all; interface fxp0.0 { disable; } p2mp { recursive { fec; } } } ospf { traffic-engineering; area 0.0.0.0 { interface ge-0/0/1.0; interface lo0.0 { passive; } } } }