#configure terminal | Enter configure mode. |
(config)#mpls-tp global-id 999 node-id 1.1.1.1 | Configure MPLS-TP Global ID |
(config)#mpls ac-group grp1 2 | Configure MPLS-TP Access Group |
(config)#mpls l2-circuit VC1 1 888 3.3.3.3 456 grp1 | Configure a static VC with name VC1 . |
(config-pseudowire)#control-word | Enable Control-word. |
(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-tp service-interface type layer-2 123 | Configure MPLS-TP service interface type |
(config-if)#mpls-l2-circuit VC1 ethernet | Attach the PW1 to the interface eth1 |
(config)#interface eth2 | Enter interface mode. |
(config-if)# mpls-tp provider-interface 11.11.11.11 | Set the interface eth2 as provider interface with local interface id as 11.11.11.11 |
(config-if)#exit | Exit interface mode |
(config)#mpls l2-circuit-fib-entry 1 555 666 tp-tunnel T1 eth1 | Configure a FIB Entry for the PW1 |
(config)#mpls-tp tunnel 1 source 999 1.1.1.1 destination 888 3.3.3.3 | Configure a FTN Entry for MPLS Tunnel |
(config-tnl)# tunnel-name T1 | Configure Tunnel Name |
(config-tnl)# tunnel-mode bidirectional | Configure Tunnel Mode as Bidirectional |
(config-bidir-tnl)#forward-path nhlfe-entry 1000 eth2 | Configure Forward Path nhlfe entry |
(config-bidir-tnl)# reverse-path ilm-entry 2000 eth2 pop | Configure Reverse Path ilm pop entry |