例:LLDPの設定
次に、インターフェイス ge-1/1/1 で LLDP を設定しますが、その他のインターフェイスでは LLDP を無効にし、自動的に有効になるすべての機能のデフォルト値を明示的に設定し、LLDP 設定通知間隔に 30 秒、物理トポロジ トラップ間隔に 30 秒の値を設定する例を示します。
[edit]
protocols {
lldp {
advertisement-interval 30;
hold-multiplier 4;
interface all {
disable;
}
interface ge-1/1/1;
lldp-configuration-notification-interval 30;
ptopo-configuration-maximum-hold-time 300;
ptopo-configuration-trap-interval 30;
transmit-delay 2;
}
}
LLDPの動作を検証するには、いくつかのshowコマンドを使用します。
show lldp <detail>show lldp neighbors interface-nameshow lldp statistics interface-nameshow lldp local-informationshow lldp remote-global-statisitics
LLDPネイバー情報または統計情報は、グローバルに、またはインターフェイス上でクリアできます。
clear lldp neighbors interface-nameclear lldp statistics interface-name
show lldp detailコマンドでLLDPに関する基本情報を表示できます。
user@host> show lldp detail
LLDP : Enabled
Advertisement interval : 30 Second(s)
Transmit delay : 2 Second(s)
Hold timer : 4 Second(s)
Notification interval : 30 Second(s)
Config Trap Interval : 300 Second(s)
Connection Hold timer : 60 Second(s)
Interface LLDP Neighbor count
ge-1/1/1 Enabled 0
LLDP basic TLVs supported:
Chassis identifier, Port identifier, Port description, System name, System description, System capabilities, Management address.
LLDP 802 TLVs supported:
Link aggregation, Maximum frame size, MAC/PHY Configuration/Status, Port VLAN ID, Port VLAN name.
これらのコマンドの出力の詳細については、 CLI エクスプローラーを参照してください。