OcNOS-SP : Segment Routing Guide : Segment Routing Configuration Guide : Configuring OSPF SR Mapping Server with LDP : PE2
PE2
 
PE2#configure terminal
Enter configure mode.
PE2(config)#interface lo
Enter interface mode.
PE2(config-if)#ip address 10.0.1.22/32 secondary
Configure the IP address of the interface.
PE2(config-if)#prefix-sid index 1000 no-php
Configure prefix SID absolute value.
PE2(config-if)#exit
Exit interface mode.
PE2(config)#interface xe6
Enter interface mode.
PE2(config-if)#ip address 10.11.22.2/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)#interface xe7
Enter interface mode.
PE2(config-if)#ip address 10.22.1.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)#interface xe10
Enter interface mode.
PE2(config-if)#ip address 10.22.2.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)#router ospf 1
Enter OSPF router mode for process ID 1.
PE2(config-router)# router-id 10.0.1.22
Advertise the router-id.
PE2(config-router)# network 10.0.1.22/32 area 0.0.0.0
Advertise the lo interface in OSPF area 0
PE2(config-router)#network 10.11.22.0/30 area 0.0.0.0
Advertise the xe6 interface in OSPF area 0
PE2(config-router)# network 10.22.1.0/30 area 0.0.0.0
Advertise the xe7 interface in OSPF area 0
PE2(config-router)# network 10.22.2.0/30 area 0.0.0.0
Advertise the xe10 interface in OSPF area 0
PE2(config-router)# ospf segment-routing global block 16000 23999
Advertise segment routing global block range(16000-23999).
PE2(config-router)#segment-routing mpls
Enable segment routing under router process.
PE2(config-router)#exit
Exit router mode.
PE2(config)#commit
Commit the candidate configuration to the running configuration.
Last modified date: 10/20/2023