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 these 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 remain 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.
- Run system-view
The system view is displayed.
- Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
(Optional) Run peer { ipv4-address | group-name } capability-advertise route-refreshpeer ipv6-address capability-advertise { 4-byte-as | route-refresh }or run:
Route-refresh is enabled.
By default, route-refresh is enabled.
- Run commit
The configuration is committed.
- Run quit
Return to the system view.
- Run quit
Return to the user view.
- 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 | ipv6-address | external | internal } { export | import }
BGP soft reset is configured.
- Run system-view
- If a device's peer does not support route-refresh, configure
the device to remain 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.
- Run system-view
The system view is displayed.
- Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
Enter the corresponding address family view based on network type to configure BGP devices on networks.
Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
Run ipv4-family multicast
The BGP-IPv4 multicast address family view is displayed.
Run ipv4-family vpnv4 [ unicast ]
The BGP-VPNv4 address family view is displayed.
Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
Run ipv6-family [ unicast ]
The BGP-IPv6 unicast address family view is displayed.
Run ipv6-family vpnv6 [ unicast ]
The BGP-VPNv6 address family view is displayed.
Run ipv6-family vpn-instance vpn-instance-name
The BGP-VPN instance 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.
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.
- Run commit
The configuration is committed.
- Run system-view