local-cross export evpn-rt-match

Function

The local-cross export evpn-rt-match command enables the local EVPN route leaking function.

The undo local-cross export evpn-rt-match command disables the local EVPN route leaking function.

By default, the local EVPN route leaking function is disabled.

Format

local-cross export evpn-rt-match

undo local-cross export evpn-rt-match

Parameters

None

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

By default, the locally imported routes and VPN peer routes of a VPN instance cannot be locally leaked to other VPN instances through EVPN. To resolve this problem, run the local-cross export evpn-rt-match command to enable local EVPN route leaking. After the command is run, the routes imported from the local VPN instance and the routes from the VPN peers can be leaked to other VPN instances.

Example

# Enable the local EVPN route leaking function.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance 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] local-cross export evpn-rt-match
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >