After a keychain with the same rules is configured on the two ends of a BGP connection, the keychain can dynamically select the authentication keys to enhance BGP attack defense.
Procedure
- Configuring Keychain Authentication.
- Run system-view
The system view is displayed.
- Run bgp as-number
The BGP view is displayed.
- Run peer { ipv4-address | group-name } keychain keychain-name
Keychain authentication is configured.
To ensure the setup of a TCP connection and BGP exchange between on both ends of a BGP connection, configure keychain authentication specified for TCP-based applications and the same password and encryption algorithms on both ends.
keychain-name specified in this command must exist; otherwise, the TCP connection cannot be established. For keychain configuration details, see the "Keychain Configuration" chapter in HUAWEI NetEngine 8000 F Series Configuration Guide - Security.
When this command is used in the BGP view, it is also applicable to the extended address family view because they use the same TCP connection.
BGP MD5 authentication and BGP keychain authentication are mutually exclusive.
- Run commit
The configuration is committed.
Checking the Configurations
Run the following command to check the previous configuration.
- Run the display bgp peer [ ipv4-address ] verbose command to view the authentication information about BGP peers.