Configuring BGP soft-reset

After you modify the route selection policy, for example, modify the preferred value, you must reset BGP sessions to apply the new policy. The reset operation tears down and re-establishes BGP sessions.

To avoid tearing down BGP sessions, you can use one of the following soft-reset methods to apply the new policy:

Enabling route-refresh

To enable BGP route refresh for a peer or peer group (IPv4):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Enable BGP route refresh for a peer or peer group.

  • Enable BGP route refresh for the specified peer or peer group:peer { group-name | ip-address [ mask-length ] } capability-advertise route-refresh

  • Enable BGP route refresh and multi-protocol extension capability for the specified peer or peer group:undo peer { group-name | ip-address [ mask-length ] } capability-advertise conventional

By default, BGP route refresh and multi-protocol extension capability are enabled.

To enable BGP route refresh for a peer or peer group (IPv6):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Enable BGP route refresh for a peer or peer group.

  • Enable BGP route refresh for the specified peer or peer group:peer { group-name | ipv6-address [ prefix-length ] } capability-advertise route-refresh

  • Enable BGP route refresh and multi-protocol extension capability for the specified peer or peer group:undo peer { group-name | ipv6-address [ prefix-length ] } capability-advertise conventional

By default, BGP route refresh and multi-protocol extension capability are enabled.

Saving updates

To save all route updates from the specified peer or peer group (IPv4):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Enter BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view.

address-family ipv4 [ unicast ]

N/A

4. Save all route updates from the peer or peer group.

peer { group-name | ip-address [ mask-length ] } keep-all-routes

By default, the routes are not saved.

This command takes effect only for the routes received after this command is executed.

To save all route updates from the specified peer or peer group (IPv6):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view

bgp as-number

N/A

3. Enter BGP IPv6 unicast address family view.

address-family ipv6 [ unicast ]

N/A

4. Save all route updates from the peer or peer group.

peer { group-name | ipv6-address [ prefix-length ] } keep-all-routes

By default, the routes are not saved.

This command takes effect only for the routes received after this command is executed.

Configuring manual soft-reset

To configure manual soft-reset (IPv4):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Enable BGP route refresh for a peer or peer group.

  • Enable BGP route refresh for the specified peer or peer group:peer { group-name | ip-address [ mask-length ] } capability-advertise route-refresh

  • Enable BGP route refresh and multi-protocol extension capability for the specified peer or peer group:undo peer { group-name | ip-address [ mask-length ] } capability-advertise conventional

By default, BGP route refresh and multi-protocol extension capability are enabled.

4. Return to user view.

return

N/A

5. Perform manual soft-reset.

refresh bgp { ip-address [ mask-length ] | all | external | group group-name | internal } { export | import } ipv4 [ unicast ] [ vpn-instance vpn-instance-name ]

N/A

To configure manual soft-reset (IPv6):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Enable BGP route refresh for a peer or peer group.

  • Enable BGP route refresh for the specified peer or peer group:peer { group-name | ipv6-address [ prefix-length ] } capability-advertise route-refresh

  • Enable BGP route refresh and multi-protocol extension capability for the specified peer or peer group:undo peer { group-name | ipv6-address [ prefix-length ] } capability-advertise conventional

By default, BGP route refresh and multi-protocol extension capability are enabled.

4. Return to user view.

return

N/A

5. Perform manual soft-reset.

refresh bgp { ipv6-address [ prefix-length ] | all | external | group group-name | internal } { export | import } ipv6 [ unicast ] [ vpn-instance vpn-instance-name ]

N/A