< Home

advertise l2vpn evpn

Function

The advertise l2vpn evpn command enables a device to advertise IP routes imported to a VPN instance to the BGP-EVPN address family.

The undo advertise l2vpn evpn command restores the default configuration.

By default, a device is disabled from advertising IP routes imported to a VPN instance to the BGP-EVPN address family.

Format

advertise l2vpn evpn

undo advertise l2vpn evpn

Parameters

None

Views

BGP-VPN instance IPv4 address family view or BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

In the scenario where VXLAN is deployed through BGP EVPN, when you need to establish VTEP tunnels through IP prefix routes and advertise host routes, run the advertise l2vpn evpn command to enable a device to advertise IP routes imported to a VPN instance to the BGP-EVPN address family. In this way, the routes imported to the VPN instance can be sent to the EVPN address family and then sent to the remote VTEP through the EVPN peer relationship.

Example

# Enable a device to advertise IP routes imported to VPN instance vpna to the BGP-EVPN address family.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family vpn-instance vpna
[HUAWEI-bgp-vpna] advertise l2vpn evpn
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >