This section describes how to configure EVPN L3VPN over SRv6 BE.
EVPN L3VPN over SRv6 BE uses public SRv6 BE to carry EVPN L3VPN services. The implementation of EVPN L3VPN over SRv6 BE involves deploying SRv6 BE, implementing EVPN route interworking, and forwarding data.
As shown in Figure 1, PE1 and PE2 communicate through an IPv6 public network. SRv6 BE is deployed on the public IPv6 network to carry EVPN L3VPN services.
For IPv4 services, configure an IPv4 L3VPN instance.
Run ip vpn-instance vpn-instance-name
A VPN instance is created, and the VPN instance view is displayed.
Run ipv4-family
The VPN instance IPv4 address family is enabled, and the view of this address family is displayed.
Run route-distinguisher route-distinguisher
An RD is configured for the VPN instance IPv4 address family.
Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ] evpn
VPN targets are added to the VPN target list of the VPN instance IPv4 address family, so that routes of the VPN instance can be added to the routing table of the EVPN instance configured with a matching VPN target.
(Optional) Run tnl-policy policy-name evpn
The EVPN routes imported to the VPN instance IPv4 address family are enabled to be associated with a tunnel policy.
(Optional) Run import route-policy policy-name evpn
The VPN instance IPv4 address family is associated with an import route-policy that is used to filter routes imported from the EVPN instance to the VPN instance IPv4 address family. To control route import more precisely, specify an import route-policy to filter routes and set route attributes for routes that meet the filter criteria.
(Optional) Run export route-policy policy-name evpn
The VPN instance IPv4 address family is associated with an export route-policy that is used to filter routes advertised from the VPN instance IPv4 address family to the EVPN instance. To control route advertisement more precisely, specify an export route-policy to filter routes and set route attributes for routes that meet the filter criteria.
Run quit
Exit the VPN instance IPv4 address family view.
Run quit
Exit the VPN instance view.
For IPv6 services, configure an IPv6 L3VPN instance.
Run ip vpn-instance vpn-instance-name
A VPN instance is created, and the VPN instance view is displayed.
Run ipv6-family
The VPN instance IPv6 address family is enabled, and the view of this address family is displayed.
Run route-distinguisher route-distinguisher
An RD is configured for the VPN instance IPv6 address family.
Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ] evpn
VPN targets are added to the VPN target list of the VPN instance IPv6 address family, so that routes of the VPN instance can be added to the routing table of the EVPN instance configured with a matching VPN target.
(Optional) Run tnl-policy policy-name evpn
The EVPN routes imported to the VPN instance IPv6 address family are enabled to be associated with a tunnel policy.
(Optional) Run import route-policy policy-name evpn
The VPN instance IPv6 address family is associated with an import route-policy that is used to filter routes imported from the EVPN instance to the VPN instance IPv6 address family. To control route import more precisely, specify an import route-policy to filter routes and set route attributes for routes that meet the filter criteria.
(Optional) Run export route-policy policy-name evpn
The VPN instance IPv6 address family is associated with an export route-policy that is used to filter routes advertised from the VPN instance IPv6 address family to the EVPN instance. To control route advertisement more precisely, specify an export route-policy to filter routes and set route attributes for routes that meet the filter criteria.
Run quit
Exit the VPN instance IPv6 address family view.
Run quit
Exit the VPN instance view.
If a BGP RR needs to be configured on the network, establish BGP EVPN peer relationships between all the PEs and the RR.
After configuring EVPN L3VPN over SRv6 BE, verify the configuration.
Run the display bgp vpnv4 { all | route-distinguisher route-distinguisher | vpn-instance vpn-instance-name } routing-table [ network [ prefix-length ] ] command to check BGP VPNv4 route information.
Run the display bgp vpnv6 { all | route-distinguisher route-distinguisher | vpn-instance vpn-instance-name } routing-table [ network [ prefix-length ] ] command to check BGP VPNv6 route information.
Run the display ip routing-table vpn-instance vpn-instance-name or display ipv6 routing-table vpn-instance vpn-instance-name command to check information about the VPN routes received from the remote device.