Configuring Route Advertisement on PEs

The route advertisement function allows PEs to advertise default static routes to L2GW/L3GWs through BGP EVPN RRs.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Create a route-policy to filter and modify the advertised and received routes. For configuration details, see Configuring a Route-Policy. You can run the apply gateway-ip none or apply ipv6 gateway-ip none command to delete gateway addresses from the VNF routes received from L2GW/L3GWs so that the routes sent from PEs to VNFs can be recursed over SR tunnels, instead of being forwarded based on gateway addresses.
  3. Configure default static VPN routes.

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

  4. Run ip vpn-instance vpn-instance-name

    The VPN instance view is displayed.

  5. Enter the IPv4 or IPv6 address family view of the VPN instance.

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

  6. Run import route-policy policy-name evpn

    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.

  7. Run quit

    Exit from the IPv4 or IPv6 address family view of the VPN instance.

  8. Run quit

    Exit from the VPN instance view.

  9. Run bgp { as-number-plain | as-number-dot }

    The BGP view is displayed.

  10. Enter the IPv4 or IPv6 address family view of a BGP-VPN instance.

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

  11. Run network { 0.0.0.0 0 | :: 0 }

    Default static VPN routes are imported to the IPv4 or IPv6 address family of the BGP-VPN instance.

  12. Run advertise l2vpn evpn

    The function to advertise IP routes from the VPN instance to the EVPN instance is enabled.

  13. Run quit

    Exit from the IPv4 or IPv6 address family view of the BGP-VPN instance.

  14. Run quit

    Exit from the BGP view.

  15. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >