PE4#configure terminal | Enter configure mode |
PE4(config)#int lo | Enter interface mode. |
PE4(config-if)#ip address 10.0.1.44/32 secondary | Configure the IP address of the interface. |
PE4(config-if)#prefix-sid absolute 20000 no-php | Enable label switching. |
PE4(config-if)#exit | Exit interface mode. |
PE4(config)#int xe13 | Enter interface mode. |
PE4(config-if)#ip address 10.44.2.1/30 | Configure the IP address of the loopback interface. |
PE4(config-if)#label-switching | Enable Label switching |
PE4(config-if)#exit | Exit interface mode. |
PE4(config)#int xe15 | Enter interface mode. |
PE4(config-if)#ip address 10.33.44.2/30 | Configure the IP address of the loopback interface. |
PE4(config-if)#label-switching | Enable Label switching |
PE4(config-if)#exit | Exit interface mode. |
PE4(config)#router ospf 1 | Enter OSPF router mode for process ID 1. |
PE4(config-router)#router-id 10.0.1.44 | Advertise the router-id.. |
PE4(config-router)#network 10.0.1.44/32 area 0.0.0.0 | Advertise the lo interface in OSPF area 0. |
PE4(config-router)#network 10.33.44.0/30 area 0.0.0.0 | Advertise the xe13 interface in OSPF area 0. |
PE4(config-router)#network 10.44.2.0/30 area 0.0.0.0 | Advertise the xe15 interface in OSPF area 0. |
PE4(config-router)#ospf segment-routing global block 16000 23999 | Enable SRGB range under OSPF process. |
PE4(config-router)#segment-routing mpls | Enable segment routing for OSPF process. |
PE4(config-if)#exit | Exit interface mode. |
PE4(config)#commit | Commit the candidate configuration to the running configuration. |