local-cross allow-remote-cross-route

Function

The local-cross allow-remote-cross-route command enables the local EVPN route leaking function for remotely leaked routes.

The undo local-cross allow-remote-cross-route command disables the local EVPN route leaking function for remotely leaked routes.

By default, local EVPN route crossing is disabled for remotely leaked routes.

Format

local-cross allow-remote-cross-route

undo local-cross allow-remote-cross-route

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, remote EVPN routes received from the remote end can only be remotely leaked to the VPN instance. The routes of the VPN instance cannot be locally leaked to other VPN instances. To solve the problem of mutual access between different VPN instances, run the local-cross allow-remote-cross-route command to enable local cross of remote EVPN routes. Then, the remote routes received by EVPN are sent to the VPN instance and then locally leaked to other VPN instances.

Example

# Enable the local EVPN route leaking function for remotely leaked routes.
<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
[*HUAWEI-bgp-vpn1] local-cross allow-remote-cross-route
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >