例: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
LLDPに関する基本情報は、 show lldp detail コマンドで表示できます。
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エクスプローラを参照してください。