Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HSRPv1 (hsrp)

Reached from

Lower layerSelectorValue
udpdst_port / src_port1985 (0x07c1)

Fields

FieldTypeDefaultAutoDescription
versionuint(8)0HSRP version (0 for HSRPv1).
op_codeenum(8)0 (hello)HSRP operation (0 = Hello, 1 = Coup, 2 = Resign, 3 = Advertise).
stateenum(8)16 (active)Sender state (1 = Learn, 2 = Listen, 4 = Speak, 8 = Standby, 16 = Active).
hello_timeuint(8)3Interval between Hello messages, in seconds.
hold_timeuint(8)10Time a Hello stays valid, in seconds.
priorityuint(8)100Router priority within the group.
groupuint(8)0Standby group number.
reserveduint(8)0
auth_databytes(8)63 69 73 63 6f 00 00 00Clear-text authentication password (8 octets, default “cisco”).
virtual_ipipv4192.0.2.254Virtual IPv4 address of the group.

op_code

ValueName
0 (0x00)hello
1 (0x01)coup
2 (0x02)resign
3 (0x03)advertise

state

ValueName
0 (0x00)initial
1 (0x01)learn
2 (0x02)listen
4 (0x04)speak
8 (0x08)standby
16 (0x10)active

Next layer

The next layer is selected by version; when the field is Auto the builder writes the value of the protocol stacked above.

ValueProtocolNote
1 (0x01)hsrpv2re-decodes this layer

Sample templates

  • hsrpv1 — templates/protocols/fhrp/hsrpv1.wpg.yaml