VPWS Configuration

All configuration commands in the table below should be followed for each Router.

PE1

#configure terminal

Enter Configure mode.

(config)#router isis 1

Create an IS-IS routing instance for area 49

(config-router)#net 49.3600.3600.0001.00

Set a Network Entity Title for this instance, specifying the area address and the system ID

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit from router mode

(config)#interface lo

Enter interface mode

(config -if)#ip address 1.1.1.1/32 secondary

Configure IP address for the loopback interface

(config-if)#ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#interface xe5

Enter interface mode

(config-if)#ip address 10.1.1.1/30

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#router ldp

Enter router mode for LDP

(config-router)#router-id 1.1.1.1

Configure Router-id

(config-router)#targeted-peer ipv4 3.3.3.3

Configuring targeted LDP sessions to PE-2

(config-router-targeted-peer)#exit-targeted-peer-mode

Exit from targeted-peer mode

(config-router)#transport-address ipv4 1.1.1.1

Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit from router mode

(config)#mpls l2-circuit VPWS4 400 3.3.3.3

Configure the VC for PE-2

(config-pseudowire)#commit

Commit the configuration

(config-pseudowire)#exit

Exit from pseudowire configuration mode

(config)#interface xe20.400 switchport

Enter sub interface mode

(config-if)#encapsulation dot1q 400

Configure encapsulation under a subinterface

(config-if)#access-if-vpws

Access VPWS under sub interface

(config-acc-if-vpws)#mpls-l2-circuit VPWS4 primary

Associating the VPWS Instance to the attachment circuit interface.

(config-acc-if-vpws)#commit

Commit the configuration

(config-acc-if-vpws)#end

Return to privilege mode

P

#configure terminal

Enter Configure mode.

(config)#router isis 1

Create an IS-IS routing instance for area 49

(config-router)#net 49.3600.3600.0003.00

Set a Network Entity Title for this instance, specifying the area address and the system ID

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit from router mode

(config)#interface lo

Enter interface mode

(config-if)# ip address 2.2.2.2/32 secondary

Configure IP address for the loopback interface

(config-if)#ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#router ldp

Enter router mode for LDP

(config-router)#router-id 2.2.2.2

Configure Router-id

(config-router)# transport-address ipv4 2.2.2.2

Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit router mode

(config)#interface xe5

Enter interface mode

(config-if)#ip address 10.1.1.2/30

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#interface xe1

Enter interface mode

(config-if)# ip address 11.1.1.2/30

Configure IP address on interface

(config-if)# label-switching

Enable label switching capability on the interface

(config-if)# ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)# enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

PE2

#configure terminal

Enter Configure mode.

(config)#router isis 1

Create an IS-IS routing instance for area 49

(config-router)#net 49.3600.3600.0002.00

Set a Network Entity Title for this instance, specifying the area address and the system ID

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit from router mode

(config)#interface lo

Enter interface mode

(config-if)# ip address 3.3.3.3/32 secondary

Configure IP address for the loopback interface

(config-if)#ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#router ldp

Enter router mode for LDP

(config-router)# router-id 3.3.3.3

Configure Router-id

(config-router)# targeted-peer ipv4 1.1.1.1

Configuring targeted LDP sessions to PE-1

(config-router-targeted-peer)#exit-targeted-peer-mode

Exit from targeted-peer mode

(config-router)# transport-address ipv4 3.3.3.3

Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit from router mode

(config)#interface xe1

Enter interface mode

(config-if)#ip address 11.1.1.1/30

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#ip router isis 1

Enable IS-IS routing on an interface for area 49

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configurations

(config-if)#exit

Exit interface mode

(config)#mpls l2-circuit VPWS4 400 1.1.1.1

Configure the VC for PE-1

(config-pseudowire)#commit

Commit the configuration

(config-pseudowire)#exit

Exit from pseudowire configuration mode

(config)#interface xe18.400 switchport

Enter sub interface mode

(config-if)#encapsulation dot1q 400

Configure encapsulation under a subinterface

(config-if)#access-if-vpws

Access VPWS under sub interface

(config-acc-if-vpws)#mpls-l2-circuit VPWS4 primary

Associating the VPWS Instance to the attachment circuit interface.

(config-acc-if-vpws)#commit

Commit the configuration

(config-acc-if-vpws)#end

Return to privilege mode

(config)#mpls l2-circuit VPWS4 400 1.1.1.1

Configure the VC for PE-1

(config-pseudowire)#commit

Commit the configuration