...
Upon receiving the EVPN Type-2 route from R1, R2 learns the MAC address of Host 1. To accept this route, R2 needs to determine if the Import Route Target (IRT) configured on R2 matches the Export Route Target (ERT). RT is sent as the BGP Extended Community attribute. In this case the IRT and ERT match hence the route is accepted and the MAC address of Host 1 is learned.
Figure 2. MAC Learning and Packet Forwarding
...
In the case of packet forwarding within the same subnet as depicted in Figure 2, both Host1 and Host2 belong to the same VNI. Host1 wants to send a packet to Host2.
- If Host1 doesn't have the MAC address of Host1, the MAC address can be learned through the MAC learning process described in the section above. Assuming that Host1 does have the MAC address of Host2, Host 1 sends the packet to R1 destined for Host2.
- R1 receives the packet and determines the VNI of Host1 based on the ingress interface configuration. R1 learned the Host2 MAC address and the outgoing interface is the VTEP 2.2.2.2 on R2.
- R1 then encapsulates the original packet from Host1 with the VXLAN header and sends it out.
- When the packet is received on R2, the outer VXLAN header is stripped off. R2 then searches its local MAC table and finds out the out going interface and delivers the original packet to Host2.
Verifying Configuration
To check the BGP state and neighbor status on Router 2, we will run the run show bgp neighbor command.
...
Code Block |
---|
admin@router2# run show vxlan tunnel
Total number of tunnels: 3
VNI 9999, Encap:service-vlan-delete, Decap:service-vlan-add-replace
src addr:134.134.134.134, dst addr:201.201.201.201, state:UP
traffic type:unicast
nexthops:100.1.1.201
output ports:ge-1/1/1
VNI 22221, Encap:service-vlan-delete, Decap:service-vlan-add-replace
src addr:134.134.134.134, dst addr:201.201.201.201, state:UP
traffic type:unicast
nexthops:100.1.1.201
output ports:ge-1/1/1
VNI 22222, Encap:service-vlan-delete, Decap:service-vlan-add-replace
src addr:134.134.134.134, dst addr:201.201.201.201, state:UP
traffic type:unicast
nexthops:100.1.1.201
output ports:ge-1/1/1
|
Code Block |
---|
admin@51.134# run show vxlan evpn rmac
L3 VNI Interface SVI-Interface VTEP RMAC Flags
-------- ------------- ------------- ---------- ----------------- -----
9999 vxlan9999 vlan1111 201.201.201.201 c4:39:3a:fb:be:d9 0x16
|