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.
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.