Table of Contents

VPLS

int g 4/4
  no ip add
  switchport
  switchport trunk encap dot1q
  switchport trunk allow vlan 501
  switchport mode trunk
int g 4/4
  no ip add
    speed nonegotiate
    switchport
    switchport access vlan 501
    switchport mode dotq1-tunnel
    switchport l2protocol-tunnel cdp
int g 4/4
  no ip add
  speed nonegotiate
  switchport
  switchport mode access
  switchport access vlan 501
l2 vfi VPSLA manual
  vpn id 100
  nei 11.11.11.11 encap mpls
  nei 33.33.33.33 encap mpls
  nei 44.44.44.44 encap mpls
l2 vfi VPSLA manual
  vpn id 100
  nei 9.9.9.9 encap mpls
  nei 12.12.12.12 encap mpls
  nei 33.33.33.33 encap mpls no-split-horizon
  show mpls l2transport vc 201

Configuring VSIs and VCs

l2 vfi Internet manual
  vpn id 100
  nei 120.0.0.3 encap mpls
  nei 162.0.0.2 encap mpls
int lo0
  ip add 20.0.0.1 255.255.255.255
int g 1/1
  switchport
  switchport mode trunk
  switchport encap dot1q
  switchport trunk allow vlan 1001-1005
int vlan 1001
  xconnect vfi Internet
int f 2/1
  switchport
  switchport mode trunk
  switchport trunk encap dot1q
  switchport trunk allow vlan 211,1002-1005
int vlan 211
  xconnect vfi PE1-VPLS-A

Configuration on PE2

l2 vfi Internet manual
  vpn id 100
  nei 20.0.0.1 encap mpls
  l2 vfi PE2-VPLS-A manual
  vpn id 200:1
  nei 120.0.0.3 encap mpls
  nei 20.0.0.1 encap mpls
int lo0
  ip add 162.0.0.2 255.255.255.255
Configuring the CE device interface
int g 2/1
  switchport
  switchport mode trunk
  switchport encap dot1q
  switchport trunk allow vlan 211,1001-1005
Associating the attachment circuit with the VFI
int vlan 1001
  xconnect vfi Internet
int vlan 211
  xconnect vfi PE2-VPLS-A

Configuration on PE3

Configuring VSIs and VCs
l2 vfi Internet manual
  vpn id 100
  nei 20.0.0.1 encap mpls
  nei 162.0.0.2 encap mpls
  nei 30.0.0.1 encap mpls no-split-horizon
l2 vfi PE3-VPLS-A manual
  vpn id 200
  nei 162.0.0.2 encap mpls
  nei 20.0.0.1 encap mpls
int lo0
  ip add 120.0.0.3 255.255.255.255
Configuring the CE device interface
int g 6/1
  switchport
  switchport mode trunk
  switchport trunk encap dot1q
  switchport trunk allow vlan 211

Configuring port-based EoMPLS on the uPE device

int g 1/1
  xconnect 120.0.0.3 100 encap mpls

VPLS Integrated Routing and Bridging

int vlan 200
  xconnect vfi VFI200
  ip vrf forwarding VFI200
  ip add 20.20.20.1 255.255.255.0
Configuration Examples for VPLS

l2 vfi PE1-VPLS-A manual
  vpn id 100
  nei 2.2.2.2 encap mpls
  nei 3.3.3.3 encap mpls
int lo0
  ip add 1.1.1.1 255.255.255.255
int f 0/0
  switchport
  switchport mode dot1qtunnel
  switchport access vlan 100
int vlan 100
  no ip add
  xconnect vfi PE1-VPLS-A
vlan 100
  state active
l2 vfi PE2-VPLS-A manual
  vpn id 100
  nei 1.1.1.1 encap mpls
  nei 3.3.3.3 encap mpls
int lo0
  ip add 2.2.2.2 255.255.255.255
int f 0/0
  switchport
  switchport mode dot1qtunnel
  switchport access vlan 100
vlan 100
  state active
l2 vfi PE3-VPLS-A manual
  vpn id 100
  nei 1.1.1.1 encap mpls
  nei 2.2.2.2 encap mpls
int lo0
  ip add 3.3.3.3 255.255.255.255
int f 0/1
  switchport
  switchport mode dot1qtunnel
  switchport access vlan 100
int vlan 100
  no ip add
  xconnect vfi PE3-VPLS-A

* This is the enablement of the L2 VLAN instance

vlan 100
  state active
sh mpls l2 vc
sh vfi PE1-VPLS-A
sh mpls l2 vc detail

Images credit: cisco.com

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/ios/12-2SY/configuration/guide/sy_swcg/vpls.html#50655