Cisco IOS CLI | Cisco NX-OS CLI |
---|---|
Enabling the HSRP Feature |
Cisco IOS Software does not have the ability to enable or disable HSRP. | feature hsrp |
---|
Configuring HSRP on an Interface |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby 0 ip 192.168.10.1 | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp 0 ip 192.168.10.1 |
---|
Configuring the priority and preempt Options |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby 0 ip 192.168.10.1 standby 0 priority 110 standby 0 preempt | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp 0 preempt priority 110 ip 192.168.10.1 |
---|
Modifying the Hello and Holdtime Timers (Seconds) |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby 0 ip 192.168.10.1 standby 0 timers 1 3 | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp 0 timers 1 3 ip 192.168.10.1 |
---|
Modifying the Hello and Holdtime Timers (Milliseconds) |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby 0 ip 192.168.10.1 standby 0 timers msec 250 msec 750 | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp 0 timers msec 250 msec 750 ip 192.168.10.1 |
---|
Configuring MD5 Authentication |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby 0 ip 192.168.10.1 standby 0 authentication md5 key-string cisco123 | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp 0 authentication md5 key-string cisco123 ip 192.168.10.1 |
---|
Configuring HSRP Version 2 on an Interface |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby version 2 | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp version 2 |
---|
Configuring Minimum and Reload Initialization Delay |
interface Ethernet2/1
ip address 192.168.10.2 255.255.255.0 standby delay minimum 5 reload 10 | interface Ethernet2/1
ip address 192.168.10.2/24 hsrp delay minimum 5 reload 10 |
---|
Configuring Object Tracking (Interface Line-Protocol) |
track 1 interface Ethernet2/2 line-protocol
ip address 192.168.10.2 255.255.255.0 standby 0 ip 192.168.10.1 standby 0 track 1 decrement 20 | track 1 interface ethernet 2/2 line-protocol
ip address 192.168.10.2/24 hsrp 0 track 1 decrement 20 ip 192.168.10.1 |
---|
Verification Command Comparison
The following table compares some useful show commands for verifying and troubleshooting an HSRP configuration.
Cisco NX-OS HSRP | Cisco IOS Software HSRP | Command Description |
---|---|---|
show hsrp | show standby | Displays detailed information for all HSRP groups |
show hsrp active | - | Displays all of the groups in the “active” state |
show hsrp all | show standby all | Displays all of the groups including groups in the disabled state |
show hsrp bfd-sessions | - | Displays all BFD sessions |
show hsrp brief | show standby brief | Displays a summary of all the HSRP groups |
show hsrp delay | show standby delay | Displays minimum and maximum delay times for preempting |
show hsrp detail | - | Displays detailed information |
show hsrp group <#> | - | Displays detailed information for a specified group |
show hsrp init | - | Displays all the groups in the "init" state |
show hsrp interface | show standby int-type | Displays detailed information for a specific interface |
show hsrp learn | - | Displays all the groups in the "learn" state |
show hsrp listen | - | Displays all the groups in the "listen" state |
show hsrp speak | - | Displays all the groups in the "speak" state |
show hsrp standby | - | Displays all the groups in the "standby" state |
show hsrp summary | - | Displays summary information for HSRP groups |
- | - | - |
show track | show track | Displays the configured tracked objects |
show track brief | show track brief | Displays a brief list of tracked objects |
show track interface | show track interface | Displays the status of tracked interfaces |
show track ip | show track ip | Displays the IP protocol objects that are tracked |
No comments:
Post a Comment