Friday, October 3, 2014

HSRP Configuration

This going to be straightforward configuration. But at beginning lets see some default values for HSRP and states of device with enabled HSRP.

Default HSRP Configuration

Feature
Default Setting
HSRP groups
None configured
Standby group number
0
Standby MAC address
System assigned as: 0000.0c07.acXX, where XX is the HSRP group number.
The HSRP Version 2 uses a new MAC address range 0000.0C9F.F000 to 0000.0C9F.FFFF. Your MAC address corresponds to the standby group number
Standby priority
100
Standby delay
0 (no delay)
Standby track interface priority
10
Standby hello time
3 seconds
Standby holdtime
10 seconds

HSRP States

When in operation, HSRP devices are configured into one of many states:

  • Active – This is the state of the device that is actively forwarding traffic.
  • Init or Disabled – This is the state of a device that is not yet ready or able to participate in HSRP.
  • Learn – This is the state of a device that has not yet determined the virtual IP address and has not yet seen a hello message from an active device.
  • Listen – This is the state of a device that is receiving hello messages.
  • Speak – This is the state of a device that is sending and receiving hello messages.
  • Standby – This is the state of a device that is prepared to take over the traffic forwarding duties from the active device.


Tasks

  • Create VLAN's on distribution switches and access switches

  • Create VLAN 10 (10.10.10.1/24), VLAN 20 (20.20.20.0/24) on DSW_3 SVI interface 10 with ip address 10.10.10.1/24 and on DSW_4 with ip address 10.10.10.2/24. Create SWI interface 20 with ip address 20.20.20.1/24 on DSW_3 and SWI interface 20 on DSW_4 wit ip address 20.20.20.2/24

  •  Enable routing on DSW using ip routing command.

  •  Enable trunking port on every connections between switches

  •  Enable rapid spanning tree for faster converge

  •  Configure port fast on access port with command spannig-tree portfast default

  • Enable HSRP on DSW with standby and use number groups related with number of VLAN's










DSW3#show standby
Vlan10 - Group 10 (version 2)
State is Active
7 state changes, last state change 00:04:49
Virtual IP address is 10.10.10.254
Active virtual MAC address is 0000.0C9F.F00A
Local virtual MAC address is 0000.0C9F.F00A (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.868 secs
Preemption enabled
Active router is local
Standby router is 10.10.10.2, priority 110 (expires in 8 sec)
Priority 110 (configured 110)
Group name is hsrp-Vl1-10 (default)
Vlan20 - Group 20 (version 2)
State is Standby
7 state changes, last state change 00:00:38
Virtual IP address is 20.20.20.254
Active virtual MAC address is 0000.0C9F.F014
Local virtual MAC address is 0000.0C9F.F014 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.337 secs
Preemption disabled
Active router is 20.20.20.2, priority 100 (expires in 7 sec)
MAC address is 0000.0C9F.F014
Standby router is local
Priority 100 (default 100)
Group name is hsrp-Vl2-20 (default)

 Next is results of show standby on DSW_4

DSW4#show standby
Vlan10 - Group 10 (version 2)
State is Standby
7 state changes, last state change 00:00:36
Virtual IP address is 10.10.10.254
Active virtual MAC address is 0000.0C9F.F00A
Local virtual MAC address is 0000.0C9F.F00A (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.316 secs
Preemption disabled
Active router is 10.10.10.1
Standby router is local
Priority 100 (default 100)
Group name is hsrp-Vl1-10 (default)
Vlan20 - Group 20 (version 2)
State is Active
6 state changes, last state change 00:00:21
Virtual IP address is 20.20.20.254
Active virtual MAC address is 0000.0C9F.F014
Local virtual MAC address is 0000.0C9F.F014 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.339 secs
Preemption enabled
Active router is local
Standby router is 20.20.20.1, priority 110 (expires in 6 sec)
Priority 110 (configured 110)
Group name is hsrp-Vl2-20 (default)


Using this approach we can load balance traffic, host from VLAN 10 will use DSW_3 while VLAN 20 hosts will goes thru DSW_4, notice that you will have to configure spanning tree root primary or secondary for vlans on DSW.

No comments:

Post a Comment