After route advertisement is configured on an L2GW/L3GW, the L2GW/L3GW can construct its own forwarding entries based on received EVPN or BGP routes.
The system view is displayed.
A VBDIF interface is created, and the VBDIF interface view is displayed.
Run arp generate-rd-table enable
The L2GW/L3GW is enabled to generate ARP entries used for Layer 2 forwarding based on ARP information.
Run ipv6 nd generate-rd-table enable
The L2GW/L3GW is enabled to generate ND entries used for Layer 2 forwarding based on ND information.
Exit from the VBDIF interface view.
The view of a VPN instance is displayed.
Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Run ipv6-family
The VPN instance IPv6 address family view is displayed.
The L3VPN instance is associated with an export route policy, which filters routes that the L3VPN instance will advertise to an EVPN instance. This ensures that the L3VPN instance advertises only static VPN routes reachable to the VNF to EVPN.
Exit from the VPN instance IPv4/IPv6 address family view.
Exit from the VPN instance view.
The BGP view is displayed.
Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
Run ipv6-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv6 address family view is displayed.
The device is enabled to import static routes into the routing table of the BGP-VPN instance IPv4/IPv6 address family.
The VPN instance is enabled to advertise EVPN IP prefix routes. If load balancing is required, specifying the import-route-multipath parameter is recommended, so that the VPN instance can advertise all routes with the same destination address as EVPN IP prefix routes.
The asymmetric mode is enabled for IRB routes. If L2GW/L3GWs are configured to advertise ARP (ND) routes to each other, skip this step. If L2GW/L3GWs are configured to advertise IRB (IRBv6) routes each other, perform this step so that the L2GW/L3GWs do not generate IP prefix routes. This helps prevent route loops.
Exit from the BGP-VPN instance IPv4/IPv6 address family view.
The BGP-EVPN address family view is displayed.
The device is enabled to advertise IRB (IRBv6) or ARP (ND) routes. If ARP (ND) routes need to be advertised, the L2GW/L3GW sends only routes carrying MAC and ARP information to the DC gateway. If IRB (IRBv6) routes need to be advertised, the L2GW/L3GW sends the MAC addresses, ARP information, and L3 VNI to the DC gateway. In this case, however, the irb asymmetric command must be enabled on the DC gateway so that the DC gateway does not generate IP prefix routes based on the IP address and L3 VNI. This prevents route loops on the network.
Exit from the BGP-EVPN address family view.
Exit from the BGP view.
The configuration is committed.