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

CDP (cdp)

下位レイヤからの到達

下位レイヤ判別フィールド値
snappid8192 (0x2000)

フィールド

フィールド型既定値Auto説明
versionuint(8)2CDP プロトコルバージョン (2)。
ttluint(8)180このアドバタイズの有効時間 (秒)。
checksumuint(16)ヘッダとそれ以降すべてに対するインターネットチェックサムCDP ヘッダと TLV に対するインターネットチェックサム (自動)。
tlvstlv — PDU の残りすべてCDP TLV 群 (16 ビット型、ヘッダを含む 16 ビット長)。

tlvs

  • タイプ 16 ビット、長さ 16 ビット。
  • 長さはタイプと長さのフィールドも含みます。
  • 未知のタイプは値をオクテット列のまま保持します。
タイプ値名前値のフィールド説明
1 (0x0001)device_id
2 (0x0002)addresses
3 (0x0003)port_id
4 (0x0004)capabilities
5 (0x0005)software_version
6 (0x0006)platform
7 (0x0007)ip_prefix
10 (0x000a)native_vlan
11 (0x000b)duplex

サンプルテンプレート

  • cdp — templates/protocols/l2/cdp.wpg.yaml