OcNOS-SP : Segment Routing Guide : Segment Routing Configuration Guide : ISIS Segment Routing Micro-Loop Avoidance : Topology
Topology
Figure 18-21: ISIS-SR micro-loop avoidance
PE1
 
PE1#configure terminal
Enter configure mode.
PE1(config)#hardware-profile micro-bfd enable
Enable hardware profile micro bfd
PE1(config)#bfd interval 3 minrx 3 multiplier 3
Enable bfd interval min with 3 multiplier 3
PE1(config)#qos enable
Enable qos
PE1(config)#vlan database
Configure vlan database
PE1(config)#vlan 20 bridge 1 state enable
Configure vlan id
PE1(config)#interface lo
Enter loopback interface mode
PE1(config-if)#ip address 26.26.26.26/32 secondary
Configure the secondary IP address of the- loopback interface.
PE1(config-if)#prefix-sid index 100 no-php
Configure sid value with no-php
PE1(config-if)#ip router isis 1
Make the interface part of the router isis instance.
PE1(config-if)#exit
Exit from interface mode.
PE1(config)#interface po1
Configure interface as po1
PE1(config-if)#exit
Exit from interface mode.
PE1(config)#interface po1.10
Configure interface as po1 subinterface
PE1(config-if)#encapsulation dot1q 10
Enable encapsulate dot1q
PE1(config-if)#ip address 10.1.1.26/24
Configure the IP address of the interface.
PE1(config-if)#label-switching
Enable label switching.
PE1(config-if)#isis network point-to-point
Enable network as point to point.
PE1(config-if)#ip router isis 1
Make the interface part of the router isis instance.
PE1(config-if)#exit
Exit from interface mode
PE1(config)#interface vlan1.20
Enter vlan interface mode.
PE1(config-if)#ip address 20.1.1.26/24
Configure the IP address of the interface.
PE1(config-if)#label-switching
Enable label switching.
PE1(config-if)#isis network point-to-point
Enable network as point to point
PE1(config-if)#ip router isis 1
Make the interface part of the router isis instance.
PE1(config-if)#exit
Exit interface mode.
PE1(config)#interface xe2
Enter interface mode.
PE1(config-if)#switchport
Enter the switchport mode.
PE1(config-if)#bridge-group 1
Enable bridge group
PE1(config-if)#switchport mode trunk
Enter switchport mode trunk
PE1(config-if)#switchport trunk allowed vlan add 20
Enter switchport trunk allow vlan and add vlan id
PE1(config-if)#exit
Exit interface mode.
PE1(config)#interface xe7
Enter interface mode.
PE1(config-if)#channel-group 1 mode active
Enable channel group 1 mode active
PE1(config-if)#exit
Exit interface mode.
PE1(config)#commit
Commit the candidate configuration to the running configuration
PE1(config)#router isis 1
Set the routing process ID.
PE1(config-router)#is-type level-1-2
Enable iks-type as level1-2
PE1(config-router)#spf-interval-exp 10000 10000
Enable spf interval value
PE1(config-router)#metric-style wide
Configure Network entity title (NET).
PE1(config-router)#microloop-avoidance level-1
Enable microloop avoidance as level-1
PE1(config-router)#microloop-avoidance level-2
Enable microloop avoidance as level-2
PE1(config-router)#mpls traffic-eng router-id 26.26.26.26
Enable mpls traffic eng router-id
PE1(config-router)#mpls traffic-eng level-1
Enable MPLS Traffic Engineering as level-1.
PE1(config-router)#mpls traffic-eng level-2
Enable MPLS Traffic Engineering as level-2.
PE1(config-router)#dynamic-hostname
Enable dynamic-hostname under ISIS process.
PE1(config-router)#fast-reroute ti-lfa level-1 proto ipv4
Enable ti-lfa with level-1
PE1(config-router)#fast-reroute ti-lfa level-2 proto ipv4
Enable ti-lfa with level-2
PE1(config-router)#bfd all-interfaces
Enable bfd all interfaces
PE1(config-router)#net 49.0000.0000.0026.00
Configure Network entity title (NET).
PE1(config-router)#passive-interface lo
Enable passive interface with loopback
PE1(config-router)#segment-routing mpls
Enable segment routing mpls ISIS processP1
PE1(config-router)#exit
Exit router mode.
PE1(config)#commit
Commit the candidate configuration to the running configuration
P1
 
P1#configure terminal
Enter configure mode.
P1(config)#hardware-profile micro-bfd enable
Enable hardware profile micro bfd
P1(config)#bfd interval 3 minrx 3 multiplier 3
Enable bfd interval min with 3 multiplier 3
P1(config)#qos enable
Enable qos
P1(config)#interface lo
Enter loopback interface mode
P1(config-if)#ip address 3.3.3.3/32 secondary
Configure the secondary IP address of the- loopback interface.
P1(config-if)#ip router isis 1
Configure sid value with no-php
P1(config-if)#prefix-sid index 200 no-php
Make the interface part of the router isis instance.
P1(config-if)#exit
Exit from interface mode.
P1(config)#interface po1
Configure interface as po1
P1(config-if)#exit
Exit from interface mode.
P1(config)#interface po1.10
Configure interface as po1 subinterface
P1(config-if)#encapsulation dot1q 10
Enable encapsulate dot1q
P1(config-if)#ip address 10.1.1.3/24
Configure the IP address of the interface.
P1(config-if)#label-switching
Enable label switching.
P1(config-if)#isis network point-to-point
Enable network as point to point.
P1(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P1(config-if)#exit
Exit from interface mode
P1(config)#interface po2
Configure interface as po2
P1(config-if)#exit
Exit from interface mode.
P1(config)#interface po2.11
Configure interface as po2 subinterface
P1(config-if)#encapsulation dot1q 11
Enable encapsulate dot1q
P1(config-if)#ip address 11.1.1.3/24
Configure the IP address of the interface.
P1(config-if)#label-switching
Enable label switching.
P1(config-if)#isis network point-to-point
Enable network as point to point.
P1(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P1(config-if)#exit
Exit from interface mode
P1(config)#interface ce43
Enter interface modce
P1(config-if)#channel-group 2 mode active
Enable channel group 2 mode active
P1(config-if)#exit
Exit from interface mode
P1(config)#interface xe7
Enter interface mode
P1(config-if)#channel-group 1 mode active
Enable channel group 1 mode active
P1(config-if)#exit
Exit from interface mode
P1(config)#router isis 1
Set the routing process ID.
P1(config-router)#is-type level-1-2
Enable iks-type as level1-2
P1(config-router)#spf-interval-exp 10000 10000
Enable spf interval value
P1(config-router)#metric-style wide
Configure Network entity title (NET).
P1(config-router)#microloop-avoidance level-1
Enable microloop avoidance as level-1
P1(config-router)#microloop-avoidance level-2
Enable microloop avoidance as level-2
P1(config-router)#mpls traffic-eng router-id 3.3.3.3
Enable mpls traffic eng router-id
P1(config-router)#mpls traffic-eng level-1
Enable MPLS Traffic Engineering as level-1.
P1(config-router)#mpls traffic-eng level-2
Enable MPLS Traffic Engineering as level-2.
P1(config-router)#capability cspf
Enable capability cspf
P1(config-router)#dynamic-hostname
Enable dynamic-hostname under ISIS process.
P1(config-router)#set-overload-bit on-startup 120
Configure set overload bit on startup
P1(config-router)#fast-reroute ti-lfa level-1 proto ipv4
Enable ti-lfa with level-1
P1(config-router)#fast-reroute ti-lfa level-2 proto ipv4
Enable ti-lfa with level-2
P1(config-router)#bfd all-interfaces
Enable bfd all interfaces
P1(config-router)#net 49.0000.0000.0003.00
Configure Network entity title (NET).
P1(config-router)#passive-interface lo
Enable passive interface with loopback
P1(config-router)#segment-routing mpls
Enable segment routing mpls ISIS process.
P1(config-router)#exit
Exit router mode.
P1(config)#commit
Commit the candidate configuration to the running configuration
P2
 
P2#configure terminal
Enter configure mode.
P2(config)#hardware-profile micro-bfd enable
Enable hardware profile micro bfd
P2(config)#bfd interval 3 minrx 3 multiplier 3
Enable bfd interval min with 3 multiplier 3
P2(config)#qos enable
Enable qos
P2(config)#vlan database
Configure vlan database
P2(config-vlan)#vlan 20 bridge 1 state enable
Configure vlan id
P2(config-vlan)#exit
Exit from vlan mode
P2(config)#interface lo
Enter loopback interface mode
P2(config-if)#ip address 2.2.2.2/32 secondary
Configure the secondary IP address of the- loopback interface.
P2(config-if)#prefix-sid index 400 no-php
Configure sid value with no-php
P2(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P2(config-if)#exit
Exit from interface mode.
P2(config)#interface xe1
Enter the interface mode.
P2(config-if)#ip address 81.1.1.1/24
Configure the IP address of the interface.
P2(config-if)#label-switching
Enable label switching.
P2(config-if)#isis network point-to-point
Enable isis network as point to point.
P2(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P2(config-if)#exit
Exit from interface mode.
P2(config)#interface xe2
Enter interface mode.
P2(config-if)#switchport
Enable switchport
P2(config-if)#bridge-group 1
Enable bridge group 1
P2(config-if)#switchport mode trunk
Enable switchport mode trunk
P2(config-if)#switchport trunk allowed vlan add 20
Enable switchport trunk allow vlan with vlan id.
P2(config-if)#exit
Exit from interface mode.
P2(config)#router isis 1
Set the routing process ID.
P2(config-router)#is-type level-1-2
Enable is-type as level1-2
P2(config-router)#spf-interval-exp 10000 10000
Enable spf interval value
P2(config-router)#metric-style wide
Configure metric style wide
P2(config-router)#microloop-avoidance level-1
Enable microloop avoidance as level-1
P2(config-router)#microloop-avoidance level-2
Enable microloop avoidance as level-2
P2(config-router)#mpls traffic-eng router-id 2.2.2.2
Enable mpls traffic eng router-id
P2(config-router)#mpls traffic-eng level-1
Enable MPLS Traffic Engineering as level-1.
P2(config-router)#mpls traffic-eng level-2
Enable MPLS Traffic Engineering as level-2.
P2(config-router)#dynamic-hostname
Enable dynamic-hostname under ISIS process.
P2(config-router)#fast-reroute ti-lfa level-1 proto ipv4
Enable ti-lfa with level-1
P2(config-router)#fast-reroute ti-lfa level-2 proto ipv4
Enable ti-lfa with level-2
P2(config-router)#bfd all-interfaces
Enable bfd all interfaces
P2(config-router)#net 49.0000.0000.0002.00
Configure Network entity title (NET).
P2(config-router)#passive-interface lo
Enable passive interface with loopback
P2(config-router)#segment-routing mpls
Enable segment routing mpls ISIS process.
P2(config-router)#exit
Exit router mode.
P2(config)#commit
Commit the candidate configuration to the running configuration
P3
 
P3#configure terminal
Enter configure mode.
P3(config)#bfd interval 3 minrx 3 multiplier 3
Enable bfd interval min with 3 multiplier 3
P3(config)#qos enable
Enable qos
P3(config)#interface lo
Enter loopback interface mode
P3(config-if)#ip address 6.6.6.6/32 secondary
Configure the secondary IP address of the- loopback interface.
P3(config-if)#prefix-sid index 6 no-php
Configure sid value with no-php
P3(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P3(config-if)#exit
Exit from interface mode.
P3(config-if)#interface ce14
Enter interface mode.
P3(config-if)#ip address 82.1.1.2/24
Configure the IP address of the interface.
P3(config-if)#label-switching
Enable label switching.
P3(config-if)#isis network point-to-point
Configure isis network as point to point.
P3(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P3(config-if)#exit
Exit from interface mode
P3(config)#interface xe1
Enter interface mode.
P3(config-if)#ip address 81.1.1.2/24
Configure the IP address of the interface.
P3(config-if)#label-switching
Enable label switching.
P3(config-if)#isis network point-to-point
Configure isis network as point to point.
P3(config-if)#ip router isis 1
Make the interface part of the router isis instance.
P3(config-if)#exit
Exit from interface mode.
P3(config)#router isis 1
Set the routing process ID.
P3(config-router)#is-type level-1-2
Enable iks-type as level1-2
P3(config-router)#spf-interval-exp 10000 10000
Enable spf interval value
P3(config-router)#metric-style wide
Configure Network entity title (NET).
P3(config-router)#microloop-avoidance level-1
Enable microloop avoidance as level-1
P3(config-router)#microloop-avoidance level-2
Enable microloop avoidance as level-2
P3(config-router)#mpls traffic-eng router-id 6.6.6.6
Enable mpls traffic eng router-id
P3(config-router)#mpls traffic-eng level-1
Enable MPLS Traffic Engineering as level-1.
P3(config-router)#mpls traffic-eng level-2
Enable MPLS Traffic Engineering as level-2.
P3(config-router)#dynamic-hostname
Enable dynamic-hostname under ISIS process.
P3(config-router)#fast-reroute ti-lfa level-1 proto ipv4
Enable ti-lfa with level-1
P3(config-router)#fast-reroute ti-lfa level-2 proto ipv4
Enable ti-lfa with level-2
P3(config-router)#bfd all-interfaces
Enable bfd all interfaces
P3(config-router)#net 49.0000.0000.0006.00
Configure Network entity title (NET).
P3(config-router)#passive-interface lo
Enable passive interface with loopback
P3(config-router)#segment-routing mpls
Enable segment routing mpls ISIS process.
P3(config-router)#exit
Exit router mode.
P3(config)#commit
Commit the candidate configuration to the running configuration
PE2
 
PE2#configure terminal
Enter configure mode.
PE2(config)#bfd interval 3 minrx 3
Enable bfd interval min with 3 multiplier 3
PE2(config)#qos enable
Enable qos
PE2(config)#interface lo
Enter loopback interface mode
PE2(config-if)#ip address 23.23.23.23/32 secondary
Configure the secondary IP address of the- loopback interface.
PE2(config-if)#prefix-sid index 300 no-php
Configure sid value with no-php
PE2(config-if)#ip router isis 1
Make the interface part of the router isis instance.
PE2(config-if)#exit
Exit from interface mode.
PE2(config)#interface po2
Configure interface as po2
PE2(config-if)#exit
Exit from interface mode.
PE2(config)#interface po2.11
Configure interface as po2 subinterface
PE2(config-if)#encapsulation dot1q 11
Enable encapsulate dot1q
PE2(config-if)#ip address 11.1.1.23/24
Configure the IP address of the interface.
PE2(config-if)#label-switching
Enable label switching.
PE2(config-if)#isis network point-to-point
Enable network as point to point.
PE2(config-if)#ip router isis 1
Make the interface part of the router isis instance.
PE2(config-if)#exit
Exit from interface mode
PE2(config)#interface ce14
Enter interface mode.
PE2(config-if)#ip address 82.1.1.1/24
Configure the IP address of the interface.
PE2(config-if)#label-switching
Enable label switching.
PE2(config-if)#isis network point-to-point
Enable network as point to point.
PE2(config-if)#ip router isis 1
Make the interface part of the router isis instance.
PE2(config-if)#exit
Exit from interface mode.
PE2(config)#interface ce43
Enter interface mode.
PE2(config-if)#channel-group 2 mode active
Enable channel group 2 mode active
PE2(config-if)#exit
Exit from interface mode.
PE2(config)#router isis 1
Set the routing process ID.
PE2(config-router)#is-type level-1-2
Enable iks-type as level1-2
PE2(config-router)#spf-interval-exp 10000 10000
Enable spf interval value
PE2(config-router)#metric-style wide
Enable metric style wide
PE2(config-router)#microloop-avoidance level-1
Enable microloop avoidance as level-1
PE2(config-router)#microloop-avoidance level-2
Enable microloop avoidance as level-2
PE2(config-router)#mpls traffic-eng router-id 23.23.23.23
Enable mpls traffic eng router-id
PE2(config-router)#mpls traffic-eng level-1
Enable MPLS Traffic Engineering as level-1.
PE2(config-router)#mpls traffic-eng level-2
Enable MPLS Traffic Engineering as level-2.
PE2(config-router)#dynamic-hostname
Enable dynamic-hostname under ISIS process.
PE2(config-router)#fast-reroute ti-lfa level-1 proto ipv4
Enable ti-lfa with level-1
PE2(config-router)#fast-reroute ti-lfa level-2 proto ipv4
Enable ti-lfa with level-2
PE2(config-router)#bfd all-interfaces
Enable bfd all interfaces
PE2(config-router)#net 49.0000.0000.0023.00
Configure Network entity title (NET).
PE2(config-router)#passive-interface lo
Enable passive interface with loopback
PE2(config-router)#segment-routing mpls
Enable segment routing mpls ISIS process.
PE2(config-router)#exit
Exit router mode.
PE2(config)#commit
Commit the candidate configuration to the running configuration
Note: By default, PHP is enabled. To see all the labels in MPLS forwarding and ILM tables, we have enabled with non-php option.
Last modified date: 10/20/2023