Dell Networking SONiC: リンク レイヤー検出プロトコル

Riepilogo: この記事では、Dell Networking SONiCでのリンク レイヤー検出プロトコル(LLDP)と構成について説明します。この文書では、Dell SONiC 4.1を実行しているスイッチを使用します。

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

 
必要条件
標準インターフェイスの命名を使用して、概念を示しています。Dell Networking Sシリーズ202172記事を参照してください。基本的なインターフェイス構成 - インターフェイスの命名に関する詳細については、SONiC 4.0を参照してください。


索引

導入
構成構文 
    LLDPを有効または無効にします。
    LLDP送信
の構成LLDP受信
の構成LLDPの送信と受信を有効にします。       
    LLDPが管理アドレスとシステム名と説明を送信できるようにします。
確認
 

概要

リンク レイヤー検出プロトコル(LLDP)を使用すると、スイッチは主要な機能と物理的な説明をアドバタイズできます。LLDPはIEEE 802.1ABで定義されています。この情報は、システム トポロジーを識別し、LAN上の不正な構成を検出するのに役立ちます。 

  • LLDPは一方向プロトコルです。リクエストシーケンスまたは応答シーケンスはありません。送信機能を実装しているステーションは情報をアドバタイズし、受信機能を実装しているステーションは情報を受信して処理します。
  • 送受信機能は、各スイッチ ポートで個別に有効または無効にすることができます。 
  • LLDPは、ベンダーに依存しない検出プロトコルです。 
  • スイッチは、LLDPプロトコル データ ユニット(PDU)を受信し、定期的に送信します。デフォルトの転送間隔は30秒です。
  • ネイバーから受信したLLDP PDU情報は、TTL(Time to Live)と呼ばれる特定の時間が経過すると期限切れになります。デフォルトのTTL値は120秒です。
  • スパニング ツリーでブロックされたポートにより、LLDP PDUが許可されます。

構成構文

メモ: LLDP構成を変更した後、LLDPテーブルはTTL(120秒)で更新されます。

LLDPを有効または無効にします。  

Enable LLDP Globally
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# lldp enable
DELLSONiC(config)# end

Disable LLDP Globally 
DELLSONiC# configure  
DELLSONiC(config)# no lldp enable 
DELLSONiC(config)# end

Enable LLDP on a single interface
DELLSONiC# configure 
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# lldp enable
DELLSONiC(config-if-EthX/X)# end

Disable LLDP on a single interface 
DELLSONiC# configure 
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# no lldp enable 
DELLSONiC(config-if-EthX/X)# end
 

LLDP送信の構成

これらのコマンドを実行すると、LLDPの受信が無効になります。
Enable LLDP Transmit Globally
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# lldp transmit
DELLSONiC(config)# end

Enable LLDP Transmit on a single interface
DELLSONiC# configure 
DELLSONiC(config)# interface Eth slot/port[/subport] 
DELLSONiC(config-if-EthX/X)# lldp transmit
DELLSONiC(config-if-EthX/X)# end


Enable LLDP Transmit and Receive (Click here) 
 

LLDP受信の構成

これらのコマンドを実行すると、LLDP送信が無効になります。  
Enable LLDP Receive Globally 
admin@DELLSONiC:~$ sonic-cli 
DELLSONiC# configure 
DELLSONiC(config)# lldp receive
DELLSONiC(config)# end 

Enable LLDP Receive on a single interface
DELLSONiC# configure  
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# lldp receive
DELLSONiC(config-if-EthX/X)# end

Enable LLDP Transmit and Receive (Click here)  
 

LLDPの送信と受信を有効にします。

デフォルトでは、LLDPの送受信はデフォルトで有効になっています。
LLDP送信が構成されている場合、LLDP受信は非アクティブになります。
LLDP受信が構成されている場合、LLDP送信は非アクティブになります。
両方をアクティブにするには、LLDP受信とLLDP送信を削除します。
Enable LLDP Transmit and Receive Globally 
admin@DELLSONiC:~$ sonic-cli 
DELLSONiC# configure 
DELLSONiC(config)# no lldp receive
DELLSONiC(config)# no lldp transmit
DELLSONiC(config)# end 

Enable LLDP Transmit and Receive on a single interface
DELLSONiC# configure  
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# no lldp receive
DELLSONiC(config-if-EthX/X)# no lldp transmit
DELLSONiC(config-if-EthX/X)# end
 

LLDPが管理アドレスとシステム名と説明を送信できるようにします。

デフォルトでは、LLDPはシステム名システム説明をアドバタイズします。
LLDPで管理アドレスをアドバタイズするには、lldp tlv-select管理アドレスを手動で設定する必要があります。  
Use bellow configuration to enable system-name, system-description and management-address
DELLSONiC# configure
DELLSONiC(config)# lldp system-name 
DELLSONiC(config)# lldp system-description 
DELLSONiC(config)# lldp tlv-select management-address
DELLSONiC(config)#end

Disable system-name, system-description and management-address
DELLSONiC# configure
DELLSONiC(config)# no lldp system-name
DELLSONiC(config)# no lldp system-description
DELLSONiC(config)# no lldp tlv-select management-address
DELLSONiC(config)#end

You have an option to manually specify the IPv4/IPv6 address of management address manually
DELLSONiC# configure
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-Eth1/1)# lldp tlv-set management-address  
DELLSONiC(config-if-Eth1/1)# end *Applying this command will make Switch to send LLDP in the specific interface with configured IPV4/IPV6 address, rather than management port IP address. To disable use DELLSONiC# configure DELLSONiC(config)# interface Eth slot/port[/subport] DELLSONiC(config-if-Eth1/1)# lldp tlv-set management-address DELLSONiC(config-if-Eth1/1)# end
 

検証

Configuration 構文
DELLSONiC# show lldpテーブル すべてのLLDPネイバーの夏を示します。
DELLSONiC# show lldp neighbor すべてのLLDPネイバーの詳細を表示します。
DELLSONiC# show lldp neighbor Eth slot/port[/subport] 特定のインターフェイスでLLDPネイバーの詳細を表示します。
DELLSONiC# show lldp statistics すべてのLLDPネイバーのLLDP統計情報を表示します。
DELLSONiC# show lldp statistics Eth slot/port[/subport] 特定のインターフェイスでLLDP統計情報を表示します。

サンプル出力
DELLSONiC# show lldp table
------------------------------------------------------------------------------------------------------
LocalPort           RemoteDevice        RemotePortID        Capability          RemotePortDescr
-------------------------------------------------------------------------------------------------------
Eth1/1              DELL-EDGE-sonic               Eth1/1              R                   Ethernet0
DELLSONiC# show lldp neighbor Eth 1/1
-----------------------------------------------------------
LLDP Neighbors
-----------------------------------------------------------
Interface:   Eth1/1,via: LLDP
  Chassis:
    ChassisID:    XXXXXXXXXXXXXXXXXXXXXXXX
    SysName:      DELL-EDGE-sonic
    SysDescr:     DELL-CORE
    TTL:          120
    MgmtIP:       30.0.0.1
    Capability:   ROUTER, ON
  Port
    PortID:       Eth1/1
    PortDescr:    Ethernet0
  LLDP-MED
    Device Type:  Network Connectivity Device
    Capability:   Capabilities, yes
    Capability:   Ext_mdi_power_pd, yes
    Capability:   Inventory, yes
    Capability:   Network_policy, yes
    Inventory
      Hardware Rev:  XXXXXXXXXXXXXXXXXXXXXXXX
      Software Rev:  XXXXXXXXXXXXXXXXXXXXXXXX
      Firmware Rev:  XXXXXXXXXXXXXXXXXXXXXXXX
      Serial Number:
DELLSONiC# show lldp statistics Eth 1/1
LLDP Statistics
---------------------------------
Interface: Eth1/1
    Transmitted      : 60
    Received         : 45
    Discarded        : 0
    Unrecognized TLV : 0
    Ageout           : 1
---------------------------------

Prodotti interessati

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON , PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ON ...
Proprietà dell'articolo
Numero articolo: 000218154
Tipo di articolo: How To
Ultima modifica: 16 ott 2023
Versione:  4
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.