Exchange tenant reachability with EVPN
Use a MAC-VRF to exchange tenant MAC addresses and an IP-VRF to exchange tenant prefixes. Each imports its own route targets. A route reflector can relay these advertisements without being a tenant VTEP.
flowchart LR
a["Leaf 10.0.0.1<br/>VNI 10100, L3 VNI 50100"] <-->|iBGP, evpn| rr[Route reflector<br/>10.0.0.254]
rr <-->|iBGP, evpn| b[Other leaf]
Configure the first router
This leaf advertises a MAC/IP on VNI 10100 and an IP prefix in L3 VNI 50100. Its peer is an iBGP route reflector. The other leaf uses its own addresses and matching tenant import targets.
router-id = "10.0.0.1"
[bgp]
enabled = true
local-as = 65010
[[bgp.neighbor]]
address = "10.0.0.254"
remote-as = 65010
passive = true
evpn = true
[bgp.evpn]
vtep-ip = "10.0.0.1"
srv6-locator = "fc00:0:1::/48"
[[bgp.evpn.instance]]
evi = 100
vni = 10100
advertise-mac = ["02:00:5e:00:00:01/10.100.0.1"]
[[bgp.evpn.ip-vrf]]
name = "tenant-a"
l3-vni = 50100
advertise-prefix = ["10.20.0.0/24"]
router-mac = "02:00:5e:00:00:aa"
Observe the result
bash scripts/bgp-evpn-smoke.sh
On a separate running instance, inspect the same state:
wren show evpn
wren monitor evpn
On the receiving leaf, the test checks the remote MAC, flood VTEP, and 10.20.0.0/24 in tenant-a. The monitor emits vni for bridging entries and l3vni for routed entries.
VXLAN and SRv6 service identifiers
For routed VXLAN traffic the IP-VRF advertises a router MAC. With srv6-locator configured, eligible EVPN advertisements also carry service SIDs. Use the receiving leaf’s show evpn and monitor output to verify the remote next hop and SID. A forwarding-plane consumer implements the encapsulation.
Advertise a local MAC on demand
On a running VNI, wren evpn advertise 10100 02:00:00:00:00:cc 192.0.2.20 originates a type-2 route. Use wren evpn withdraw 10100 02:00:00:00:00:cc to withdraw it. The documented lab covers single-homed leaf VTEPs and route types 2, 3, and 5.