OcNOS-SP : Segment Routing Guide : Segment Routing Configuration Guide : Configuring OSPF Intra-Area Segment Routing : PE3
PE3
 
PE3#configure terminal
Enter configure mode.
PE3(config)#int lo
Enter interface mode.
PE3(config-if)#ip address 10.0.1.33/32 secondary
Configure the IP address of the interface.
PE3(config-if)#prefix-sid absolute 19000 no-php
Enable label switching.
PE3(config-if)#exit
Exit interface mode.
PE3(config)#int xe15
Enter interface mode.
PE3(config-if)#ip address 10.33.44.1/30
Configure the IP address of the loopback interface.
PE3(config-if)#label-switching
Enable Label switching
PE3(config-if)#exit
Exit interface mode.
PE3(config)#int xe17
Enter interface mode.
PE3(config-if)#ip address 10.33.1.1/30
Configure the IP address of the loopback interface.
PE3(config-if)#label-switching
Enable Label switching
PE3(config-if)#exit
Exit interface mode.
PE3(config)#router ospf 1
Enter OSPF router mode for process ID 1.
PE3(config-router)#router-id 10.0.1.33
Advertise the router-id..
PE3(config-router)#network 10.0.1.33/32 area 0.0.0.0
Advertise the lo interface in OSPF area 0.
PE3(config-router)#network 10.33.1.0/30 area 0.0.0.0
Advertise the xe15 interface in OSPF area 0.
PE3(config-router)#network 10.33.44.0/30 area 0.0.0.0
Advertise the xe17 interface in OSPF area 0.
PE3(config-router)#ospf segment-routing global block 16000 23999
Enable SRGB range under OSPF process.
PE3(config-router)#segment-routing mpls
Enable segment routing for OSPF process.
PE3(config-if)#exit
Exit interface mode.
PE3(config)#commit
Commit the candidate configuration to the running configuration.
Last modified date: 06/27/2023