The default send-key-id command configures a particular key as the default send key for that keychain.
The undo default send-key-id command deletes default send key.
By default, no key is configured as default send key.
Usage Scenario
In keychain authentication mode, secure protocol packet transmission is provided by changing the authentication algorithm and key sting dynamically. This can reduce the workload of changing the algorithm and key manually. A keychain consists of multiple authentication keys, each of which is valid within different time periods. When a key becomes valid, the authentication algorithm corresponding to the key is used, and packets passing the authentication will be sent or received.
If a key for packet sending is not configured in a keychain or no key for packet sending is valid within a certain period, protocol packets cannot be authenticated and encrypted. As a result, protocol packet transmission fails. To address such a problem, configure a default key for packet sending. If no key is valid, the default key for packet sending is used.
Precautions
Each keychain can have only one default key for packet sending.
If the default key for packet sending is an existing key, the authentication and encryption algorithms, and key corresponding to the key are used.
If the default key for packet sending is a newly created key, configure the authentication and encryption algorithms.