Configure MPLS-TE Shared Risk Link Group

Figure 39. Topology for SRLG

RTR2

Loopback Interface

#configure terminal

Enter configure mode

(config)#interface lo

Enter the Interface mode for the loopback interface

(config-if)#ip address 2.2.2.2/32 secondary

Configure IP address on loopback interface

(config-if)#commit

Commit the transaction

MPLS Interface

(config)#interface xe1

Enter the Interface mode

(config-if)#ip address 22.1.1.2/24

Configure ip address on the interface

(config-if)#label-switching

Enable label switching on the interface

(config-if)#exit

Exit Interface mode and return to Configure mode.

(config)#interface xe5

Enter the Interface mode

(config-if)#ip address 30.1.1.2/24

Configure ip address on the interface

(config-if)#label-switching

Enable label switching on the interface

(config-if)#exit

Exit Interface mode and return to Configure mode.

(config)#interface xe7

Enter the Interface mode

(config-if)#ip address 11.1.1.2/24

Configure ip address on the interface

(config-if)#label-switching

Enable label switching on the interface

(config-if)#commit

Commit the transaction.

OSPF

(config)#router ospf 1

Enter the Router OSPF mode

(config-router)#router-id 2.2.2.2

Configure OSPF router ID

(config-router)#network 2.2.2.2/32 area 0

Advertise loopback address in OSPF

(config-router)#network 11.1.1.0/24area 0

Advertise network address in OSPF

(config-router)#network 22.1.1.0/24 area 0

Advertise network address in OSPF

(config-router)#network 30.1.1.0/24area 0

Advertise network address in OSPF

(config-if)#commit

Commit the transaction

Global RSVP

(config)#router rsvp

Enter the Router RSVP mode

(config-if)#commit

Commit the transaction

RSVP Interface

 

(config)#interface xe1

Enter the Interface mode

(config-if)#enable-rsvp

Enable RSVP on the interface

(config-if)#exit

Exit Interface mode and return to Configure mode.

(config)#interface xe5

Enter the Interface mode

(config-if)#enable-rsvp

Enable RSVP on the interface

(config-if)#exit

Exit Interface mode and return to Configure mode

(config)#interface xe7

Enter the Interface mode

(config-if)#enable-rsvp

Enable rsvp on the interface

(config-if)#commit

Commit the transaction

Global SRLG (Path Type: Forced)

(config)#router rsvp

Enter the Router RSVP mode.

config-router)#srlg-disjoint forced

Configure SRLG path type forced

(config-router)#commit

Commit the transaction.

Disjoint type “preferred” can be configured globally using the command srlg-disjoint preferred.

SRLG Interface

(config)#interface xe1

Enter the interface mode

(config-if)#mpls traffic-eng srlg 11

Configure SRLG value in the interface

(config-if)#exit

Exit Interface mode and return to Configure mode

(config)#interface xe7

Enter the Interface mode

(config-if)#mpls traffic-eng srlg 11

Configure SRLG value in the interface

(config-if)#exit

Exit Interface mode and return to Configure mode

(config)#interface xe5

Enter the Interface mode

(config-if)#mpls traffic-eng srlg 30

Configure SRLG value in the interface

(config-if)#commit

Commit the transaction

MPLS RSVP Path

(config)#rsvp-path path1

Configure MPLS-path

(config-path)#11.1.1.3 strict

Configure first hop for the path

(config-path)#12.1.1.4 strict

Configure second hop for the path

(config-path)#exit

Exit mpls-path mode and return to Configure mode

(config)#rsvp-path sec-path1

Configure MPLS-path

(config-path)#4.4.4.4 loose

Configure loose path

(config-path)#exit

Exit mpls-path mode and return to Configure mode

(config-path)#rsvp-path sec-path2

Configure MPLS-path

(config-path)#4.4.4.4 loose

Configure loose path

(config-if)#commit

Commit the transaction

RSVP-TE Tunnel with Secondary Protection and SRLG Disjoint Type Forced:

#configure terminal

Enter configure mode

(config)#rsvp-trunk lsp1

Configure RSVP trunk

(config-trunk)#primary path path1

Configure primary path

(config-trunk)#secondary-priority 1 path sec-path1

Configure secondary path

(config-trunk)#secondary-priority 1 srlg-disjoint forced

Configure SRLG for secondary path

(config-trunk)#secondary-priority 2 path sec-path2

Configure secondary path

(config-trunk)#secondary-priority 2 srlg-disjoint forced

Configure SRLG for secondary path

(config-trunk)#to 4.4.4.4

Configure RSVP trunk destination address

(config-if)#commit

Commit the transaction

Disjoint type preferred can be configured in rsvp-trunk secondary using the command "secondary-priority 2 srlg-disjoint forced.

RSVP-TE Tunnel with Fast Reroute Protection One-to-One

#configure terminal

Enter configure mode

(config)#rsvp-trunk lsp2

Configure RSVP trunk

(config-trunk)#primary fast-reroute protection one-to-one

Configure fast-reroute protection

(config-trunk)#primary path path1

Configure primary path

(config-trunk)#to 4.4.4.4

Configure RSVP trunk destination address

(config-if)#commit

Commit the transaction

RSVP-TE Tunnel with Fast Reroute Protection Facility Backup

#configure terminal

Enter configure mode

(config)#rsvp-bypass bypass1

Configure rsvp bypass tunnel

(config-bypass)#path path1

Configure path for bypass tunnel

(config-bypass)#to 4.4.4.4

Configure destination address for tunnel

(config-bypass)#exit

Exit rsvp-bypass tunnel mode

(config)#rsvp-trunk lsp3

Configure rsvp trunk

(config-trunk)#primary fast-reroute protection facility

Configure fast-reroute protection facility

(config-trunk)#primary path sec-path1

Configure path

(config-trunk)#to 4.4.4.4

Configure the destination of rsvp trunk

(config-if)#commit

Commit the transaction