segment-routing ipv6 locator evpn

Function

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.

Format

segment-routing ipv6 locator locator-name evpn

undo segment-routing ipv6 locator locator-name evpn

Parameters

Parameter Description Value
locator-name

Specifies the name of a SID node route locator.

The value is a string of 1 to 31 characters.

Views

BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

Example

# Add the SID attribute to the VPN routes to be sent through EVPN.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >