Configure MPLS Layer-3 VPN

The MPLS Layer-3 VPN configuration process can be divided into the following tasks

1. Establish connection between PE routers.
2. Configure PE1 and PE2 as iBGP neighbors.
3. Create VRF.
4. Associate interfaces to VRFs.
5. Configure VRF Route Destination and Route Targets.
6. Configure CE neighbor for the VPN.
7. Verify the MPLS to VPN configuration.

Topology

In this example, the CConnect MPLS-VPN backbone has two customers — ComA and ComB. Both customers have sites in California and Arizona. The following topology shows BGP4 address assignment between PE and CE routers. The steps that follow provision a customer VPN service across the MPLS-VPN backbone.

Figure 18. Connect Sample Topology

Establishing this connection involves three steps:

Enable Label Switching

This is a sample configuration to enable label switching for the Labeled Switched Path (LSP) between PE1 and PE2.

Enable Label Switching: PE1

configure terminal

Enter configure mode

(config)#interface lo

Enter interface mode

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

Assign the IPv4 address

(config-if)#exit

Exit interface mode

(config)#interface xe1

Enter Interface mode

(config-if)#ip address 10.10.12.1/24

Assign IPv4 address

(config-if)#label-switching

Enabling label switching capability on router

(config-if)#commit

Commit the transaction.

Enable Label Switching: P

configure terminal

Enter configure mode

(config)#interface lo

Enter interface mode

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

Assign the IPv4 address

(config-if)#exit

Exit interface mode

(config)#interface xe1

Enter Interface mode

(config-if)#ip address 10.10.12.2/24

Assign IPv4 address

(config-if)#label-switching

Enabling label switching capability on router

(config-if)#commit

Commit the transaction.

(config)#interface xe2

Enter Interface mode

(config-if)#ip address 10.10.13.1/24

Assign IPv4 address

(config-if)#label-switching

Enabling label switching capability on router

(config-if)#commit

Commit the transaction.

Enable Label Switching: PE2

configure terminal

Enter configure mode

(config)#interface lo

Enter interface mode

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

Assign the IPv4 address

(config-if)#exit

Exit interface mode

(config)#interface xe2

Enter Interface mode

(config-if)#ip address 10.10.13.2/24

Assign IPv4 address

(config-if)#label-switching

Enabling label switching capability on router

(config-if)#commit

Commit the transaction.