standby authentication
To configure an authentication string for the Hot Standby Router Protocol (HSRP), use the standby authentication command in interface configuration mode. To delete an authentication string, use the no form of this command.
standby [group-number] authentication {text string | md5 {key-string [0 | | 7 | | timeout seconds] | key-chain name-of-chain}}
no standby [group-number] authentication {text string | md5 {key-string [0 | | 7 | timeout seconds] | key-chain name-of-chain}}
Syntax Description
group-number |
(Optional) Group number on the interface to which this authentication string applies. Range is from 0 to 65535. The default group number is 0. |
text string |
Specifies an authentication string. It can be up to eight characters long. The default string is cisco. |
md5 |
Specifies Message Digest 5 (MD5) authentication. |
key-string key |
Specifies the secret key for MD5 authentication. The key can contain up to 64 characters. We recommend that you use at least 16 characters. |
0 |
(Optional) Specifies an unencrypted key. If no prefix is specified, the text is also unencrypted. |
7 |
(Optional) Specifies an encrypted key. |
timeout seconds |
(Optional) Duration, in seconds, that HSRP accepts message digests based on both the old and new keys. |
key-chain name-of-chain |
Identifies a group of authentication keys. |
Command Default
No text authentication string is configured.
Command Modes
Interface configuration (config-if)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.7.1a |
This command was introduced. |
Usage Guidelines
For usage guidelines, see the Cisco IOS XE standby <group-number> authentication command.
The following example shows how to configure company1 as the authentication string required to allow hot standby routers in group 1 to interoperate:
interface GigabitEthernet 0/0/1
!
standby 1 authentication text company1
!
The following example shows how to configure MD5 authentication using a key string named 345890:
interface GigabitEthernet 0/0/1
!
standby 1 ip 10.21.0.12
standby 1 priority 110
standby 1 preempt
standby 1 authentication md5 key-string 345890 timeout 30
!
The following example shows how to configure MD5 authentication using a key chain. HSRP queries the key chain “hsrp1” to obtain the current live key and key ID for the specified key chain:
key chain hsrp1
!
key 1
!
key-string 543210
exit
!
interface GigabitEthernet 0/0/1
!
standby 1 ip 10.21.0.10
standby 1 priority 110
standby 1 preempt
standby 1 authentication md5 key-chain hsrp1
!