#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 2.2.2.2/32 | Set the IP address for the interface |
(config-if)#label-switching | Enable label switching on interface lo |
(config-if)#exit | Exit interface mode |
(config)#interface eth1 | Enter interface mode. |
(config-if)#ip address 20.1.1.1/24 | Set the IP address for the interface |
(config-if)#label-switching | Enable label switching on interface eth1 |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode. |
(config-if)#ip address 10.1.1.2/24 | Set the IP address for the interface |
(config-if)#label-switching | Enable label switching on interface eth2 |
(config-if)#exit | Exit interface mode |
(config)#mpls ilm-entry 200 eth2 swap 2000 eth1 20.1.1.2 3.3.3.3/32 | Configure ILM Swap Entry for forward MPLS Tunnel |
(config)#mpls ilm-entry 111 eth1 swap 2222 eth2 10.1.1.1 1.1.1.1/32 | Configure ILM Swap Entry for reverse MPLS Tunnel |