import-rib mpls(BGP-EVPN address family view)

Function

The import-rib mpls command enables the EVPN address family to import routes from the VPNv4 or VPNv6 address family.

The undo import-rib mpls command disables the EVPN address family from importing routes from the VPNv4 or VPNv6 address family.

By default, the EVPN address family is not enabled to import routes from the VPNv4 or VPNv6 address family.

Format

import-rib { vpnv4 | vpnv6 } mpls [ route-policy route-policy-name ]

undo import-rib { vpnv4 | vpnv6 } mpls [ route-policy route-policy-name ]

Parameters

Parameter Description Value
vpnv4

BGP-VPNv4 address family.

-

vpnv6

BGP-VPNv6 address family.

-

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-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, a border leaf node is connected to an EVPN L3VPN over SRv6 network on one side and to a VPNv4/VPNv6 over MPLS network on the other side. To import routes of the VPNv4/VPNv6 over MPLS network to the EVPN L3VPN over SRv6 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 EVPN address family to import routes from the VPNv4 and VPNv6 address families.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] import-rib vpnv4 mpls
[*HUAWEI-bgp-af-evpn] import-rib vpnv6 mpls
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >