LLDP 구성
계층 수준에서 문 및 관련 매개 변수를 lldp 포함하여 LLDP를 구성합니다 [edit protocols] . LLDP 명령문의 전체 세트는 다음과 같습니다.
lldp { advertisement-interval seconds; (disable | enable); hold-multiplier number; chassis-id { chassis-id-type (chassis-component | interface-alias | interface-name | locally-assigned | mac-address | network-address | port-component); chassis-id-value chassis-id-value; } interface (all | [interface-name]) { dest-mac-type; (disable | enable); power-negotiation <(disable | enable)>; tlv-filter; tlv-select; trap-notification (disable | enable); } dest-mac-type destination-mac-address; lldp-configuration-notification-interval seconds; lldp-tx-fast-init; management-address ip-management-address; | management-interface interface-name; mau-type; neighbour-port-info-display (port-description | port-id); port-description-type (interface-alias | interface-description); port-id-subtype (interface-name | locally-assigned); ptopo-configuration-maximum-hold-time seconds; ptopo-configuration-trap-interval seconds; tlv-filter; tlv-select; traceoptions { file filename <files number> <size maximum-file-size> <world-readable | no-world-readable>; flag flag <disable>; } transmit-delay seconds; vlan-name-tlv-option (name | vlan-id); }
다음 명령문의 기본값은 다음과 같습니다.
-
advertisement-interval- 기본값은 30 초입니다. 허용 범위는 5초에서 32768 초까지 입니다. -
chassis-id-type- 기본값은 MAC 주소입니다. -
chassis-id-value- 기본값은 system-mac입니다. -
hold-multiplier- 기본값은 4입니다 . 허용 범위는 2에서 10까지 입니다. -
ptopo-configuration-maximum-hold-time- 기본값은 300 초입니다. 허용 범위는 1초에서 2147483647초입니다 . -
transmit-delay- 기본값은 2 초입니다. 허용 범위는 1초에서 8192 초입니다 .
다음 명령문을 명시적으로 구성해야 합니다.
-
lldp-configuration-notification-interval—허용 가능한 범위는 5초에서 3600 초입니다 . 기본값은 5입니다. -
ptopo-configuration-trap-interval- 허용 가능한 범위는 0초에서 3600 초까지 입니다. 기본값은 0입니다.
기본적으로 LLDP는 비활성화되어 있으며 사용자는 LLDP 서비스를 사용하려면 이를 구성 [set protocols lldp interface (all | interface-name)] 해야 합니다. LLDP가 모든 인터페이스에서 활성화된 경우, 특정 인터페이스에서 LLDP를 비활성화할 수 있습니다.
논리 interface-name 적 인터페이스(단위)가 아니라 물리적 인터페이스(예: ge-1/0/0)여야 합니다.
Junos OS 릴리스 19.4R2부터는 중복 이더넷(RETH) 인터페이스에서 LLDP를 구성할 수 있습니다. 이 명령을 사용하여 set protocol lldp interface <reth-interface> reth 인터페이스에서 LLDP를 구성할 수 있습니다.
Junos OS 릴리스 22.1R1부터는 대체 LLDP 대상 MAC 주소를 구성할 수 있습니다. 구성이 제공되지 않은 경우, 패킷은 가장 가까운 브리지 MAC 주소(01:80:c2:00:00:0e)로 전송됩니다. 명령문을 사용하여 set protocols lldp dest-mac-type <mac-type> 모든 인터페이스에서 전송되는 패킷을 구성합니다. 또한 특정 인터페이스에서 전송된 패킷에 대해 문을 set protocols lldp interface <intf-name> dest-mac-type <mac-type> 사용합니다.
-
모든 인터페이스에서 LLDP를 구성하려면:
[edit protocols lldp] user@switch# set interface all
-
특정 인터페이스에서 LLDP를 구성하려면:
[edit protocols lldp] user@switch# set interface interface-name
LLDP를 비활성화하려면 다음 옵션을 포함합니다.disable
-
모든 인터페이스에서 LLDP를 비활성화하려면:
[edit protocols lldp] user@switch# set interface all disable
-
특정 인터페이스에서 LLDP를 비활성화하려면:
[edit protocols lldp] user@switch# set interface interface-name disable
광고 간격은 LLDP 인터페이스가 LLDP 광고 프레임을 전송하는 빈도를 결정합니다. 기본값은 30 초입니다. 허용 범위는 5초에서 32768 초까지입니다 . 계층 수준에서 명령문을 포함하여 advertisement-interval 이 매개 변수를 조정합니다.[edit protocols lldp]
보류 승수는 광고 간격에 적용할 승수를 결정합니다. 결과값 (초)은 폐기되기 전에 학습된 LLDP 정보를 캐시하는 데 사용됩니다. 기본값은 4입니다 . 기본 광고 간격 값 30 초와 함께 사용하면 기본 캐시 수명이 120 초가 됩니다. 보류 배수의 허용 범위는 2에서 10까지입니다 . 계층 수준에서 명령문을 포함하여 hold-multiplier 이 매개 변수를 조정합니다.[edit protocols lldp]
전송 지연은 임의의 두 연속된 LLDP 광고 프레임 사이의 지연을 결정합니다. 기본값은 2 초입니다. 허용 범위는 1초에서 8192 초입니다 . 계층 수준에서 명령문을 포함하여 transmit-delay 이 매개 변수를 조정합니다.[edit protocols lldp]
물리적 토폴로지 구성의 최대 유지 시간은 에이전트 디바이스가 물리적 토폴로지 데이터베이스 항목을 유지하는 시간 간격을 결정합니다. 기본값은 300 초입니다. 허용 범위는 1초에서 2147483647 초입니다 . 계층 수준에서 명령문을 포함하여 ptopo-configuration-maximum-hold-time 이 매개 변수를 조정합니다.[edit protocols lldp]
LLDP 구성 알림 간격은 LLDP 정보의 데이터베이스에서 변경 사항이 발생할 때 SNMP 마스터 에이전트로 트랩 통지를 보내는 기간을 결정합니다. 허용 범위는 5초에서 3600 초입니다 . 계층 수준에서 명령문을 포함하여 lldp-configuration-notification-interval 이 매개 변수를 조정합니다.[edit protocols lldp]
물리적 토폴로지 구성 트랩 간격은 글로벌 물리적 토폴로지 통계가 변경될 때 SNMP 마스터 에이전트로 트랩 알림을 보내는 기간을 결정합니다. 이 기능은 기본적으로 비활성화되어 있습니다. 허용 가능한 범위는 0(비활성화)에서 3,600 초까지입니다 . LLDP 에이전트는 이 간격의 값이 0보다 크고 트랩 간격 동안 lldp-configuration-notification-interval 변경 사항이 있는 경우 SNMP 마스터 에이전트로 트랩을 보냅니다. 계층 수준에서 명령문을 포함하여 ptopo-configuration-trap-interval 이 매개 변수를 조정합니다.[edit protocols lldp]
LLDP의 대상 MAC 주소를 지정할 수 있습니다. 옵션은 nearest-bridge, nearest-customer-bridge, 및 nearest-non-tpmr-bridge입니다.
기본적으로 디바이스의 관리 인터페이스는 LLDP PDU의 관리 주소 TLV에 사용됩니다. LLDP의 관리 주소 또는 관리 인터페이스를 구성할 수 있습니다.
관리 주소를 구성하는 경우, 해당 주소는 관리 주소 TLV로 전송됩니다. 관리 인터페이스를 구성하는 경우, 관리 인터페이스의 IP 주소가 TLV로 전송됩니다. 관리 인터페이스에 IP 주소가 없으면 디바이스 관리 인터페이스의 기본 IP 주소가 TLV로 전송됩니다. 디바이스의 관리 인터페이스에 IP 주소가 없으면 관리 인터페이스의 MAC 주소가 TLV로 전송됩니다.
기본적으로 LLDP는 TLV(포트 ID 유형, 길이 및 값)에 대한 인터페이스의 SNMP 인덱스를 생성합니다. 원격 LLDP 인접 라우터에서 문이 구성된 경우interface-name, 명령 출력에는 show lldp neighbors 인터페이스의 SNMP 인덱스가 아닌 필드에 Port ID 인터페이스 이름이 표시됩니다. 이 인덱스는 기본적으로 표시됩니다. 인터페이스의 SNMP 인덱스를 생성하는 기본 동작을 포트 ID TLV로 변경하는 경우, ] 계층 수준에서 [edit protocols lldp port-id-subtype문을 포함하여 locally-assigned 기본 동작을 다시 사용하도록 설정할 수 있습니다.
변경 내역 표
기능 지원은 사용 중인 플랫폼과 릴리스에 따라 결정됩니다. 기능 탐색기를 사용하여 플랫폼에서 기능이 지원되는지 확인합니다.
set protocol lldp interface <reth-interface> reth 인터페이스에서 LLDP를 구성할 수 있습니다.