Layer 2 PE example

This section shows a configuration example for three PEs in a Data Center, all the following assumptions are considered:

DC PE-1 configuration for service VPLS 2000

DC PE-2 and PE-3 configuration with SAPs at the WAN side (advertisement of all macs and unknown-mac-route):

vpls 2000 name "2000" customer 1 create
                vxlan instance 1 vni 2000 create
                exit
                bgp
                    route-distinguisher 65001:2000
                    route-target export target:65000:2000 import target:65000:2000
                exit
                bgp-evpn
                    unknown-mac-route
                    vxlan bgp 1 vxlan-instance 1
                        no shutdown
                    exit
                exit
                site "site-1" create
                    site-id 1
                    sap 1/1/1:1           
                    no shutdown           
                exit                      
                sap 1/1/1:1 create        
                    no shutdown           
                exit                      
                no shutdown               
            exit 

DC PE-2 and PE-3 configuration with BGP-AD spoke-SDPs at the WAN side (mac-advertisement disable, only unknown-mac-route advertised):

service vpls 2000 name "vpls2000" customer 1 create
    vxlan instance 1 vni 2000 create
    bgp 
        pw-template-binding 1 split-horizon-group ‟to-WAN” import-
rt target:65000:2500
        vsi-export ‟export-policy-1” #policy exporting the WAN and DC RTs
        vsi-import ‟import-policy-1” #policy importing the WAN and DC RTs
        route-distinguisher 65001:2000
    bgp-ad
        no shutdown
        vpls-id 65000:2000
    bgp-evpn
        mac-advertisement disable 
        unknown-mac-route
        vxlan bgp 1 vxlan-instance 1
            no shutdown
    site site-1 create
        split-horizon-group ‟to-WAN”
        no shutdown
        site-id 1