CX320 Switch Module V100R001 Command Reference 14

advertise l2vpn evpn

advertise l2vpn evpn

Function

The advertise l2vpn evpn command enables a device to advertise IP routes imported to a VPN instance to its EVPN instance.

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 its EVPN instance.

Format

advertise l2vpn evpn

undo advertise l2vpn evpn

Parameters

None

Views

BGP-VPN instance IPv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After VTEPs establish VXLAN tunnels through IP prefix routes, run the advertise l2vpn evpn command in the BGP-VPN instance IPv4 address family view or BGP-VPN instance IPv6 address family view to enable a VTEP to advertise host routes imported to a VPN instance to its EVPN instance. The VTEP then sends host routes to the remote VTEP through the BGP EVPN peer relationship.

Example

# Enable a device to advertise IP routes imported to VPN instance vpna to its EVPN instance.

<HUAWEI> system-view
[~HUAWEI] bgp 100 
[*HUAWEI-bgp] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-vpna] advertise l2vpn evpn
Translation
Favorite
Download
Update Date:2025-07-01
Document ID:EDOC1000128405
Views:7700961
Downloads:2083
Average rating:4.75Points

Digital Signature File

digtal sigature tool