< Home

Configuring BGP Soft Reset

Context

After changing a BGP import policy, you must reset BGP connections for the new import policy to take effect. This, however, interrupts the BGP connections temporarily. BGP route-refresh allows the system to softly reset BGP connections to refresh a BGP routing table without tearing down any BGP connection. If a device's peer does not support route-refresh, configure the device to retain all routing updates received from the peer so that the device can refresh its routing table without tearing down the BGP connection with the peer.

Procedure

  • If a device's peer supports route-refresh, configure the device to softly reset the BGP connection with the peer and update the BGP routing table.

    1. Run system-view

      The system view is displayed.

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

      The BGP view is displayed.

    3. (Optional) Run peer { ipv4-address | group-name } capability-advertise route-refresh

      Or run peer ipv6-address capability-advertise { 4-byte-as | route-refresh }

      Route-refresh is enabled.

      By default, route-refresh is enabled.

    4. Run quit

      Return to the system view.

    5. Run quit

      Return to the user view.

    6. Run refresh bgp [ vpn-instance vpn-instance-name ipv4-family | vpnv4 ] { all | ipv4-address | group group-name | external | internal } { export | import }

      Or run refresh bgp ipv6 { all | group group-name | ipv4-address | ipv6-address | external | internal } { export | import }

      BGP soft reset is configured.

  • If a device's peer does not support route-refresh, configure the device to retain all routing updates received from the peer so that the device can refresh its routing table without tearing down the BGP connection with the peer.

    1. Run system-view

      The system view is displayed.

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

      The BGP view is displayed.

    3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

      • Run ipv4-family { unicast | multicast }

        The IPv4 address family view is displayed.

      • Run ipv6-family [ unicast ]

        The IPv6 address family view is displayed.

      If the peer keep-all-routes command is used on the device for the first time, the sessions between the device and its peers are reestablished.

      The refresh bgp command takes effect when the peer keep-all-routes command is used on the device supporting route-refresh.

    4. Run peer { ipv4-address | group-name | ipv6-address } keep-all-routes

      The device is configured to store all the routing updates received from its peers or peer groups.

      By default, the device stores only the routing updates that are received from peers or peer groups and match a configured import policy.

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