Configuring iBGP EVPN Peering Between VTEPs
- End-to-end EVPN peering among VTEPs, running on top of underlying hop-by-hop routing. This option can be used with a small number of VTEPs.
- EVPN peering between each VTEP and a Route Reflector (RR). The RR can run as part of the spine routers or as a dedicated node.
The BGP EVPN underlay network must be configured to build Layer 3 connectivity among VTEPs and intermediate routers. Loopback interface addresses, used as VTEP and BGP peer endpoints, need to be routable in the underlay. It is recommended to run an IGP such as OSPF in the underlay. The following task configures iBGP EVPN peering for a VTEP.
- Enter global configuration mode.
- Enable BGP routing.
- Configure the Autonomous System Number (ASN).
- Specify the ASN for the remote neighbor.
- Specify the neighbor interface over which the neighbor and local device will exchange prefixes.
- Enable the BGP L2VPN EVPN address family.
- Enable the exchange of information with the neighbor.
- Send standard and extended community attributes to the neighbor.
The following is an example showing an iBGP-EVPN peering configuration for two VTEPs and a route reflector (RR) on a spine for a BGP EVPN underlay network. For the RR, client-to-client reflection is enabled by default.
device(config)# router bgp device(config-bgp-router)# local-as 656 device(config-bgp-router)# neighbor 3.3.3.3 remote-as 656 device(config-bgp-router)# neighbor 3.3.3.3 update-source loopback 1 device(config-bgp-router)# address-family l2vpn evpn device(config-bgp-l2vpn-evpn)# neighbor 3.3.3.3 activate device(config-bgp-l2vpn-evpn)# neighbor 3.3.3.3 send-community both
device(config)# router bgp device(config-bgp-router)# local-as 656 device(config-bgp-router)# neighbor 3.3.3.3 remote-as 656 device(config-bgp-router)# neighbor 3.3.3.3 update-source loopback 1 device(config-bgp-router)# address-family l2vpn evpn device(config-bgp-l2vpn-evpn)# neighbor 3.3.3.3 activate device(config-bgp-l2vpn-evpn)# neighbor 3.3.3.3 send-community both
VTEP-1 <----- ve2----> RR(3.3.3.3) <--- ve3---> VTEP-2:
device(config)# router bgp device(config-bgp-router)# local-as 656 device(config-bgp-router)# neighbor 1.1.1.1 remote-as 656 device(config-bgp-router)# neighbor 1.1.1.1 update-source loopback 1 device(config-bgp-router)# neighbor 2.2.2.2 remote-as 656 device(config-bgp-router)# neighbor 2.2.2.2 update-source loopback 1 device(config-bgp-router)# address-family l2vpn evpn device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.1 activate device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.1 send-community both device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.1 route-reflector-client device(config-bgp-l2vpn-evpn)# neighbor 2.2.2.2 activate device(config-bgp-l2vpn-evpn)# neighbor 2.2.2.2 send-community both device(config-bgp-l2vpn-evpn)# neighbor 2.2.2.2 route-reflector-client