Configure route regeneration-based evolution to gradually switch traffic to SRv6 EVPN routes, implementing the evolution from VPWS accessing L3VPN over MPLS to VPWS accessing EVPN over SRv6.
Procedure
- Configure route regeneration on RSGs.
- Run system-view
The system view is displayed.
- Run bgp as-number
The BGP view is displayed.
- Run ipv4-family vpnv4 or ipv6-family vpnv6
The BGP-VPNv4 or BGP-VPNv6 address family view is displayed.
- Run peer ipv4-address import reoriginate or peer group-name import reoriginate
The device is enabled to add a regeneration flag to the routes received from a specified VPNv4 or VPNv6 peer or peer group.
- Run quit
Return to the BGP view.
- Run l2vpn-family evpn
The BGP-EVPN address family view is displayed.
- Run peer peerIpv6Addr advertise route-reoriginated { vpnv4 | vpnv6 } or peer peerGroupName advertise route-reoriginated { vpnv4 | vpnv6 }
The device is enabled to advertise the regenerated EVPN routes in the VPNv4 or VPNv6 address family to an EVPN IPv6 peer or peer group.
After this step is performed, the RSG regenerates VPNv4 or VPNv6 routes accepted from the ASGs and then advertises SRv6 EVPN routes to EVPN IPv6 peers.
- Run quit
Return to the BGP view.
- (Optional) Run ipv4-family vpn-instance vpn-instance-name or ipv6-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 or IPv6 address family view is displayed.
- (Optional) Run advertise route-reoriginate evpn disable
The function to regenerate EVPN routes in a specified VPN instance is disabled.
If some services on the ASGs are still carried over traditional L3VPNs, perform this step, because routes corresponding to these instances do not need to be regenerated on RSGs.
- Run commit
The configuration is committed.
- Configure priority-based route selection on each ASG so that the ASGs preferentially select SRv6 EVPN routes.
- Run system-view
The system view is displayed.
- Run bgp as-number
The BGP view is displayed.
- Run l2vpn-family evpn
The BGP-EVPN address family view is displayed.
- Run peer peerIpv6Addr high-priority or peer peerGroupName high-priority
EVPN routes learned from a specified IPv6 peer or peer group are enabled to participate in route selection based on the high priority.
After this step is performed, for routes with the same prefix, the device preferentially selects the SRv6 EVPN routes learned from the IPv6 peer or peer group.
- Run commit
The configuration is committed.
- After the evolution is complete, delete BGP VPNv4 or VPNv6 peer relationships from the RRs, ASGs, and RSGs.
- Run system-view
The system view is displayed.
- Run bgp as-number
The BGP view is displayed.
- Run ipv4-family vpnv4 or ipv6-family vpnv6
The BGP-VPNv4 or BGP-VPNv6 address family view is displayed.
- Run undo peer ipv4-address enable or undo peer group-name enable
The specified VPNv4 or VPNv6 peer or peer group is deleted.
- Run commit
The configuration is committed.