Download PNETLab Platform
PNETLAB Store
PNETLab.com
MPLS Traffic Protection with Link
Protection
1. Lab Topology
2. Requirements
JNCIA.
MPLS.
LSP, RSVP.
Traffic Protection: Link Protection.
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
3. Lab Objective
This lab show you how to configure traffic protection by Link Protection to minimize the
effect of a failure in the LSP.
4. Lab tasks
Task 1: Configure IPv4 Address for interfaces on Routers in Topology.
Task 2: Configure OSPF Routing protocol with Traffic Engineering.
Task 3: Enable MPLS protocol and MPLS family on interfaces.
Task 4: Configure RSVP protocol and enable link protection.
Task 5: Configure LSP link protection from P01 to P04.
Task 6: Check detour state and result if path default down.
5. Lab setup
Router login with account:
- root/juniper@123
- juniper/juniper@123
6. Solution
• R1:
set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 192.168.4.2/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces fxp0 disable
set interfaces lo0 unit 0 family inet address 100.100.100.1/32
set protocols rsvp interface ge-0/0/0.0 link-protection
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
set protocols rsvp interface ge-0/0/1.0
set protocols mpls label-switched-path P01-to-P04 to 100.100.100.4
set protocols mpls label-switched-path P01-to-P04 link-protection
set protocols mpls label-switched-path P01-to-P04 primary path1
set protocols mpls path path1 192.168.1.2 strict
set protocols mpls interface ge-0/0/0.0
set protocols mpls interface ge-0/0/1.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface lo0.0 passive
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
• R2:
set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 192.168.2.1/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces fxp0 disable
set interfaces lo0 unit 0 family inet address 100.100.100.2/32
set protocols rsvp interface ge-0/0/0.0
set protocols rsvp interface ge-0/0/1.0 link-protection
set protocols mpls interface ge-0/0/0.0
set protocols mpls interface ge-0/0/1.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface lo0.0 passive
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
• R3:
set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.1/24
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 192.168.2.2/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces fxp0 disable
set interfaces lo0 unit 0 family inet address 100.100.100.3/32
set protocols rsvp interface ge-0/0/0.0
set protocols rsvp interface ge-0/0/1.0
set protocols mpls interface ge-0/0/0.0
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
set protocols mpls interface ge-0/0/1.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface lo0.0 passive
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
• R4:
set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 192.168.4.1/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces fxp0 disable
set interfaces lo0 unit 0 family inet address 100.100.100.4/32
set protocols rsvp interface ge-0/0/0.0
set protocols rsvp interface ge-0/0/1.0
set protocols mpls interface ge-0/0/0.0
set protocols mpls interface ge-0/0/1.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface lo0.0 passive
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
• Check:
o show mpls lsp
o show mpls lsp extensive
o show route protocol rsvp
o ping mpls rsvp “< your checking lsp-name >”
• Turn down 1 interface that in path, then check detour and result by
“traceroute” or other commands.
• Some results on R1:
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Finish this lab!