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)

下位レイヤからの到達

下位レイヤ判別フィールド値
udpdst_port / src_port1985 (0x07c1)

フィールド

フィールド型既定値Auto説明
versionuint(8)0HSRP バージョン (HSRPv1 は 0)。
op_codeenum(8)0 (hello)HSRP オペレーション (0 = Hello、1 = Coup、2 = Resign、3 = Advertise)。
stateenum(8)16 (active)送信者の状態 (1 = Learn、2 = Listen、4 = Speak、8 = Standby、16 = Active)。
hello_timeuint(8)3Hello 送信間隔 (秒)。
hold_timeuint(8)10Hello の有効時間 (秒)。
priorityuint(8)100グループ内のルータ優先度。
groupuint(8)0スタンバイグループ番号。
reserveduint(8)0
auth_databytes(8)63 69 73 63 6f 00 00 00平文認証パスワード (8 オクテット、既定値 “cisco”)。
virtual_ipipv4192.0.2.254グループの仮想 IPv4 アドレス。

op_code

値名前
0 (0x00)hello
1 (0x01)coup
2 (0x02)resign
3 (0x03)advertise

state

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

次レイヤ

次レイヤは version で判別します。このフィールドが Auto のときは、上に積んだプロトコルの値を書き込みます。

値プロトコル備考
1 (0x01)hsrpv2このレイヤを読み直す

サンプルテンプレート

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