HSRPv2 (hsrpv2)
- Layer: Application and control
- Header: variable length
- Notes: Redundancy protocols (FHRP)
Reached from
| Lower layer | Selector | Value |
|---|---|---|
udp | dst_port / src_port | 1985 (0x07c1) |
udp | dst_port / src_port | 2029 (0x07ed) |
hsrp | version | 1 (0x01) (re-decodes this layer) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
tlvs | tlv — rest of the PDU | 1 items | HSRPv2 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.
| Type | Name | Value fields | Description |
|---|---|---|---|
| 1 (0x01) | group_state | version, op_code, state, ip_version, group, identifier, priority, hello_time, hold_time, virtual_ip | |
| 2 (0x02) | interface_state | active_groups, passive_groups | |
| 3 (0x03) | text_auth | auth_data | |
| 4 (0x04) | md5_auth |
tlvs › group_state
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
version | uint(8) | 2 | ||
op_code | uint(8) | 0 | ||
state | uint(8) | 6 | ||
ip_version | uint(8) | 4 | ||
group | uint(16) | 0 | ||
identifier | mac | 02:00:00:00:00:01 | ||
priority | uint(32) | 100 | ||
hello_time | uint(32) | 3000 | ||
hold_time | uint(32) | 10000 | ||
virtual_ip | bytes(16) | c0 00 02 fe 00 00 00 00 00 00 00 00 00 00 00 00 |
tlvs › interface_state
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
active_groups | uint(16) | 1 | ||
passive_groups | uint(16) | 0 |
tlvs › text_auth
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
auth_data | bytes(8) | 63 69 73 63 6f 00 00 00 |
Sample templates
- hsrpv2 —
templates/protocols/fhrp/hsrpv2.wpg.yaml