Configuring Route Advertisement on PEs

The route advertisement allows PEs to advertise default static routes to L2GW/L3GWs based on BGP VPNv4 peer relationships.

Procedure

  1. Run system-view

    The system view is displayed.

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

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

    The BGP view is displayed.

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

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

  6. Run quit

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

  7. Run quit

    Exit from the BGP view.

  8. Run commit

    The configuration is committed.

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