segment-routing ipv6 locator (BGP-IPv6 unicast address family view)

Function

The segment-routing ipv6 locator command enables a device to add SIDs into public network routes.

The undo segment-routing ipv6 locator command disables a device from adding SIDs into public network routes.

By default, the public network routes do not have SIDs.

Format

segment-routing ipv6 locator locator-name

undo segment-routing ipv6 locator [ locator-name ]

Parameters

Parameter Description Value
locator-name

Specifies the name of a SID node route locator, which was configured through the locator command.

The value is a string of 1 to 31 case-sensitive characters.

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

By default,public IPv6 unicast routes do not have SIDs,the segment-routing ipv6 locator command enables a device to add SIDs in public network routes.

After the BGP-IPV6 neighbor is set up and the peer ipv6-address prefix-sid command is enabled in the IPv6 address family unicast view,the BGP peers can exchange the public network routing information carrying the SID attributes through the BGP-IPV6 neighbor.

Prerequisites

The name of the SID node route locator has been configured using the locator command.

Example

# Enable a device to send public network routes that carry SIDs.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator a ipv6-prefix 11:: 64
[*HUAWEI-segment-routing-ipv6-locator] quit
[*HUAWEI-segment-routing-ipv6] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family unicast
[*HUAWEI-bgp-af-ipv6] segment-routing ipv6 locator a
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >