#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 1.1.1.1/32 secondary | Set the IP address of the loopback interface to 1.1.1.1/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe1 | Specify the interface ( xe1) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe1. |
(config-if)#ip address 10.1.1.1/24 | Set the IP address of the interface to 10.1.1.1/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 10.1.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 1.1.1.1/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 9.9.9.9/32 secondary | Set the IP address of the loopback interface to 9.9.9.9/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe1 | Specify the interface (xe1) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe1. |
(config-if)#ip address 10.1.1.2/24 | Set the IP address of the interface to 10.1.1.2/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe13 | Specify the interface (xe13) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe13. |
(config-if)#ip address 20.1.1.1/24 | Set the IP address of the interface to 20.1.1.1/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 10.1.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 20.1.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 9.9.9.9/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 2.2.2.2/32 secondary | Set the IP address of the loopback interface to 2.2.2.2/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe13 | Specify the interface (xe13) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe13. |
(config-if)#ip address 20.1.1.2/24 | Set the IP address of the interface to 20.1.1.2/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 20.1.1.0/24 area 0 | Define the interface on which OSPF runs, and associate the area ID (0) with the interface. |
(config-router)#network 2.2.2.2/32 area 0 | Define the interface on which OSPF runs, and associate the area ID (0) with the interface. |
(config-router)#commit | Commit the transaction. |