Cisco VPLS Configuration

cisco-vpls-configuration-example-ipcisco

How to Configure VPLS on Cisco Routers?

In this VPLS Example, we will focus on the VPLS (Virtual Private LAN Service) Configuration on Cisco Catalyst 6500 Series Switches. We will use the below Cisco VPLS (Virtual Private LAN Service) topology for our VPLS Configuration Example.

 

Cisco VPLS Configuration Example
Cisco VPLS Configuration Example Topology

 

In this Cisco VPLS Example topology, we will use Cisco Catalyst 6500 Series Switches. Here, before the configuration, lets check two terms used in commands. These are:

  • VFI : Virtual Forwarding Instance
  • VSI : Virtual Switch Instance

 

Here, For our VPLS Configuration, we will follow the below configuration steps:

  • Configuration of the VSIs (Virtual Switch Instance) and VCs (Virtual Circuits).
  • Configuration of the CE (Customer Equipment) Device Interface.
  • Association of the VC with the VFI (Virtual Forwarding Instance).

 

We will do these configuration steps one by one for each PE device.

 

There is an important note before VPLS Configuration. As you know split-horizon rule provides broadcast packet loops and isolates the L2 traffic. With the use of “no-split-horizon” command during the VC configuration, we can disable the default L2 split-horizon rule and configure multiple VCs per spoke into the same VFI. As an example:

 

Router1(config-vfi)# neighbor 20.20.20.20 encapsulation mpls split-horizon

 

Let’s see the VPLS (Virtual Private LAN Service) Configuration on each device.

 


Cisco VPLS Configuration Steps (Router 1)

Configuring VFI in the PE

Firstly, we will enables Layer 2 VFI manual configuration mode with “l2 vfi vfi-name manual” command. Here, our vfi-name is PE1_COMPANY_A. 

 

Next, we will use “vpn id vpn-id” command to configure VPN ID for a VPLS domain. Our VPN ID is 100.

 

Then, we will use “neighbor router-id {encapsulation mpls}” command. With this command we will set remote peer router ID and the tunnel encapsulation type or the pseudo-wire property to be used to set up the emulated VC. We have 20.20.20.20 and 30.30.30.30 neighbors.

 

Router1(config)# l2 vfi PE1_COMPANY_A manual

Router1(config-vfi)# vpn id 100
Router1(config-vfi)# neighbor 20.20.20.20 encapsulation mpls
Router1(config-vfi)# neighbor 30.30.30.30 encapsulation mpls
Router1(config-vfi)# exit

 


Configuring PE Layer 2 Interfaces to CEs

After that, we will configure 802.1Q Access Ports for Untagged Traffic. Under the interface, with “switchport” command we will modify the switching characteristics of the Layer 2-switched interface. With “switchport mode dot1qtunnel“, we will sets the switch port encapsulation format to 802.1Q. With “switchport access vlan 100” we will sets VLAN 100.

Router1(config)# interface FastEthernet0/0
Router1(config-if)# switchport
Router1(config-if)# switchport mode dot1qtunnel
Router1(config-if)# switchport access vlan 100
Router1(config-if)# exit

 


Associating the Attachment Circuit with the VFI at the PE

Here we will creates a switched virtual interface (SVI) and then we will disables IP processing on this interface. Then we will specify layer 2 VFI that we will bind to the VLAN port with “xconnect vfi vfi-name” command. Here, our vfi-name is PE1_COMPANY_A.

Router1(config)# interface vlan 100
Router1(config-if)# no ip address

Router1(config-if)# xconnect vfi PE1_COMPANY_A

 

We will configure Router 2 and Router 3 similar to Router 1 with different variables. Below, you can find both of these routers’ configurations.

 


VPLS Configuration on Router 2

Router2(config)# l2 vfi PE2_COMPANY_A manual

Router2(config-vfi)# vpn id 100
Router2(config-vfi)# neighbor 10.10.10.10 encapsulation mpls
Router2(config-vfi)# neighbor 30.30.30.30 encapsulation mpls
Router2(config-vfi)# exit
Router2(config)# interface FastEthernet0/0
Router2(config-if)# switchport
Router2(config-if)# switchport mode dot1qtunnel
Router2(config-if)# switchport access vlan 100
Router2(config-if)# exit
Router2(config)# interface vlan 100
Router2(config-if)# no ip address

Router2(config-if)# xconnect vfi PE2_COMPANY_A

 


VPLS Configuration on Router 3

Router3(config)# l2 vfi PE3_COMPANY_A manual

Router3(config-vfi)# vpn id 100
Router3(config-vfi)# neighbor 10.10.10.10 encapsulation mpls
Router3(config-vfi)# neighbor 20.20.20.20 encapsulation mpls
Router3(config-vfi)# exit
Router3(config)# interface FastEthernet0/0
Router3(config-if)# switchport
Router3(config-if)# switchport mode dot1qtunnel
Router3(config-if)# switchport access vlan 100
Router3(config-if)# exit
Router3(config)# interface vlan 100
Router3(config-if)# no ip address

Router3(config-if)# xconnect vfi PE3_COMPANY_A

 


Cisco VPLS Verification

To verify our VPLS Example, we will use the below verification commands.

 

Router1# show mpls l2 vc

Router1# show vfi PE1_COMPANY_A

Router1# show mpls l2 vc det

 

In this VPLS example, we have used a simple VPLS (Virtual Private LAN Service) topology and we have configured Cisco VPLS on Cisco Catalyst 6500 Series Switches.

 

 

Lesson tags: vpls, l2 vpn, vpn, cisco
Back to: CCIE Enterprise Infrastructure > MPLS

2 Responses to “Cisco VPLS Configuration”


Leave a Reply

Your email address will not be published. Required fields are marked *

CCIE Enterprise Infrastructure

Collapse
Expand
Latest Blog Posts