OcNOS-SP : Segment Routing Guide : Segment Routing Configuration Guide : Configuring OSPF SR Mapping Server with LDP : PE4
PE4
 
PE4#configure terminal
Enter configure mode.
PE4(config)#interface 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)#exit
Exit interface mode.
PE4(config)#router ldp
Enter router ldp mode.
PE4(config-if)#exit
Exit interface mode.
PE4(config)#interface xe13
Enter interface mode.
PE4(config-if)#ip address 10.44.2.1/30
Configure the IP address of the interface.
PE4(config-if)#label-switching
Enable label switching.
PE4(config-if)#enable-ldp ipv4
Enable LDP ipv4 in interface
PE4(config-if)#exit
Exit interface mode.
PE4(config)#interface xe15
Enter interface mode.
PE4(config-if)#ip address 10.33.44.2/30
Configure the IP address of the interface.
PE4(config-if)#label-switching
Enable label switching.
PE4(config-if)#enable-ldp ipv4
Enable LDP ipv4 in interface
PE4(config-if)#exit
Exit interface mode.
PE4(config)#router ospf 1
Set the routing process ID
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 xe15 interface in OSPF area 0.
PE4(config-router)# network 10.44.2.0/30 area 0.0.0.0
Advertise the xe13 interface in OSPF area 0.
PE4(config-router)#exit
Exit router mode.
PE4(config)#commit
Commit the candidate configuration to the running configuration.
Last modified date: 10/20/2023