VPLS with Routing

Load vpls.routing.init.cfg

#IOS-XE (R1-R6, CE1-3)
config replace flash:vpls.routing.init.cfg

CE1-CE3 are configured for DHCP on their Gi0/0 interface. Configure a basic VPLS setup using BGP for both auto-discovery and signaling. BGP is already preconfigured in the core.

An INET VRF is already preconfigured in the core. R6 has 8.8.8.8/32.

Configure R1 to provide DHCP to all three CE routers and use 100.1.1.1/24. The CE routers should be able to ping 8.8.8.8 over the VPLS.

Answer

#R1
int Gi4
 service instance 1 eth
  encapsulation default
!
l2vpn vfi context VPLS1
 vpn id 1
 autodiscovery bgp signaling bgp
  ve id 1
!
bridge-domain 1
 member gi4 service-instance 1
 member vfi VPLS1
!
ip dhcp pool CLIENTS
 vrf INET
 network 100.1.1.0 255.255.255.0
 default-router 100.1.1.1
!
int bdi1
 vrf forwarding INET
 ip add 100.1.1.1 255.255.255.0
 no shut

#R3
int Gi6
 service instance 1 eth
  encapsulation default
!
l2vpn vfi context VPLS1
 vpn id 1
 autodiscovery bgp signaling bgp
  ve id 3
!
bridge-domain 1
 member gi6 service-instance 1
 member vfi VPLS1

#R5
int Gi6
 service instance 1 eth
  encapsulation default
!
l2vpn vfi context VPLS1
 vpn id 1
 autodiscovery bgp signaling bgp
  ve id 5
!
bridge-domain 1
 member gi6 service-instance 1
 member vfi VPLS1

Explanation

Using a BDI allows a router to use a virtual L3 interface that participates in the corresponding bridge-domain. The BDI number must match the BD number. You do not add the BDI under the bridge-domain. This is similar to an SVI number matching the vlan number on a L3 switch.

The BDI allows us to provide a default gateway to clients in the VPLS domain.

#R1
int bdi1
 vrf forwarding INET
 ip add 100.1.1.1 255.255.255.0
 no shut

We can setup a simple DHCP server that automatically gives clients an IP address.

#R1
ip dhcp pool CLIENTS
 vrf INET
 network 100.1.1.0 255.255.255.0
 default-router 100.1.1.1

Explanation

Verify that all clients have received a DHCP address:

Each CE should be able to ping 8.8.8.8:

Each CE can also ping another CE, because this is a basic full mesh VPLS:

Last updated