< Home

Configure BGP to Advertise Local Routes

When the local routes need to be advertised to the peer, you can implement this configuration to add the specified network segment to the BGP routing table. This configuration is available only when the routes are in the local routing table.

Context

The local routes to be advertised should be in the local IP routing table. You can use routing policies to control the routes to be advertised more flexibly.

Procedure

  1. Access the system view.

    system-view

  2. Access the BGP view.

    bgp { as-number-plain | as-number-dot }

  3. (Optional) Access the BGP IPv4 unicast address family view.

    ipv4-family unicast

  4. Configure BGP to advertise the local routers.

    network ipv4-address [ mask | mask-length ] [ route-policy route-policy-name ]

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