#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit VC1 1 1.1.1.1 | Configure a static VC with name VC1 . |
(config-pseudowire)#control-word | Enable Control-word. |
(config-pseudowire)#tunnel-id 1 | Enable VCCV CC-Type as 1. |
(config-pseudowire)#manual-pseudowire | Configure pseudowire manual (no signaling). |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge protocol with bridge group as 1 |
(config)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Configure switchport and switch to Layer2 mode |
(config-if)#bridge-group 1 | Enable the bridge group 1 |
(config-if)#switchport mode access | Configure switchport mode as access |
(config-if)#mpls-l2-circuit VC1 ethernet | Attach the PW1 to the interface eth1 |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 3.3.3.3/32 | Set the IP address for the interface |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode. |
(config-if)#ip address 20.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 l2-circuit-fib-entry 1 1000 100 1.1.1.1 eth2 eth1 | Configure a FIB Entry for the PW1 |
(config)#mpls ftn-entry tunnel-id 2 1.1.1.1/32 111 20.1.1.1 eth2 primary | Configure a FTN Entry for forward MPLS Tunnel |
(config)#mpls ilm-entry 2000 eth2 pop | Configure a ILM POP Entry for reverse MPLS Tunnel |