PE3#configure terminal | Enter configure mode. |
PE3(config)#interface 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)#exit | Exit interface mode. |
PE3(config)#router ldp | Enter router ldp mode. |
PE3(config-router)#exit | Exit router mode. |
PE3(config)#interface xe15 | Enter interface mode. |
PE3(config-if)#ip address 10.33.44.1/30 | Configure the IP address of the interface. |
PE3(config-if)#label-switching | Enable label switching. |
PE3(config-if)#enable-ldp ipv4 | Enable LDP ipv4 in interface. |
PE3(config-if)#exit | Exit interface mode. |
PE3(config)#interface xe17 | Enter interface mode. |
PE3(config-if)#ip address 10.33.1.1/30 | Configure the IP address of the interface. |
PE3(config-if)#label-switching | Enable label switching. |
PE3(config-if)#enable-ldp ipv4 | Enable LDP ipv4 in interface. |
PE3(config-if)#exit | Exit interface mode. |
PE3(config)#router ospf 1 | Set the routing process ID |
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 xe10 interface in OSPF area 0. |
PE3(config-router)# network 10.33.44.0/30 area 0.0.0.0 | Advertise the xe15 interface in OSPF area 0. |
PE3(config-router)#exit | Exit router mode. |
PE3(config)#commit | Commit the candidate configuration to the running configuration. |