After two PEs establish a BGP EVPN peer relationship, they can exchange EVPN routes.
In EVPN networking, PEs have to establish BGP EVPN peer relationships before exchanging EVPN routes to implement communication between the PEs within an EVPN instance.
Perform the following steps on each PE.
The system view is displayed.
The BGP view is displayed.
A BGP router ID is set.
A peer device is configured as a BGP peer for the PE.
The interface on which a TCP connection to the specified BGP peer is established is specified.
A PE must use a loopback interface address with a 32-bit mask to establish an MP-IBGP peer relationship with the peer PE so that VPN routes can recurse to tunnels. The route to the local loopback interface is advertised to the peer PE using an IGP on the MPLS backbone network.
A peer group is created.
The BGP-EVPN address family view is displayed.
The device is enabled to exchange EVPN routes with a specified peer or peer group.
A BGP EVPN peer is added to the peer group.
Adding BGP EVPN peers to peer groups simplifies BGP network configuration and management.
A designated forwarder (DF) election delay is configured.
If a network is unstable, PE interfaces connecting to CEs will frequently alternate between Up and Down, resulting in repeated DF election and subsequent network performance deterioration. To prevent repeated DF election, run the timer df-delay command to set a longer DF election delay to improve network stability.
In an EVPN dual-homing scenario where interface-based DF election is enabled, you need to run this command to set the delay for DF election to 0s, preventing the long-time existence of dual backup devices during a switchback from causing a traffic interruption.
The maximum number of MAC routes allowed to be accepted from the specified peer or peer group is set.
If an EVPN instance imports many inapplicable MAC routes from a peer or peer group and they account for a large proportion of the total number of MAC routes, you are advised to run this command to limit the maximum number of MAC routes that can be imported. If the number of imported MAC routes exceeds the specified maximum number, the device displays an alarm, prompting you to check the validity of the MAC routes imported to the EVPN instance.
The large-community attribute can represent a whole 2-byte or 4-byte AS number, and contain two 4-byte LocalData IDs, facilitating the flexible application of route-policies. Before enabling the function to advertise the routes carrying the large-community attribute to BGP EVPN peers, configure the route-policy related to the large-community attribute and use the route-policy to set the large-community attribute.
A special mode is specified to process specified path attributes in received BGP EVPN Update messages.
Discards the specified path attributes.
Withdraws the routes with the specified path attributes.
Processes the specified attributes as unknown ones.
The configuration is committed.