#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 71.71.71.71 | Set the IP address of the loopback interface to 71.71.71.71. |
(config-if)#exit | Exit interface mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 71.71.71.71 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#exit | Exit Router mode and return to Configure more. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#ip address 11.0.0.71/24 | Set the IP address of eth0 to 11.0.0.71/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface eth1. |
(config-if) ip address 22.0.0.71/24 | Set the IP address of the interface to 22.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 33.0.0.71/24 | Set the IP address for the interface to 33.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 44.0.0.71/24 | Set the IP address for the interface to 44.0.0.71/24. |
(config-if) enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 11.0.0.0/24 area 0 (config-router)#network 22.0.0.0/24 area 0 (config-router)#network 33.0.0.0/24 area 0 (config-router)#network 44.0.0.0/24 area 0 (config-router)#network 71.71.71.71/32 area 0 | Configure the Network associations for router P and associate them all with area 0. |
(config-router)#exit | Exit Router mode and return to Configure mode. |