Configuration for VPWS with FAT

PE-1

#configure terminal

Enter Configure 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)#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)#commit

Commit the transaction.

(config-router)#exit

Exit from router mode

(config-router)#targeted-peer ipv4 6.6.6.6

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)#interface eth2

Enter interface mode

(config-if)#ip address 10.1.1.1/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(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)#ospf router-id 1.1.1.1

Configure ospf Router-id

(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 configuration

(config-router)#exit

Exit from router mode

(config)#mpls l2-circuit VPWS4 400 3.3.3.3

Configure the VC for PE-2

PE1(config-vpls)#flow-label both interface-param-tlv

Configure flow label based on requirement (we have three options both, transit and receive) with dynamic and static.

(config-pseudowire)#commit

Commit the configuration

(config-pseudowire)#exit

Exit from pseudowire configuration mode

(config-if)#interface eth2.300 switchport

Enter sub interface mode

(config-if)#encapsulation dot1q 300

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

P1

#configure terminal

Enter Configure 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)#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)#commit

Commit the transaction.

(config-router)#exit

Exit from router mode

(config)#interface eth1

Enter interface mode

(config-if)#ip address 10.1.1.2/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#interface po10

Enter interface mode

(config-if)#ip address 10.1.2.1/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth2

Enter the Interface mode for eth2

(config-if)#channel-group 10 mode active

Moving interface to Dynamic LAG 10

(config-if)#interface eth3

Enter the Interface mode for eth3

(config-if)#channel-group 10 mode active

Moving interface to Dynamic LAG 10

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(config)#interface po30

Enter interface mode

(config-if)#ip address 10.1.3.1/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth4

Enter the Interface mode for eth4

(config-if)#channel-group 30 mode active

Moving interface to Dynamic LAG 30

(config-if)#interface eth5

Enter the Interface mode for eth5

(config-if)#channel-group 30 mode active

Moving interface to Dynamic LAG 30

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(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)#ospf router-id 3.3.3.3

Configure ospf Router-id

(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 10.1.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 10.1.4.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.

(config-router)#exit

Exit from router mode

P2

#configure terminal

Enter Configure 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)#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)#commit

Commit the transaction.

(config-router)#exit

Exit from router mode

(config)#interface po10

Enter interface mode

(config-if)#ip address 10.1.2.2/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth1

Enter the Interface mode for eth1

(config-if)#channel-group 10 mode active

Moving interface to Dynamic LAG 10

(config-if)#interface eth2

Enter the Interface mode for eth2

(config-if)#channel-group 10 mode active

Moving interface to Dynamic LAG 10

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(config)#interface po20

Enter interface mode

(config-if)#ip address 10.1.4.2/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth3

Enter the Interface mode for eth3

(config-if)#channel-group 20 mode active

Moving interface to Dynamic LAG 20

(config-if)#interface eth4

Enter the Interface mode for eth4

(config-if)#channel-group 20 mode active

Moving interface to Dynamic LAG 20

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(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)#ospf router-id 3.3.3.3

Configure ospf Router-id

(config-router)#network 10.1.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 10.1.4.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 3.3.3.3/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.

(config-router)#exit

Exit from router mode

P3

#configure terminal

Enter Configure mode.

(config)#interface lo

Enter interface mode

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

Configure IP address for the loopback 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 4.4.4.4

Configure Router-id

(config-router)#commit

Commit the transaction.

(config-router)#exit

Exit from router mode

(config)#interface po30

Enter interface mode

(config-if)#ip address 10.1.3.2/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth1

Enter the Interface mode for eth1

(config-if)#channel-group 30 mode active

Moving interface to Dynamic LAG 30

(config-if)#interface eth2

Enter the Interface mode for eth2

(config-if)#channel-group 30 mode active

Moving interface to Dynamic LAG 30

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(config)#interface po40

Enter interface mode

(config-if)#ip address 10.1.5.2/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth3

Enter the Interface mode for eth3

(config-if)#channel-group 40 mode active

Moving interface to Dynamic LAG 40

(config-if)#interface eth4

Enter the Interface mode for eth4

(config-if)#channel-group 40 mode active

Moving interface to Dynamic LAG 40

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(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)#ospf router-id 4.4.4.4

Configure ospf Router-id

(config-router)#network 10.1.3.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 10.1.5.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 4.4.4.4/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.

(config-router)#exit

Exit from router mode

P4

#configure terminal

Enter Configure mode.

(config)#interface lo

Enter interface mode

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

Configure IP address for the loopback 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 5.5.5.5

Configure Router-id

(config-router)#commit

Commit the transaction.

(config-router)#exit

Exit from router mode

(config)#interface eth1

Enter interface mode

(config-if)#ip address 10.1.6.1/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config)#interface po20

Enter interface mode

(config-if)#ip address 10.1.4.1/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth2

Enter the Interface mode for eth2

(config-if)#channel-group 20 mode active

Moving interface to Dynamic LAG 20

(config-if)#interface eth3

Enter the Interface mode for eth3

(config-if)#channel-group 20 mode active

Moving interface to Dynamic LAG 20

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(config)#interface po40

Enter interface mode

(config-if)#ip address 10.1.5.1/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(config-if)#exit

Exit interface mode

(config-if)#interface eth4

Enter the Interface mode for eth4

(config-if)#channel-group 40 mode active

Moving interface to Dynamic LAG 40

(config-if)#interface eth5

Enter the Interface mode for eth5

(config-if)#channel-group 40 mode active

Moving interface to Dynamic LAG 40

(config-if)#exit

Exit interface mode

(config)#commit

Commit the transaction.

(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)#ospf router-id 5.5.5.5

Configure ospf Router-id

(config-router)#network 10.1.4.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 10.1.5.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 10.1.6.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 5.5.5.5/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.

(config-router)#exit

Exit from router mode

PE-2

#configure terminal

Enter Configure mode.

(config)#interface lo

Enter interface mode

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

Configure IP address for the loopback 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 6.6.6.6

Configure Router-id

(config-router)#targeted-peer ipv4 1.1.1.1

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 6.6.6.6

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 eth2

Enter interface mode

(config-if)#ip address 10.1.6.2/24

Configure IP address on interface

(config-if)#label-switching

Enable label switching capability on the interface

(config-if)#enable-ldp ipv4

Enabling LDP on the interface

(config-if)#commit

Commit the configuration

(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)#ospf router-id 6.6.6.6

Configure ospf Router-id

(config-router)#network 10.1.6.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#network 6.6.6.6/32 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface.

(config-router)#commit

Commit the configuration

(config-router)#exit

Exit from router mode

(config)#mpls l2-circuit VPWS4 400 1.1.1.1

Configure the VC for PE-2

PE1(config-vpls)#flow-label both interface-param-tlv

Configure flow label based on requirement (we have three options both, transit and receive) with dynamic and static.

(config-pseudowire)#commit

Commit the configuration

(config-pseudowire)#exit

Exit from pseudowire configuration mode

(config-if)#interface eth2.300 switchport

Enter sub interface mode

(config-if)#encapsulation dot1q 300

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