EVPN VPWS is established based on the EVPN service architecture. Before configuring EVPN VPWS over MPLS, you need to configure EVPN functions.
The system view is displayed.
An EVPN VPWS instance is created, and the instance view is displayed.
A description is configured for the EVPN instance.
Similar to a host name or an interface description, an EVPN instance description helps you memorize the EVPN instance.
An RD is set for the EVPN instance.
An EVPN instance takes effect only after an RD is configured for it. The RDs of different EVPN instances on the same PE must be different.
After being configured, an RD cannot be modified but can be deleted. If the RD of an EVPN instance is deleted, VPN targets configured for the EVPN instance are also deleted.
One or multiple VPN targets are set for the EVPN instance.
VPN targets are BGP extended community attributes used to control the acceptance and advertisement of EVPN routes. A maximum of eight import VPN targets and eight export VPN targets can be configured using the vpn-target command. To configure more VPN targets for an EVPN instance address family, run the vpn-target command multiple times.
The EVPN instance is configured to filter MAC routes to be advertised.
To precisely control EVPN routes, an export route-policy can be configured. An export route-policy filters routes before they are sent to other PEs.
The EVPN instance is configured to filter MAC routes to be accepted.
To precisely control EVPN routes, an import route-policy can be configured. An import route-policy filters routes that are received from other PEs.
A tunnel policy is applied to the EVPN instance.
This configuration enables PEs to use TE tunnels to transmit data packets.
Return to the system view.
An EVPN source address is configured.
The BGP view is displayed.
A remote PE is specified 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.
An RR and its client are configured.
If all PEs are in the same AS, you can configure an RR to reduce IBGP connections. The BGP device with the peer reflect-client command functions as an RR and treats the specified peer or peer group as a client.
A 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 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 imported MAC routes exceed 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.