import-rib evpn srv6 ip-prefix(BGP-VPNv4 address family view)

Function

The import-rib evpn srv6 ip-prefix command enables the VPNv4 address family to import routes from the EVPN address family.

The undo import-rib evpn srv6 ip-prefix command disables the VPNv4 address family from importing routes from the EVPN address family.

By default, the VPNv4 address family is disabled from importing routes from the EVPN address family.

Format

import-rib evpn srv6 ip-prefix [ route-policy route-policy-name ]

undo import-rib evpn srv6 ip-prefix [ route-policy route-policy-name ]

Parameters

Parameter Description Value
route-policy route-policy-name

Specifies the name of a routing policy. After this parameter is specified, the command takes effect only for the routes that match the policy.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPNv4 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, a border leaf node is connected to an EVPN L3VPN over SRv6 network on one side and to a VPNv4 over MPLS network on the other side. To import routes of the EVPN L3VPN over SRv6 network to the VPNv4 over MPLS network, you can run this command to implement this function. If a route-policy is specified, this function takes effect only for the routes that match the route-policy.

Example

# Enable the VPNv4 address family to import routes from the EVPN address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] import-rib evpn srv6 ip-prefix
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >