No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E V800R010C10SPC500 Configuration Guide - IP Routing 01

This is NE40E V800R010C10SPC500 Configuration Guide - IP Routing
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Maintaining BGP

Maintaining BGP

Maintaining BGP involves resetting BGP connections and clearing BGP statistics.

Resetting BGP Connections

Resetting a BGP connection will interrupt peer relationships.

Context

The BGP peer relationship between routers is interrupted after you reset BGP connections with the reset bgp command. Therefore, exercise caution when running the command.

When the BGP routing policy on a device that does not support the router -fresh capability changes, you need to reset BGP connections so that the change can take effect. To reset BGP connections, run the following reset commands in the user view:

Procedure

  • To reset all BGP connections, run the reset bgp all command.
  • To reset BGP connections with a specified AS, run the reset bgp as-number command.
  • To reset BGP connections with a specified peer, run the reset bgp ipv4-address command.
  • To reset all EBGP connections, run the reset bgp external command.
  • To reset BGP connections with a specified peer group, run the reset bgp group group-name command.
  • To reset all IBGP connections, run the reset bgp internal command.

Clearing BGP Statistics

This section describes how to clear the statistics about flapping routes and dampened routes.

Context

BGP statistics cannot be restored after being cleared. Therefore, exercise caution when running the command.

Procedure

  • To clear statistics about flapping routes, run the reset bgp flap-info [ regexp as-path-regexp | as-path-filter { as-path-filter-number | as-path-filter-name } | ipv4-address [ mask | mask-length ] ] command in the user view.
  • To clear statistics about flapping routes of a specified peer, run the reset bgp ipv4-address flap-info command in the user view.
  • To clear statistics about dampened routes and release dampened routes, run the reset bgp dampening [ ipv4-address [ mask | mask-length ] ] command in the user view.

Configuring BGP to Record Peer Status Changes and Event Information

After you configure BGP to record peer status changes and event information, BGP logs every peer status change or event.

Context

If an error occurs on a BGP peer, BGP generates an error code and a subcode. If the error occurs on the local device, the local device disconnects the BGP peer and sends a BGP Notification message to the BGP peer. After the BGP peer receives the Notification message, it records the error code and subcode carried in the message and changes its state machine.

By default, BGP records peer status changes and event information in the system log files. The record includes BGP error codes and subcodes, BGP state machine changes, and whether BGP Notification messages are sent. The system log files serve as a reference to locate network connectivity faults.

If you do not want BGP to record peer status changes or event information, run the undo peer log-change command. After you run the undo peer log-change command, BGP records only the last peer status change in the log file. To check this log, run the display bgp peer loginfo command.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family unicast

    The IPv4 unicast address family view is displayed.

  4. Run peer { ipv4-address | group-name } log-change

    BGP is configured to record peer status changes and event information.

  5. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055018

Views: 54281

Downloads: 209

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next