You are on page 1of 7

Download PNETLab Platform

PNETLAB Store
PNETLab.com

MPLS Traffic Protection with Fast Reroute

1. Lab Topology

2. Requirements

JNCIA.

MPLS.

1
Download PNETLab Platform
PNETLAB Store
PNETLab.com

LSP, RSVP.

Traffic Protection: Fast reroute.

3. Lab Objective

This lab show you how to configure traffic protection by fast-reroute 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.

Task 5: Configure LSP and fast reroute for CSG per AGG.

Task 6: Check detour and result if path default down.

5. Lab setup

Router login with account:

- root/juniper@123
- juniper/juniper@123

6. Solution

• PE01:

set interfaces ge-0/0/1 unit 0 family inet address 192.168.3.1/24


set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.2/24
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com

set interfaces ge-0/0/2 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/1.0
set protocols rsvp interface ge-0/0/2.0
set protocols mpls label-switched-path PE01-to-P01 to 100.100.100.10
set protocols mpls label-switched-path PE01-to-P01 fast-reroute
set protocols mpls label-switched-path PE01-to-P02 to 100.100.100.20
set protocols mpls label-switched-path PE01-to-P02 fast-reroute
set protocols mpls interface ge-0/0/1.0
set protocols mpls interface ge-0/0/2.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/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0

• PE02:

set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.2/24


set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24
set interfaces ge-0/0/2 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/1.0
set protocols rsvp interface ge-0/0/2.0
set protocols mpls label-switched-path PE02-to-P01 to 100.100.100.10
set protocols mpls label-switched-path PE02-to-P01 fast-reroute
set protocols mpls label-switched-path PE02-to-P02 to 100.100.100.20
set protocols mpls label-switched-path PE02-to-P02 fast-reroute
set protocols mpls interface ge-0/0/1.0
set protocols mpls interface ge-0/0/2.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/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0

• PE03:

set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.1/24


set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 192.168.5.2/24
set interfaces ge-0/0/2 unit 0 family mpls
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com

set interfaces fxp0 disable


set interfaces lo0 unit 0 family inet address 100.100.100.3/32
set protocols rsvp interface ge-0/0/2.0
set protocols rsvp interface ge-0/0/1.0
set protocols mpls label-switched-path PE03-to-P01 to 100.100.100.10
set protocols mpls label-switched-path PE03-to-P01 fast-reroute
set protocols mpls label-switched-path PE03-to-P02 to 100.100.100.20
set protocols mpls label-switched-path PE03-to-P02 fast-reroute
set protocols mpls interface ge-0/0/2.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/2.0
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0

• P01:

set interfaces ge-0/0/0 unit 0 family inet address 192.168.4.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.3.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.10/32
set protocols rsvp interface ge-0/0/1.0
set protocols rsvp interface ge-0/0/0.0
set protocols mpls label-switched-path P01-to-PE01 to 100.100.100.1
set protocols mpls label-switched-path P01-to-PE01 fast-reroute
set protocols mpls label-switched-path P01-to-PE02 to 100.100.100.2
set protocols mpls label-switched-path P01-to-PE02 fast-reroute
set protocols mpls label-switched-path P01-to-PE03 to 100.100.100.3
set protocols mpls label-switched-path P01-to-PE03 fast-reroute
set protocols mpls label-switched-path P01-to-P02 to 100.100.100.20
set protocols mpls label-switched-path P01-to-P02 fast-reroute
set protocols mpls interface ge-0/0/1.0
set protocols mpls interface ge-0/0/0.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/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0

• P02:

set interfaces ge-0/0/0 unit 0 family inet address 192.168.4.2/24


set interfaces ge-0/0/0 unit 0 family mpls
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com

set interfaces ge-0/0/2 unit 0 family inet address 192.168.5.1/24


set interfaces ge-0/0/2 unit 0 family mpls
set interfaces fxp0 disable
set interfaces lo0 unit 0 family inet address 100.100.100.20/32
set protocols rsvp interface ge-0/0/2.0
set protocols rsvp interface ge-0/0/0.0
set protocols mpls label-switched-path P02-to-PE01 to 100.100.100.1
set protocols mpls label-switched-path P02-to-PE01 fast-reroute
set protocols mpls label-switched-path P02-to-PE02 to 100.100.100.2
set protocols mpls label-switched-path P02-to-PE02 fast-reroute
set protocols mpls label-switched-path P02-to-PE03 to 100.100.100.3
set protocols mpls label-switched-path P02-to-PE03 fast-reroute
set protocols mpls label-switched-path P02-to-P01 to 100.100.100.10
set protocols mpls label-switched-path P02-to-P01 fast-reroute
set protocols mpls interface ge-0/0/2.0
set protocols mpls interface ge-0/0/0.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/2.0
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0

• Check:
o show mpls lsp
o show mpls lsp extensive
o show route protocol rsvp
o ping mpls rsvp “< your checking lsp-name >”
• Make sure each LSP has 2 paths ( primary and detour) that you can see in
“show route protocol rsvp” command.
• Turn down 1 interface that in path, then check detour and result by
“traceroute” or other commands.
• Some result on PE01:

5
Download PNETLab Platform
PNETLAB Store
PNETLab.com

6
Download PNETLab Platform
PNETLAB Store
PNETLab.com

Finish this lab!

You might also like