The following steps represent the fundamental configuration to use EVPN as the control plane for VXLAN. These steps are in addition to configuring VXLAN interfaces, attaching them to a bridge, and mapping VLANs to VNIs.
- Configure Physical interfaces and assign VLANs to interfaces.
- Configure L3 interfaces and assign IP addresses to interfaces.
- Configure VXLAN VNIs and enable VXLAN VNI mapping to VLAN IDs.
- Enable EVPN route exchange (that is, address-family layer 2 VPN/EVPN) between BGP peers.
- Enable EVPN on the system to advertise VNIs and host reachability information (MAC addresses learned on associated VLANs) to BGP peers.
- Disable MAC learning on VXLAN interfaces as EVPN is responsible for installing remote MACs.
Additional configuration is necessary to enable ARP/ND suppression, provision inter-subnet routing, and so on. The configuration depends on the deployment scenario. You can also configure various other BGP parameters depending on your network requirements.
...
To check the BGP EVPN routes on Router 2, we will run the command run show bgp evpn route on Router 2 as shown below. In our sample configuration we haven't manually configured route target (RD), so the RDs we see in the command output below are automatically configured by the system.
Code Block |
---|
admin@router2# run show bgp evpn route BGP table version is 5, local router ID is 134.134.134.134 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP] EVPN type-2 prefix: [2]:[EthTag]:[MAClen]:[MAC]:[IPlen]:[IP] EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP] EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP] EVPN type-5 prefix: [5]:[EthTag]:[IPlen]:[IP] Network Next Hop Metric LocPrf Weight Path Extended Community Route Distinguisher: 134.134.134.134:2 *> [5]:[0]:[24]:[33.1.1.0] 134.134.134.134 0 32768 i ET:8 RT:134:9999 Rmac:04:f8:f8:20:6c:7b Route Distinguisher: 134.134.134.134:3 *> [3]:[0]:[32]:[134.134.134.134] 134.134.134.134 32768 i ET:8 RT:134:22221 Route Distinguisher: 134.134.134.134:4 *> [3]:[0]:[32]:[134.134.134.134] 134.134.134.134 32768 i ET:8 RT:134:22222 Route Distinguisher: 134.134.134.134:5 *> [3]:[0]:[32]:[134.134.134.134] 134.134.134.134 32768 i ET:8 RT:134:33333 Route Distinguisher: 201.201.201.201:2 *> [5]:[0]:[24]:[22.1.1.0] 201.201.201.201 0 0 201 i RT:201:9999 ET:8 Rmac:c4:39:3a:fb:be:d9 Route Distinguisher: 201.201.201.201:3 *> [3]:[0]:[32]:[201.201.201.201] 201.201.201.201 0 201 i RT:201:22221 ET:8 Route Distinguisher: 201.201.201.201:4 *> [3]:[0]:[32]:[201.201.201.201] 201.201.201.201 0 201 i RT:201:22222 ET:8 |
...