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

HSRPv2 (hsrpv2)

Reached from

Lower layerSelectorValue
udpdst_port / src_port1985 (0x07c1)
udpdst_port / src_port2029 (0x07ed)
hsrpversion1 (0x01) (re-decodes this layer)

Fields

FieldTypeDefaultAutoDescription
tlvstlv — rest of the PDU1 itemsHSRPv2 TLVs (Group State, Interface State, Text / MD5 Authentication; 8-bit type and length).

tlvs

  • Type 8 bits, length 8 bits.
  • The length counts the value only.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
1 (0x01)group_stateversion, op_code, state, ip_version, group, identifier, priority, hello_time, hold_time, virtual_ip
2 (0x02)interface_stateactive_groups, passive_groups
3 (0x03)text_authauth_data
4 (0x04)md5_auth

tlvs › group_state

FieldTypeDefaultAutoDescription
versionuint(8)2
op_codeuint(8)0
stateuint(8)6
ip_versionuint(8)4
groupuint(16)0
identifiermac02:00:00:00:00:01
priorityuint(32)100
hello_timeuint(32)3000
hold_timeuint(32)10000
virtual_ipbytes(16)c0 00 02 fe 00 00 00 00 00 00 00 00 00 00 00 00

tlvs › interface_state

FieldTypeDefaultAutoDescription
active_groupsuint(16)1
passive_groupsuint(16)0

tlvs › text_auth

FieldTypeDefaultAutoDescription
auth_databytes(8)63 69 73 63 6f 00 00 00

Sample templates

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