Microsoft ES4612 Manuel D’Utilisation

Page de 666
Command Line Interface
4-322
4
Example
This example creates HSRP group 1 for VLAN 1, and also adds a secondary 
interface as a member of the group.
standby priority
This command sets the priority of this router in a HSRP group. Use the no form to 
restore the default setting.
Syntax 
standby [grouppriority level
no standby [grouppriority
• group - Identifies the HSRP group. (Range: 0-255)
• level - Priority of this router in the HSRP group. (Range: 1-255)
Default Setting 
Group number: 0
Priority: 100
Command Mode 
Interface (VLAN)
Command Usage 
• The router with the highest priority is elected as the master virtual router. The 
router with the next highest priority is elected as the standby router. The 
standby router will become the master router if the current master fails. When 
the original master router recovers, it will become the active master router 
again if the configured priorities have not been changed.
• If two or more routers are configured with the same HSRP priority, the router 
with the higher IP address is elected as the new master router if the current 
master fails. 
• The priority setting takes precedence over authentication. In other words, if a 
router with a higher priority than any other router comes on line, but is not 
configured with the standby authentication command, or is configured with 
the wrong string, it will still take over as the active master.
• The HSRP priority can change dynamically if an interface is configured with 
the standby track command and another interface on the router fails or 
comes back on line.
Example
Console(config)#interface vlan 1
Console(config-if)#standby 1 ip 192.168.1.7
Console(config-if)#standby 1 ip 192.168.2.6 secondary
Console(config-if)#
Console(config-if)#standby 1 priority 10
Console(config-if)#