PE1#configure terminal | Enter configure mode. |
PE1(config)#int lo | Enter interface mode. |
PE1(config-if)#ip address 10.0.1.11/32 secondary | Configure the IP address of the interface. |
PE1(config-if)# prefix-sid absolute 16000 no-php | Assign the Prefix SID value. |
PE1(config-if)#exit | Exit interface mode. |
PE1(config)#int xe2 | Enter interface mode. |
PE1(config-if)#ip address 10.11.1.1/30 | Configure the IP address of the interface. |
PE1(config-if)#label-switching | Enable label switching. |
PE1(config-if)#exit | Exit interface mode. |
PE1(config)#router ospf 1 | Configure the routing process and specify the Process ID (1). |
PE1(config-router)#router-id 10.0.1.11 | Advertise the router-id |
PE1(config-router)#network 10.0.1.11/32 area 0.0.0.0 | Advertise the lo interface in OSPF area 0. |
PE1(config-router)#network 10.11.1.0/30 area 0.0.0.0 | Advertise the xe2 interface in OSPF area 0. |
PE1(config-router)# ospf segment-routing global block 16000 23999 | Advertise the segment routing global block range. |
PE1(config-router)# segment-routing mpls | Enable Segment Routing for the OSPF process. |
PE1(config-router)#exit | Exit router mode. |
PE1(config)#commit | Commit the candidate configuration to the running configuration. |
P1#configure terminal | Enter configure mode. |
P1(config)#int lo | Enter interface mode. |
P1(config-if)#ip address 10.0.1.1/32 secondary | Configure the IP address of the interface. |
P1(config-if)# prefix-sid index 1000 no-php | Assign the Prefix SID value. |
P1(config-if)#exit | Exit interface mode. |
P1(config)#int xe2 | Enter interface mode. |
P1(config-if)#ip address 10.11.1.2/30 | Configure the IP address of the interface. |
P1(config-if)#label-switching | Enable label switching. |
P1(config-if)#exit | Exit interface mode. |
P1(config)#int xe11 | Enter interface mode. |
P1(config-if)#ip address 10.1.1.1/30 | Configure the IP address of the interface. |
P1(config-if)#label-switching | Enable label switching. |
P1(config-if)#exit | Exit interface mode. |
P1(config)#router ospf 1 | Configure the routing process and specify the Process ID (1). |
P1(config-router)#router-id 10.0.1.1 | Advertise the router-id |
P1(config-router)#network 10.0.1.1/32 area 0.0.0.0 | Advertise the lo interface in OSPF area 0. |
P1(config-router)#network 10.11.1.0/30 area 0.0.0.0 | Advertise the xe2 interface in OSPF area 0. |
P1(config-router)#network 10.1.1.0/30 area 0.0.0.0 | Advertise the xe11 interface in OSPF area 0. |
P1(config-router)# ospf segment-routing global block 16000 23999 | Advertise the segment routing global block range. |
P1(config-router)# segment-routing mpls | Enable Segment Routing for the OSPF process. |
P1(config-router)#exit | Exit router mode. |
P1(config)#commit | Commit the candidate configuration to the running configuration. |
P2#configure terminal | Enter configure mode. |
P2(config)#int xe11 | Enter interface mode. |
P2(config-if)#ip address 10.1.1.2/30 | Configure the IP address of the interface. |
P2(config-if)#label-switching | Enable Label Switching |
P2(config-if)#exit | Exit interface mode. |
P2(config)#int xe13 | Enter interface mode. |
P2(config-if)#ip address 10.44.2.2/30 | Configure the IP address of the interface. |
P2(config-if)#label-switching | Enable label switching. |
P2(config-if)#exit | Exit interface mode. |
P2(config)#int lo | Enter interface mode. |
P2(config-if)#ip address 10.0.1.2/32 secondary | Configure the IP address in the loopback interface |
P2(config-if)#prefix-sid index 2000 no-php | Set the prefix SID value. |
P2(config-if)#exit | Exit interface mode. |
P2(config)#router ospf 1 | Configure the routing process and specify the Process ID (1). |
P2(config-router)#router-id 10.0.1.2 | Advertise the router-id |
P2(config-router)#network 10.0.1.2/32 area 0.0.0.0 | Advertise the lo interface in OSPF area 0. |
P2(config-router)#network 10.44.2.0/30 area 1 | Advertise the xe13 interface in OSPF area 1. |
P2(config-router)#network 10.1.1.0/30 area 0 | Advertise the xe11 interface in OSPF area 0. |
P2(config-router)# ospf segment-routing global block 16000 23999 | Advertise the segment routing global block range. |
P2(config-router)#segment-routing mpls | Enable Segment Routing for the OSPF process. |
P2(config-router)#exit | Exit router mode. |
P2(config)#commit | Commit the candidate configuration to the running configuration. |
P3#configure terminal | Enter configure mode. |
P3(config)#int xe13 | Enter interface mode. |
P3(config-if)#ip address 10.44.2.1/30 | Configure the IP address of the interface. |
P3(config-if)#label-switching | Enable label switching. |
P3(config-if)#exit | Exit interface mode. |
P3(config)#int xe15 | Enter interface mode. |
P3(config-if)#ip address 10.33.44.2/30 | Configure the IP address of the interface. |
P3(config-if)#label-switching | Enable Label Switching |
P3(config-if)#exit | Exit interface mode. |
P3(config)#int lo | Enter interface mode. |
P3(config-if)#ip address 10.0.1.44/32 secondary | Configure the IP address in the loopback interface |
P3(config-if)#prefix-sid absolute 20000 no-php | Set the prefix SID value. |
P3(config-if)#exit | Exit interface mode. |
P3(config)#router ospf 1 | Configure the routing process and specify the Process ID (1). |
P3(config-router)#router-id 10.0.1.44 | Advertise the router-id |
P3(config-router)#network 10.0.1.44/32 area 1 | Advertise the lo interface in OSPF area 1. |
P3(config-router)#network 10.44.2.0/30 area 1 | Advertise the xe13 interface in OSPF area 1. |
P3(config-router)#network 10.33.44.2/30 area 1 | Advertise the xe15 interface in OSPF area 1. |
P3(config-router)# ospf segment-routing global block 16000 23999 | Advertise the segment routing global block range. |
P3(config-router)#segment-routing mpls | Enable Segment Routing for the OSPF process. |
P3(config-router)#exit | Exit router mode. |
P3(config)#commit | Commit the candidate configuration to the running configuration. |
PE2#configure terminal | Enter configure mode. |
PE2(config)#int xe15 | Enter interface mode. |
PE2(config-if)#ip address 10.33.44.1/30 | Configure the IP address of the interface. |
PE2(config-if)#label-switching | Enable label switching. |
PE2(config-if)#exit | Exit interface mode. |
PE2(config)#int lo | Enter interface mode. |
PE2(config-if)#ip address 10.0.1.33/32 secondary | Configure the IP address of the interface. |
PE2(config-if)# prefix-sid absolute 19000 no-php | Assign the Prefix SID value. |
PE2(config-if)#exit | Exit interface mode. |
PE2(config)#router ospf 1 | Configure the routing process and specify the Process ID (1). |
PE2(config-router)#router-id 10.0.1.33 | Advertise the router-id |
PE2(config-router)#network 10.33.44.0/30 area 1 | Advertise the xe15 interface in OSPF area 1. |
PE2(config-router)#network 10.0.1.33/32 area 1 | Advertise the lo interface in OSPF area 1. |
PE2(config-router)# ospf segment-routing global block 16000 23999 | Advertise the segment routing global block range. |
PE2(config-router)# segment-routing mpls | Enable Segment Routing for the OSPF process. |
PE2(config-router)#exit | Exit router mode. |
PE2(config)#commit | Commit the candidate configuration to the running configuration. |