The route advertisement function allows PEs to advertise default static routes to L2GW/L3GWs through BGP EVPN RRs.
The system view is displayed.
To create a default static VPN IPv4 route, run the ip route-static vpn-instance vpn-instance-name 0.0.0.0 { 0.0.0.0 | 0 } { nexthop-address | interface-type interface-number [ nexthop-address ] } [ tag tag ] command.
To create a default static VPN IPv6 route, run the ipv6 route-static vpn-instance vpn-instance-name :: 0 { nexthop-ipv6–address | interface-type interface-number [ nexthop-ipv6-address ] } [ tag tag ] command.
The VPN instance view is displayed.
To enter the IPv4 address family view of the VPN instance, run the ipv4-family command.
To enter the IPv6 address family view of the VPN instance, run the ipv6-family command.
The L3VPN instance is bound to an import route-policy. This route-policy is used to filter the routes received by the L3VPN instance so that the gateway addresses are deleted from the routes received from L2GW/L3GWs.
Exit from the IPv4 or IPv6 address family view of the VPN instance.
Exit from the VPN instance view.
The BGP view is displayed.
To enter the IPv4 address family view of a BGP-VPN instance, run the ipv4-family vpn-instance vpn-instance-name command.
To enter the IPv6 address family view of a BGP-VPN instance, run the ipv6-family vpn-instance vpn-instance-name command.
Default static VPN routes are imported to the IPv4 or IPv6 address family of the BGP-VPN instance.
The function to advertise IP routes from the VPN instance to the EVPN instance is enabled.
Exit from the IPv4 or IPv6 address family view of the BGP-VPN instance.
Exit from the BGP view.
The configuration is committed.