Dell Networking SONiC: 링크 계층 검색 프로토콜

Riepilogo: 이 문서에서는 Dell Networking SONiC의 LLDP(Link Layer Discovery Protocol) 및 구성에 대해 설명합니다. 이 문서에서는 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-Series에 202172 문서를 참조하십시오. 기본 인터페이스 구성 - 인터페이스 명명에 대한 자세한 내용을 보려면 SONiC 4.0


인덱스

소개
구성 구문 
    LLDP를 활성화하고 비활성화합니다. 
    LLDP 전송
구성LLDP 수신
구성LLDP 전송 및 수신을 활성화합니다.       
    LLDP에서 관리 주소와 시스템 이름 및 설명을 보낼 수 있습니다.
확인
 

소개

LLDP(Link Layer Discovery Protocol)를 사용하면 스위치가 주요 기능과 물리적 설명을 알릴 수 있습니다. LLDP는 IEEE 802.1AB에 정의되어 있습니다. 이 정보는 시스템 토폴로지 식별 및 LAN에서 잘못된 구성을 감지하는 데 사용할 수 있습니다. 

  • LLDP는 단방향 프로토콜입니다. 요청 또는 응답 시퀀스가 없습니다. 전송 기능을 구현하는 스테이션은 정보를 알리고 수신 기능을 구현하는 스테이션은 정보를 수신하고 처리합니다.
  • 전송 및 수신 기능은 각 스위치 포트에서 별도로 활성화 또는 비활성화할 수 있습니다. 
  • LLDP는 공급업체에 중립적인 검색 프로토콜입니다. 
  • 스위치는 LLDP PDU(Protocol Data Unit)를 수신하고 주기적으로 전송합니다. 기본 전송 간격은 30초입니다.
  • 인접에서 수신된 LLDP PDU 정보는 특정 시간(TTL)이라고 하는 시간이 지나면 만료됩니다. 기본 TTL 값은 120초입니다.
  • 스패닝 트리 차단 포트는 LLDP PDU를 허용합니다.

구성 구문

참고: LLDP 구성이 변경된 후 LLDP 테이블이 120초(TTL)로 업데이트됩니다.

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 management-address를 수동으로 구성해야 합니다.  
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
 

확인

구성 구문
DELLSONiC# show lldp table 모든 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.