Before you perform configurations in the BGP-EVPN address family view, run the l2vpn-family evpn command to enable the BGP-EVPN address family and display the BGP-EVPN address family view.
Example
# Enable the BGP-EVPN address family and display the BGP-EVPN address family view.