segment-routing ipv6 apply-sid import-rib(BGP-EVPN address family view)

Function

The segment-routing ipv6 apply-sid import-rib command configures a device to apply for SIDs for routes in the VPNv4 or VPNv6 address family in one-SID-per-route or one-SID-per-next-hop mode.

The undo segment-routing ipv6 apply-sid import-rib command disables a device from applying for SIDs for routes in the VPNv4 or VPNv6 address family in one-SID-per-route or one-SID-per-next-hop mode.

By default, no SID application mode is configured.

Format

segment-routing ipv6 apply-sid { per-route | per-nexthop } import-rib { vpnv4 | vpnv6 }

undo segment-routing ipv6 apply-sid { per-route | per-nexthop } import-rib { vpnv4 | vpnv6 }

Parameters

Parameter Description Value
per-route

Applies for a SID for each route.

-

per-nexthop

Applies for a SID for each next hop.

-

vpnv4

BGP-VPNv4 address family.

-

vpnv6

BGP-VPNv6 address family.

-

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In an Option B SRv6 and MPLS interworking scenario, the border leaf node is connected to the EVPN L3VPN over SRv6 network on one side and to the VPNv4/VPNv6 over MPLS network on the other side. After the border leaf node receives routes from the VPNv4/VPNv6 over MPLS network, it removes VPNv4/VPNv6 labels from routes and applies for SIDs. In one-SID-per-route mode, it applies for one SID for each route. In one-SID-per-next-hop mode, it applies for one SID for each next hop.

Example

# Configure the device to apply for a SID in one-SID-per-route or one-SID-per-next-hop mode.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] segment-routing ipv6 apply-sid per-nexthop import-rib vpnv4
[*HUAWEI-bgp-af-evpn] segment-routing ipv6 apply-sid per-nexthop import-rib vpnv6
[*HUAWEI-bgp-af-evpn] segment-routing ipv6 apply-sid per-route import-rib vpnv4
[*HUAWEI-bgp-af-evpn] segment-routing ipv6 apply-sid per-route import-rib vpnv6
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >