The segment-routing ipv6 locator evpn command adds the SID attribute to the VPN routes to be sent through EVPN.
The undo segment-routing ipv6 locator evpn command restores the default configuration.
By default, the SID attribute is not added to the VPN routes to be sent through EVPN.
Usage Scenario
In an EVPN L3VPN scenario, if service traffic needs to be carried over an SRv6 tunnel, the segment-routing ipv6 locator evpn command can be run to add the SID attribute to the EVPN routes to be sent. Upon receipt of EVPN routes from a BGP EVPN peer, the local device can recurse routes over an SRv6 tunnel based on the SID attribute carried in routes.
<HUAWEI> system-view [~HUAWEI] ip vpn-instatnce vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] vpn-target 100:1 both [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpn1 [*HUAWEI-bgp-vpn1] segment-routing ipv6 locator as evpn