06-LLDP命令
本章節下載: 06-LLDP命令 (383.84 KB)
目 錄
1.1.1 display lldp local-information
1.1.2 display lldp neighbor-information
1.1.7 lldp check-change-interval
1.1.13 lldp ignore-pvid-inconsistency
1.1.14 lldp management-address
1.1.15 lldp management-address-format string
1.1.18 lldp notification med-topology-change enable
1.1.19 lldp notification remote-change enable
1.1.21 lldp timer fast-interval
1.1.22 lldp timer notification-interval
1.1.23 lldp timer reinit-delay
自定義Context不支持LLDP。
display lldp local-information命令用來顯示LLDP本地信息,這些信息將根據端口TLV開啟情況被組織成TLV發送給鄰居設備。
【命令】
display lldp local-information [ global | interface interface-type interface-number ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
global:顯示全局LLDP本地信息。
interface interface-type interface-number:顯示指定接口上的LLDP本地信息,interface-type interface-number表示接口類型和接口編號。
【使用指導】
如果未指定任何參數,將顯示所有LLDP本地信息,包括全局LLDP信息以及所有開啟了LLDP功能且狀態為up的接口上的LLDP信息。
【舉例】
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 00e0-fc00-5600
System name : Sysname
System description : H3C Comware Platform Software
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Service Bridge
MED information:
Device class : Connectivity device
MED inventory information of master board:
HardwareRev : REV.A
FirmwareRev : 109
SoftwareRev : 5.20 Alpha 2101
SerialNum : NONE
Manufacturer name : H3C
Model name : H3C Comware
Asset tracking identifier : Unknown
LLDP local-information of port 52[GigabitEthernet1/0/3]:
Port ID type : Interface name
Port ID : GigabitEthernet1/0/3
Port description : GigabitEthernet1/0/3 Interface
LLDP agent nearest-bridge management address:
Management address type : IPv4
Management address : 192.168.80.60
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
LLDP agent nearest-nontpmr management address:
Management address type : IPv4
Management address : 192.168.80.61
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
LLDP agent nearest-customer management address:
Management address type : IPv4
Management address : 192.168.80.62
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 12
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : Yes
VLAN name of VLAN 12: VLAN 0012
Management VLAN ID : 5
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : Yes
Power pairs : Signal
Port power classification : Class 0
Power type : Type 2 PSE
Power source : Primary
Power priority : High
PD requested power value : 21.1 w
PSE allocated power value : 15.3 w
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 52
Congestion notification TLV info:
Dot1p CNPV Ready
0 Yes Yes
1 No No
2 No No
3 No No
4 Yes No
5 Yes Yes
6 No No
7 No No
Maximum frame size : 1500
Transmit Tw : 100 us
Receive Tw : 90 us
Fallback Tw : 90 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
Location format : Civic Address LCI
Location information :
What(1) Country(CN)
CA type CA value
0 Chinese
1 Zhejiang
2 Hangzhou
MED port information:
Media policy type : Unknown
Unknown policy : Yes
VLAN tagged : No
Media policy VLANID : 0
Media policy L2 priority : 0
Media policy DSCP : 0
PoE PSE power source : Primary
Port PSE priority : Critical
Port available power value : 30.0 w
表1-1 display lldp local-information命令顯示信息描述表
字段 |
描述 |
Global LLDP local-information |
本設備的全局LLDP本地信息 |
Chassis ID |
Chassis ID值,為本設備的橋MAC地址 |
System name |
係統名稱 |
System description |
係統描述 |
System capabilities supported |
係統所支持的功能: · Bridge:表示支持交換功能 · Router:表示支持路由功能 · WlanAccessPoint:表示支持無線接入點功能 · Repeater:表示支持信號中繼功能 · Telephone:表示支持電話功能 · DocsisCableDevice:表示支持電纜設備功能 · StationOnly:表示支持隻作站點功能 · Customer Bridge:表示支持客戶橋功能 · Service Bridge:表示支持服務橋功能 · TPMR:表示支持雙端口MAC中繼功能 · Other:表示支持不在上述列表的其它功能 |
System capabilities enabled |
係統已開啟的功能: · Bridge:表示交換功能已開啟 · Router:表示路由功能已開啟 · WlanAccessPoint:表示無線接入點功能已開啟 · Repeater:表示支持信號中繼功能 · Telephone:表示電話功能已開啟 · DocsisCableDevice:表示電纜設備功能已開啟 · StationOnly:表示隻作站點功能已開啟 · Customer Bridge:表示客戶橋功能已開啟 · Service Bridge:表示服務橋功能已開啟 · TPMR:表示雙端口MAC中繼功能已開啟 · Other:表示不在上述列表的其它功能已開啟 |
MED information |
MED設備相關信息 |
Device class |
MED設備類型: · Connectivity device:表示網絡設備 · Class I:表示一般終端設備,即所有需要LLDP發現服務的終端設備 · Class II:表示媒體終端設備,即具備媒體能力的終端設備,其能力包含了一般終端設備的能力。該類設備支持媒體流 · Class III:表示通訊終端設備,即直接支持目標用戶IP通訊係統的終端設備,其能力包含了一般終端設備和媒體終端設備的所有能力。該類設備直接被目標用戶所使用 |
MED inventory information of master board |
主控板MED資產信息 |
HardwareRev |
產品的硬件版本 |
FirmwareRev |
產品的固件版本 |
SoftwareRev |
產品的軟件版本 |
SerialNum |
序列號 |
Manufacturer name |
製造廠商 |
Model name |
模塊名稱 |
Asset tracking identifier |
資產跟蹤ID |
LLDP local-information of port 1 |
端口1上LLDP本地信息 |
Port ID type |
端口ID類型: · MAC address:表示MAC地址 · Interface name:表示接口名稱 |
Port ID |
端口ID值,根據本設備的Port ID type取相應類型的值 |
Port description |
端口描述 |
LLDP agent nearest-bridge management address |
LLDP最近橋代理的管理地址 |
LLDP agent nearest-customer management address |
LLDP最近客戶橋代理的管理地址 |
LLDP agent nearest-nontpmr management address |
LLDP最近非TPMR橋代理的管理地址 |
Management address type |
管理地址類型 |
Management address |
管理地址 |
Management address interface type |
管理地址所在接口的編碼方式 |
Management address interface ID |
管理地址接口索引 |
Management address OID |
管理地址對象標識符 |
Port VLAN ID(PVID) |
端口VLAN ID |
Port and protocol VLAN ID(PPVID) |
端口協議VLAN ID |
Port and protocol VLAN supported |
是否支持端口協議VLAN |
Port and protocol VLAN enabled |
是否已開啟端口協議VLAN |
VLAN name of VLAN 12 |
VLAN 12的名稱 |
Management VLAN ID |
管理VLAN ID |
Auto-negotiation supported |
端口是否支持自協商 |
Auto-negotiation enabled |
端口是否已開啟自協商 |
OperMau |
端口自適應的速率和雙工狀態 |
Power port class |
PoE類型: · PSE(Power Sourcing Equipment,供電設備) · PD(Powered Device,受電設備) |
PSE power supported |
是否支持PSE供電 |
PSE power enabled |
是否已開啟PSE供電 |
PSE pairs control ability |
供電方式是否可控 |
Power pairs |
PoE端口的遠程供電模式: · Signal:表示信號線供電模式 · Spare:表示空閑線供電模式 |
Port power classification |
PD的端口控製級別: · Class 0:表示級別0 · Class 1:表示級別1 · Class 2:表示級別2 · Class 3:表示級別3 · Class 4:表示級別4 |
Power type |
供電類型: · Type 1 PD:表示類型1 PD · Type 2 PD:表示類型2 PD · Type 1 PSE:表示類型1 PSE · Type 2 PSE:表示類型2 PSE |
Power source |
功率來源(功率來源根據供電類型為PD類型或PSE類型,取值不同): PSE · Unknown:表示采用的電源類型未知 · Primary:表示采用主用電源作為電源 · Backup:表示采用備用電源作為電源 · Reserved:保留 PD · Unknown:表示采用的電源類型未知 · PSE:表示采用PSE作為電源 · Local:表示采用本地電源作為電源 · PSE and local:表示采用PSE和本地電源作為電源 |
Power priority |
功率優先級: · Unknown:表示優先級未知 · Critical:表示優先級為1級 · High:表示優先級為2級 · Low:表示優先級為3級 |
PD requested power value |
PD請求功率值,單位為瓦特 |
PSE allocated power value |
PSE分配功率值,單位為瓦特 |
Link aggregation supported |
端口是否支持鏈路聚合 |
Link aggregation enabled |
端口是否已開啟鏈路聚合 |
Aggregation port ID |
聚合組中該成員端口的編號,未開啟鏈路聚合功能時為0 |
Dot1p |
802.1p優先級 |
CNPV |
802.1p優先級是否被配置為CNPV(Congestion Notification Priority Value,擁塞通知優先級值),表明是否加入了對應CNPV域: · Yes:表示802.1p優先級被配置為CNPV · No:表示802.1p優先級未被配置為CNPV |
Ready |
表明設備接口是否已經關閉了802.1p優先級與隔離優先級的映射: · Yes:表示關閉優先級映射 · No:表示未關閉優先級映射 |
Maximum frame size |
端口支持的最大幀長度 |
Media policy type |
媒體策略類型: · Unknown:表示類型未知 · Voice:表示語音 · VoiceSignaling:表示語音信號 · GuestVoice:表示訪客語音 · GuestVoiceSignaling:表示訪客語音信號 · SoftPhoneVoice:表示軟體電話語音 · Videoconferencing:表示視頻會議 · StreamingVideo:表示流視頻 · VideoSignaling:表示視頻信號 |
Unknown policy |
媒體策略類型是否未知: · Yes:表示策略類型未知 · No:表示策略類型已知 |
VLAN tagged |
媒體VLAN是否帶Tag |
Media policy VLANID |
媒體VLAN的VLAN ID |
Media policy L2 priority |
二層優先級 |
Media policy DSCP |
DSCP的值 |
Location format |
位置信息格式: · Invalid:表示無效位置數據類型 · Coordinate-based LCI:表示基於坐標的位置信息 · Civic Address LCI:表示普通地址信息 · ECS ELIN:表示緊急電話號碼 |
Location information |
位置信息 |
PoE PSE power source |
PSE所采用的電源類型: · Unknown:表示采用的電源類型未知 · Primary:表示采用主用電源作為電源 · Backup:表示采用備用電源作為電源 |
PoE PD power source |
PD所采用的電源類型: · Unknown:表示采用的電源類型未知 · PSE:表示采用PSE作為電源 · Local:表示采用本地電源作為電源 · PSE and local:表示采用PSE和本地電源作為電源 |
Port PSE priority |
PSE上端口的供電優先級: · Unknown:表示優先級未知 · Critical:表示優先級為1級 · High:表示優先級為2級 · Low:表示優先級為3級 |
Port PD priority |
PD上端口的受電優先級: · Unknown:表示優先級未知 · Critical:表示優先級為1級 · High:表示優先級為2級 · Low:表示優先級為3級 |
Port available power value |
PSE上端口可提供的功率,或PD上端口所需的功率,單位為瓦特 |
Transmit Tw |
本端發送的等待時間,單位為微秒 |
Receive Tw |
本端向對端請求的等待時間,單位為微秒 |
Fallback Tw |
本端向對端請求的候選等待時間,單位為微秒 |
Echo Transmit Tw |
收到的對端發送的等待時間,單位為微秒 |
Echo Receive Tw |
收到的對端請求的等待時間,單位為微秒 |
display lldp neighbor-information命令用來顯示由鄰居設備發來的LLDP信息,這些信息是由鄰居設備組織成TLV並發送給本設備的。
【命令】
display lldp neighbor-information [ [ [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] [ verbose ] ] | list [ system-name system-name ] ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定接口收到的由鄰居設備發來的LLDP信息,interface-type interface-number表示接口類型和接口編號。如果未指定該參數,將顯示所有接口收到的由鄰居設備發來的LLDP信息。
agent:顯示指定類型LLDP代理收到的由鄰居設備發來的LLDP信息。如果未指定該參數,將顯示所有類型LLDP代理收到的由鄰居設備發來的LLDP信息。
nearest-bridge:表示最近橋代理。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
verbose:顯示由鄰居設備發來的LLDP詳細信息。如果未指定該參數,將顯示由鄰居設備發來的LLDP概要信息。
list:按列表顯示由鄰居設備發來的LLDP信息。
system-name system-name:按列表顯示由指定鄰居設備發來的LLDP信息。system-name表示鄰居設備的係統名稱,為1~255個字符的字符串。如果未指定該參數,將按列表顯示由所有鄰居設備發來的LLDP信息。
【舉例】
# 顯示所有接口最近橋代理收到的由鄰居設備發來的LLDP詳細信息。
<Sysname> display lldp neighbor-information agent nearest-bridge verbose
LLDP neighbor-information of port 1[GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
LLDP Neighbor index : 1
Update time : 0 days, 0 hours, 1 minutes, 1 seconds
LLDP mac type : Nearest Bridge
Chassis type : MAC address
Chassis ID : 000f-0055-0002
Port ID type : Interface name
Port ID : GigabitEthernet1/0/1
Time to live : 121
Port description : GigabitEthernet1/0/1 Interface
System name : Sysname
System description : H3C Comware Platform Software
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Customer Bridge
Management address type : IPv4
Management address : 192.168.1.55
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 12
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : Yes
VLAN name of VLAN 12: VLAN 0012
Management VLAN ID : 5
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : Yes
Power pairs : Signal
Port power classification : Class 0
Power type : Type 2 PD
Power source : PSE and local
Power priority : High
PD requested power value : 21.1 w
PSE allocated power value : 15.3 w
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 52
Congestion notification TLV info:
Dot1p CNPV Ready
0 Yes Yes
1 No No
2 No No
3 No No
4 Yes No
5 Yes Yes
6 No No
7 No No
Maximum frame size : 1500
Transmit Tw : 100 us
Receive Tw : 90 us
Fallback Tw : 90 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
MED information:
Device class : Connectivity device
Media policy type : Unknown
Unknown policy : No
VLAN tagged : No
Media policy VLAN ID : 1000
Media policy L2 priority : 6
Media policy DSCP : 10
Location format : Civic Address LCI
Location information :
What(1) Country(CN)
CA type CA value
0 Chinese
1 Zhejiang
2 Hangzhou
MED port information:
Media policy type : Unknown
Unknown policy : No
VLAN tagged : No
Media policy VLANID : 1000
Media policy L2 priority : 6
Media policy DSCP : 10
PoE PSE power source : Primary
Port PSE priority : Low
Port available power value : 2.2 w
Unknown basic TLV:
TLV type : 23
TLV information : 0x00140014
Unknown organizationally-defined TLV:
TLV OUI : 00-12-bb
TLV subtype : 21
Index : 1
TLV information : 0x556e6b6e 6f776e
# 顯示所有接口所有類型LLDP代理收到的由鄰居設備發來的LLDP詳細信息。
<Sysname> display lldp neighbor-information verbose
LLDP neighbor-information of port 1[GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
LLDP Neighbor index : 1
Update time : 0 days, 0 hours, 1 minutes, 1 seconds
LLDP mac type : Nearest Bridge
Chassis type : MAC address
Chassis ID : 000f-0055-0002
Port ID type : Interface name
Port ID : GigabitEthernet1/0/1
Time to live : 121
Port description : GigabitEthernet1/0/1 Interface
System name : Sysname
System description : H3C Comware Platform Software
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Customer Bridge
Management address type : IPv4
Management address : 192.168.1.55
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 12
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : Yes
VLAN name of VLAN 12: VLAN 0012
Management VLAN ID : 5
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : Yes
Power pairs : Signal
Port power classification : Class 0
Power type : Type 2 PD
Power source : PSE and local
Power priority : High
PD requested power value : 21.1 w
PSE allocated power value : 15.3 w
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 52
Maximum frame size : 1500
Transmit Tw : 100 us
Receive Tw : 90 us
Fallback Tw : 90 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
Device class : Connectivity device
HardwareRev : Unknown
FirmwareRev : Unknown
SoftwareRev : Unknown
SerialNum : Unknown
Manufacturer name : Unknown
Model name : Unknown
Asset tracking identifier : Unknown
Location format : Civic Address LCI
Location information :
What(1) Country(CN)
CA type CA value
0 Chinese
1 Zhejiang
2 Hangzhou
MED port information:
Media policy type : Unknown
Unknown policy : No
VLAN tagged : No
Media policy VLANID : 1000
Media policy L2 priority : 6
Media policy DSCP : 10
PoE PSE power source : Primary
Port PSE priority : Low
Port available power value : 2.2 w
Unknown basic TLV:
TLV type : 23
TLV information : 0x00140014
Unknown organizationally-defined TLV:
TLV OUI : 00-12-bb
TLV subtype : 21
Index : 1
TLV information : 0x556e6b6e 6f776e
LLDP neighbor-information of port 1[GigabitEthernet1/0/1]:
LLDP agent nearest-nontpmr:
LLDP Neighbor index : 1
Update time : 0 days, 0 hours, 1 minutes, 1 seconds
Chassis type : MAC address
Chassis ID : 000f-0055-0002
Port ID type : Interface name
Port ID : GigabitEthernet1/0/1
Time to live : 121
Port description : GigabitEthernet1/0/1 Interface
System name : Sysname
System description : H3C Comware Platform Software
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Customer Bridge
Management address type : IPv4
Management address : 192.168.1.55
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 12
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : Yes
VLAN name of VLAN 12: VLAN 0012
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : Yes
Power pairs : Signal
Port power classification : Class 0
Power type : Type 2 PD
Power source : PSE and local
Power priority : High
PD requested power value : 21.1 w
PSE allocated power value : 15.3 w
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 52
Congestion notification TLV info:
Dot1p CNPV Ready
0 Yes Yes
1 No No
2 No No
3 No No
4 Yes No
5 Yes Yes
6 No No
7 No No
Maximum frame size : 1500
Transmit Tw : 100 us
Receive Tw : 90 us
Fallback Tw : 90 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
Device class : Connectivity device
HardwareRev : Unknown
FirmwareRev : Unknown
SoftwareRev : Unknown
SerialNum : Unknown
Manufacturer name : Unknown
Model name : Unknown
Asset tracking identifier : Unknown
Location format : Civic Address LCI
Location information :
What(1) Country(CN)
CA type CA value
0 Chinese
1 Zhejiang
2 Hangzhou
MED port information:
Media policy type : Unknown
Unknown policy : No
VLAN tagged : No
Media policy VLANID : 1000
Media policy L2 priority : 6
Media policy DSCP : 10
PoE PSE power source : Primary
Port PSE priority : Low
Port available power value: 2.2 w
Unknown basic TLV:
TLV type : 23
TLV information : 0x00140014
Unknown organizationally-defined TLV:
TLV OUI : 00-12-bb
TLV subtype : 21
Index : 1
TLV information : 0x556e6b6e 6f776e
# 顯示所有接口所有類型LLDP代理收到的由鄰居設備發來的LLDP概要信息。
<Sysname> display lldp neighbor-information
LLDP neighbor-information of port 52[GigabitEthernet1/0/3]:
LLDP agent nearest-bridge:
LLDP neighbor index : 3
LLDP mac type : Nearest Bridge
ChassisID/subtype : 0011-2233-4400/MAC address
PortID/subtype : 000c-29f5-c71f/MAC address
Capabilities : Bridge, Router, Customer Bridge
LLDP neighbor index : 6
LLDP mac type : Nearest Bridge
ChassisID/subtype : 0011-2233-4400/MAC address
PortID/subtype : 000c-29f5-c715/MAC address
Capabilities : None
LLDP neighbor-information of port 52[GigabitEthernet1/0/3]:
LLDP agent nearest-nontpmr:
LLDP neighbor index : 6
ChassisID/subtype : 0011-2233-4400/MAC address
PortID/subtype : 000c-29f5-c715/MAC address
Capabilities : None
# 按列表顯示類型LLDP代理所有鄰居設備發來的LLDP信息。
<Sysname> display lldp neighbor-information list
Chassis ID : * -- --Nearest nontpmr bridge neighbor
# -- --Nearest customer bridge neighbor
Default -- -- Nearest bridge neighbor
System Name Local Interface Chassis ID Port ID
System1 GE1/0/1 000f-e25d-ee91 GigabitEthernet1/0/5
System2 GE1/0/2 000f-e25d-ee92* GigabitEthernet1/0/6
System3 GE1/0/3 000f-e25d-ee93# GigabitEthernet1/0/7
表1-2 display lldp neighbor-information命令顯示信息描述表
字段 |
描述 |
LLDP agent nearest-bridge |
LLDP缺省代理,即最近橋代理 |
LLDP agent nearest-customer |
LLDP最近客戶橋代理 |
LLDP agent nearest-nontpmr |
LLDP最近非TPMR橋代理 |
LLDP neighbor-information of port 1 |
端口1上收到的LLDP鄰居信息 |
LLDP Neighbor index |
鄰居索引 |
Update time |
鄰居信息最新更新時間 |
LLDP mac type |
鄰居MAC地址類型: · Nearest brige:最近橋代理 · Nearest customer bridge:最近客戶橋代理 · Nearest non-tpmr bridge:最近非TPMR橋代理 |
Chassis type |
Chassis ID類型: · Chassis component:表示底架組件 · Interface alias:表示接口別名 · Port component:表示端口組件 · MAC address:表示MAC地址 · Network address(ipv4):表示網絡地址(括號裏表示地址類型) · Interface name:表示接口名稱 · Locally assigned:表示鄰居自定義 |
Chassis ID |
Chassis ID值,根據鄰居設備的Chassis type取相應類型的值 |
Port ID type |
端口ID類型: · Interface alias:表示接口別名 · Port component:表示端口組件 · MAC address:表示MAC地址 · Network Address(ipv4):表示網絡地址(括號裏表示地址類型) · Interface name:表示接口名稱 · Agent circuit ID:表示代理巡回標識 · Locally assigned:表示鄰居自定義 |
Port ID |
端口ID值,根據鄰居設備的Port ID type取相應類型的值 |
Time to live |
鄰居信息在本地的存活時間 |
Port description |
端口描述 |
System name |
係統名稱 |
System description |
係統描述 |
System capabilities supported |
係統所支持的功能: · Repeater:表示支持信號中繼功能 · Bridge:表示支持交換功能 · WlanAccessPoint:表示支持無線接入點功能 · Router:表示支持路由功能 · Telephone:表示支持電話功能 · DocsisCableDevice:表示支持電纜設備功能 · StationOnly:表示支持隻作站點功能 · Customer Bridge:表示支持客戶橋功能 · Service Bridge:表示支持服務橋功能 · TPMR:表示支持雙端口MAC中繼功能 · Other:表示支持不在上述列表的其它功能 |
System capabilities enabled |
係統已開啟的功能: · Repeater:表示信號中繼功能已開啟 · Bridge:表示交換功能已開啟 · WlanAccessPoint:表示無線接入點功能已開啟 · Router:表示路由功能已開啟 · Telephone:表示電話功能已開啟 · DocsisCableDevice:表示電纜設備功能已開啟 · StationOnly:表示隻作站點功能已開啟 · Customer Bridge:表示支持客戶橋功能 · Service Bridge:表示支持服務橋功能 · TPMR:表示支持雙端口MAC中繼功能 · Other:表示不在上述列表的其它功能已開啟 |
Management address type |
管理地址類型 |
Management address |
管理地址 |
Management address interface type |
管理地址接口類型 |
Management address interface ID |
管理地址接口索引 |
Management address OID |
管理地址對象標識符 |
Value of MBC |
支持的MBC狀態(暫不支持) |
Selected Field |
選擇域 |
Port VLAN ID |
端口VLAN ID |
Port and protocol VLAN ID(PPVID) |
端口協議VLAN ID |
Port and protocol VLAN supported |
是否支持端口協議VLAN |
Port and protocol VLAN enabled |
是否開啟端口協議VLAN |
VLAN name of VLAN 12 |
VLAN 12的名稱 |
Management VLAN ID |
管理VLAN ID |
Auto-negotiation supported |
端口是否支持自協商 |
Auto-negotiation enabled |
端口是否已開啟自協商 |
OperMau |
端口自適應的速率和雙工狀態 |
Power port class |
PoE類型: · PSE:表示供電設備 · PD:表示受電設備 |
PSE power supported |
是否支持PSE供電 |
PSE power enabled |
是否已開啟PSE供電 |
PSE pairs control ability |
供電方式是否可控 |
Power pairs |
PoE端口的遠程供電模式: · Signal:表示信號線供電模式 · Spare:表示空閑線供電模式 |
Port power classification |
PD的端口控製級別: · Class 0:表示級別0 · Class 1:表示級別1 · Class 2:表示級別2 · Class 3:表示級別3 · Class 4:表示級別4 |
Power type |
供電類型: · Type 1 PD:表示類型1 PD · Type 2 PD:表示類型2 PD · Type 1 PSE:表示類型1 PSE · Type 2 PSE:表示類型2 PSE |
Power source |
功率來源(功率來源根據供電類型為PD類型或PSE類型,取值不同): PSE · Unknown:表示采用的電源類型未知 · Primary:表示采用主用電源作為電源 · Backup:表示采用備用電源作為電源 · Reserved:保留 PD · Unknown:表示采用的電源類型未知 · PSE:表示采用PSE作為電源 · Local:表示采用本地電源作為電源 · PSE and local:表示采用PSE和本地電源作為電源 |
Power priority |
功率優先級: · Unknown:表示優先級未知 · Critical:表示優先級為1級 · High:表示優先級為2級 · Low:表示優先級為3級 |
PD requested power value |
PD請求功率值,單位為瓦特 |
PSE allocated power value |
PSE分配功率值,單位為瓦特 |
Link aggregation supported |
端口是否支持鏈路聚合 |
Link aggregation enabled |
端口是否已開啟鏈路聚合 |
Dot1p |
802.1p優先級 |
CNPV |
802.1p優先級是否被配置為CNPV,即是否匹配該優先級的報文具有QCN功能: · Yes:表示802.1p優先級被配置為CNPV · No:表示802.1p優先級未被配置為CNPV |
Ready |
表明設備接口是否已經關閉了802.1p優先級與隔離優先級的映射: · Yes:表示關閉優先級映射 · No:表示未關閉優先級映射 |
Maximum frame size |
端口支持的最大幀長度 |
MED information |
MED設備相關信息 |
Device class |
MED設備類型: · Connectivity device:表示網絡設備 · Class I:表示一般終端設備,即所有需要LLDP發現服務的終端設備 · Class II:表示媒體終端設備,即具備媒體能力的終端設備,其能力包含了一般終端設備的能力。該類設備支持媒體流 · Class III:表示通訊終端設備,即直接支持目標用戶IP通訊係統的終端設備,其能力包含了一般終端設備和媒體終端設備的所有能力。該類設備直接被目標用戶所使用 |
Media policy type |
媒體策略類型: · Unknown:表示類型未知 · Voice:表示語音 · VoiceSignaling:表示語音信號 · GuestVoice:表示訪客語音 · GuestVoiceSignaling:表示訪客語音信號 · SoftPhoneVoice:表示軟體電話語音 · Videoconferencing:表示視頻會議 · StreamingVideo:表示流視頻 · VideoSignaling:表示視頻信號 |
Unknown policy |
媒體策略類型是否未知: · Yes:表示策略類型未知 · No:表示策略類型已知 |
VLAN tagged |
媒體VLAN是否帶Tag |
Media policy VLAN ID |
媒體VLAN的VLAN ID |
Media policy L2 priority |
二層優先級 |
Media policy DSCP |
DSCP的值 |
Location format |
位置信息格式: · Invalid:表示無效位置數據類型 · Coordinate-based LCI:表示基於坐標的位置信息 · Civic Address LCI:表示普通地址信息 · ECS ELIN:表示緊急電話號碼 |
Location information |
位置信息 |
PoE PSE power source |
PSE所采用的電源類型: · Unknown:表示采用的電源類型未知 · Primary:表示采用主用電源作為電源 · Backup:表示采用備用電源作為電源 |
PoE PD power source |
PD所采用的電源類型: · Unknown:表示采用的電源類型未知 · PSE:表示采用PSE作為電源 · Local:表示采用本地電源作為電源 · PSE and local:表示采用PSE和本地電源作為電源 |
PoE service type |
PoE服務類型 |
Port PSE priority |
PSE上端口的供電優先級: · Unknown:表示優先級未知 · Critical:表示優先級為1級 · High:表示優先級為2級 · Low:表示優先級為3級 |
Port PD priority |
PD上端口的受電優先級: · Unknown:表示優先級未知 · Critical:表示優先級為1級 · High:表示優先級為2級 · Low:表示優先級為3級 |
Port available power value |
PSE上端口可提供的功率,或PD上端口所需的功率,單位為瓦特 |
HardwareRev |
產品的硬件版本 |
FirmwareRev |
產品的固件版本 |
SoftwareRev |
產品的軟件版本 |
SerialNum |
序列號 |
Manufacturer name |
製造廠商 |
Model name |
模塊名稱 |
Asset tracking identifier |
資產跟蹤ID |
Unknown basic TLV |
未知的基本TLV |
TLV type |
未知的基本TLV類型 |
TLV information |
未知的基本TLV的具體信息 |
Unknown organizationally-defined TLV |
未知組織定義TLV |
TLV OUI |
未知組織定義TLV的對象唯一標識 |
TLV subtype |
未知的組織定義TLV類型 |
Index |
未知組織的索引 |
Chassis ID/subtype |
Chassis ID值及Chassis ID類型 |
Port ID/subtype |
Port ID值及PortID類型 |
Software version |
鄰居軟件版本 |
Platform version |
鄰居平台版本 |
Duplex |
雙工狀態 |
Capabilities |
係統已開啟的功能: · Repeater:表示開啟信號中繼功能 · Bridge:表示開啟交換功能 · WlanAccessPoint:表示開啟無線接入點功能 · Router:表示開啟路由功能 · Telephone:表示開啟電話功能 · DocsisCableDevice:表示開啟電纜設備功能 · StationOnly:表示開啟隻作站點功能,與其他功能不能同時出現 · Other:表示開啟不在上述列表的其他功能 · None:表示該鄰居未發布該TLV |
Local Interface |
接收LLDP信息的本端端口 |
Chassis ID : * -- -- Nearest nontpmr bridge neighbor #-- -- Nearest customer bridge neighbor |
*符號:表示該鄰居是最近非TPMR橋代理類型鄰居 #符號:表示該鄰居是最近客戶橋代理類型鄰居 |
Transmit Tw |
本端發送的等待時間,單位為微秒 |
Receive Tw |
本端向對端請求的等待時間,單位為微秒 |
Fallback Tw |
本端向對端請求的候選等待時間,單位為微秒 |
Echo Transmit Tw |
收到的對端發送的等待時間,單位為微秒 |
Echo Receive Tw |
收到的對端請求的等待時間,單位為微秒 |
display lldp statistics命令用來顯示LLDP的統計信息。
【命令】
display lldp statistics [ global | [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
global:顯示全局LLDP統計信息。
interface interface-type interface-number:顯示指定接口上的LLDP統計信息,interface-type interface-number表示接口類型和接口編號。
agent:顯示指定類型LLDP代理的統計信息。如果未指定該參數,將顯示所有類型LLDP代理的統計信息。
nearest-bridge:表示最近橋代理。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
【使用指導】
如果未指定任何參數,將同時顯示全局和接口上的LLDP統計信息。
【舉例】
# 顯示全局和接口上的LLDP統計信息。
<Sysname> display lldp statistics
LLDP statistics global information:
LLDP neighbor information last change time:0 days, 0 hours, 4 minutes, 40 seconds
The number of LLDP neighbor information inserted : 1
The number of LLDP neighbor information deleted : 1
The number of LLDP neighbor information dropped : 0
The number of LLDP neighbor information aged out : 1
LLDP statistics information of port 1 [GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
The number of LLDP frames transmitted : 0
The number of LLDP frames received : 0
The number of LLDP frames discarded : 0
The number of LLDP error frames : 0
The number of LLDP TLVs discarded : 0
The number of LLDP TLVs unrecognized : 0
The number of LLDP neighbor information aged out : 0
The number of CDP frames transmitted : 0
The number of CDP frames received : 0
The number of CDP frames discarded : 0
The number of CDP error frames : 0
LLDP agent nearest-nontpmr:
The number of LLDP frames transmitted : 0
The number of LLDP frames received : 0
The number of LLDP frames discarded : 0
The number of LLDP error frames : 0
The number of LLDP TLVs discarded : 0
The number of LLDP TLVs unrecognized : 0
The number of LLDP neighbor information aged out : 0
The number of CDP frames transmitted : 0
The number of CDP frames received : 0
The number of CDP frames discarded : 0
The number of CDP error frames : 0
LLDP agent nearest-customer:
The number of LLDP frames transmitted : 0
The number of LLDP frames received : 0
The number of LLDP frames discarded : 0
The number of LLDP error frames : 0
The number of LLDP TLVs discarded : 0
The number of LLDP TLVs unrecognized : 0
The number of LLDP neighbor information aged out : 0
The number of CDP frames transmitted : 0
The number of CDP frames received : 0
The number of CDP frames discarded : 0
The number of CDP error frames : 0
# 顯示接口GigabitEthernet1/0/1的最近客戶橋代理上的LLDP統計信息。
<Sysname> display lldp statistics interface gigabitethernet 1/0/1 agent nearest-customer
LLDP statistics information of port 1 [GigabitEthernet1/0/1]:
LLDP agent nearest-customer:
The number of LLDP frames transmitted : 0
The number of LLDP frames received : 0
The number of LLDP frames discarded : 0
The number of LLDP error frames : 0
The number of LLDP TLVs discarded : 0
The number of LLDP TLVs unrecognized : 0
The number of LLDP neighbor information aged out : 0
The number of CDP frames transmitted : 0
The number of CDP frames received : 0
The number of CDP frames discarded : 0
The number of CDP error frames : 0
表1-3 display lldp statistics命令顯示信息描述表
字段 |
描述 |
LLDP agent nearest-bridge |
LLDP缺省代理,即最近橋代理 |
LLDP agent nearest-customer |
LLDP最近客戶橋代理 |
LLDP agent nearest-nontpmr |
LLDP最近非TPMR橋代理 |
LLDP statistics global information |
全局LLDP統計信息 |
LLDP neighbor information last change time |
鄰居信息的最後更新時間 |
The number of LLDP neighbor information inserted |
鄰居信息的增加次數 |
The number of LLDP neighbor information deleted |
鄰居信息的刪除次數 |
The number of LLDP neighbor information dropped |
由於空間不足而導致丟棄鄰居信息的次數 |
The number of LLDP neighbor information aged out |
鄰居信息的老化數量 |
LLDP statistics Information of port 1 |
端口1上的LLDP統計信息 |
The number of LLDP frames transmitted |
發送的LLDP幀總數 |
The number of LLDP frames received |
收到的LLDP幀總數 |
The number of LLDP frames discarded |
丟棄的LLDP幀總數 |
The number of LLDP error frames |
收到的錯誤LLDP幀總數 |
The number of LLDP TLVs discarded |
丟棄的LLDP TLV總數 |
The number of LLDP TLVs unrecognized |
不可識別的LLDP TLV總數 |
The number of LLDP neighbor information aged out |
老化的LLDP鄰居信息總數 |
display lldp status命令用來顯示LLDP的狀態信息。
【命令】
display lldp status [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定接口上的LLDP狀態信息,interface-type interface-number表示接口類型和接口編號。如果未指定該參數,將顯示所有開啟了LLDP功能的接口上的LLDP狀態信息。
agent:顯示指定類型LLDP代理的狀態信息。如果未指定該參數,將顯示所有類型LLDP代理的狀態信息。
nearest-bridge:表示最近橋代理。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
【舉例】
# 顯示全局和所有接口上的LLDP狀態信息。
<Sysname> display lldp status
Global status of LLDP: Enable
Bridge mode of LLDP: customer-bridge
The current number of LLDP neighbors: 5
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days, 0 hours, 4 minutes, 40 seconds
Transmit interval : 30s
Fast transmit interval : 1s
Transmit max credit : 5
Hold multiplier : 4
Reinit delay : 2s
Trap interval : 5s
Fast start times : 3
LLDP status information of port 1 [GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
Port status of LLDP : Enable
Admin status : TX_RX
Trap flag : No
MED trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 5
Number of MED neighbors : 2
Number of CDP neighbors : 0
Number of sent optional TLV : 12
Number of received unknown TLV : 5
LLDP agent nearest-nontpmr:
Port status of LLDP : Enable
Admin status : TX_RX
Trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 5
Number of MED neighbors : 2
Number of CDP neighbors : 0
Number of sent optional TLV : 12
Number of received unknown TLV : 5
LLDP agent nearest-customer:
Port status of LLDP : Enable
Admin status : TX_RX
Trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 5
Number of MED neighbors : 2
Number of CDP neighbors : 0
Number of sent optional TLV : 12
Number of received unknown TLV : 5
表1-4 display lldp status命令顯示信息描述表
字段 |
描述 |
Bridge mode of LLDP |
LLDP橋模式: · service-bridge:表示服務橋模式 · customer-bridge:表示客戶橋模式 |
LLDP agent nearest-bridge |
LLDP缺省代理,即最近橋代理 |
LLDP agent nearest-customer |
LLDP最近客戶橋代理 |
LLDP agent nearest-nontpmr |
LLDP最近非TPMR橋代理 |
Global status of LLDP |
LLDP功能是否已全局開啟 |
The current number of LLDP neighbors |
當前設備的LLDP鄰居總數 |
LLDP neighbor information last changed time |
鄰居信息的最後更新時間 |
Transmit interval |
LLDP報文的發送間隔 |
Hold multiplier |
TTL乘數 |
Reinit delay |
端口初始化延遲時間 |
Transmit max credit |
LLDP報文發包限速令牌桶的最大值 |
Trap interval |
Trap信息的發送間隔 |
Fast start times |
快速發送LLDP報文的個數 |
LLDP status infomation of port 1 |
端口1上的LLDP狀態信息 |
Port status of LLDP |
LLDP功能是否已在端口上開啟 |
Admin status |
端口LLDP工作模式: · TX_RX:表示既發送也接收LLDP報文 · Rx_Only:表示隻接收不發送LLDP報文 · Tx_Only:表示隻發送不接收LLDP報文 · Disable:表示既不發送也不接收LLDP報文 |
Trap Flag |
LLDP Trap功能是否已開啟 |
MED trap flag |
LLDP-MED Trap功能是否已開啟 |
Polling interval |
輪詢間隔,0表示輪詢功能處於關閉狀態 |
Number of neighbors |
端口LLDP鄰居數量 |
Number of MED neighbors |
端口MED鄰居設備的數量 |
Number of sent optional TLV |
端口在一個LLDP報文中發送的可選TLV總數 |
Number of received unknown TLV |
端口在所有LLDP報文中收到的不能識別的TLV總數 |
display lldp tlv-config命令用來顯示接口上可發送的可選TLV信息。
【命令】
display lldp tlv-config [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定接口上可發送的可選TLV信息,interface-type interface-number表示接口類型和接口編號。如果未指定該參數,將顯示所有接口上可發送的可選TLV信息。
agent:顯示指定類型LLDP代理的可選TLV信息。如果未指定該參數,將顯示所有類型LLDP代理的可選TLV信息。
nearest-bridge:表示最近橋代理。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
【舉例】
# 顯示接口GigabitEthernet1/0/1上可發送的可選TLV信息。
<Sysname> display lldp tlv-config interface gigabitethernet 1/0/1
LLDP tlv-config of port 1[GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
NAME STATUS DEFAULT
Basic optional TLV:
Port Description TLV YES YES
System Name TLV YES YES
System Description TLV YES YES
System Capabilities TLV YES YES
Management Address TLV YES YES
IEEE 802.1 extend TLV:
Port VLAN ID TLV YES YES
Port And Protocol VLAN ID TLV YES YES
VLAN Name TLV YES YES
Link Aggregation TLV YES YES
Management VID TLV YES YES
Congestion notification TLV NO NO
IEEE 802.3 extend TLV:
MAC-Physic TLV YES YES
Power via MDI TLV YES YES
Maximum Frame Size TLV YES YES
Energy-Efficient Ethernet TLV NO NO
LLDP-MED extend TLV:
Capabilities TLV YES YES
Network Policy TLV YES YES
Location Identification TLV NO NO
Extended Power via MDI TLV YES YES
Inventory TLV YES YES
LLDP agent nearest-nontpmr:
NAME STATUS DEFAULT
Basic optional TLV:
Port Description TLV YES NO
System Name TLV YES NO
System Description TLV YES NO
System Capabilities TLV YES NO
Management Address TLV YES NO
IEEE 802.1 extend TLV:
Port VLAN ID TLV YES NO
Port And Protocol VLAN ID TLV YES NO
VLAN Name TLV YES NO
Link Aggregation TLV YES NO
Management VID TLV NO NO
IEEE 802.3 extend TLV:
MAC-Physic TLV YES NO
Power via MDI TLV YES NO
Maximum Frame Size TLV YES NO
Energy-Efficient Ethernet TLV NO NO
LLDP-MED extend TLV:
Capabilities TLV YES NO
Network Policy TLV YES NO
Location Identification TLV NO NO
Extended Power via MDI TLV YES NO
Inventory TLV YES NO
LLDP agent nearest-customer:
NAME STATUS DEFAULT
Basic optional TLV:
Port Description TLV YES YES
System Name TLV YES YES
System Description TLV YES YES
System Capabilities TLV YES YES
Management Address TLV YES YES
IEEE 802.1 extend TLV:
Port VLAN ID TLV YES YES
Port And Protocol VLAN ID TLV YES YES
VLAN Name TLV YES YES
Link Aggregation TLV YES NO
Management VID TLV YES YES
IEEE 802.3 extend TLV:
MAC-Physic TLV YES NO
Power via MDI TLV YES NO
Maximum Frame Size TLV YES NO
Energy-Efficient Ethernet TLV NO NO
LLDP-MED extend TLV:
Capabilities TLV YES YES
Network Policy TLV YES YES
Location Identification TLV NO NO
Extended Power via MDI TLV YES NO
Inventory TLV YES YES
表1-5 display lldp tlv-config命令顯示信息描述表
字段 |
描述 |
LLDP agent nearest-bridge |
LLDP 缺省代理,即最近橋代理 |
LLDP agent nearest-customer |
LLDP最近客戶橋代理 |
LLDP agent nearest-nontpmr |
LLDP最近非TPMR橋代理 |
LLDP tlv-config of port 1 |
端口1上可發送的可選TLV類型 |
NAME |
TLV類型 |
STATUS |
端口是否配置發布指定類型TLV |
DEFAULT |
端口發布指定類型TLV的缺省情況 |
Basic optional TLV |
端口可以發送的基本TLV類型 |
Port Description TLV |
端口描述TLV |
System Name TLV |
係統名稱TLV |
System Description TLV |
係統描述TLV |
System Capabilities TLV |
係統能力集TLV |
Management Address TLV |
管理地址TLV |
IEEE 802.1 extended TLV |
端口可發送的IEEE 802.1組織定義的TLV類型 |
Port VLAN ID TLV |
端口VLAN ID TLV |
Port And Protocol VLAN ID TLV |
協議VLAN ID TLV |
VLAN Name TLV |
VLAN名稱TLV |
Management VID TLV |
管理VLAN TLV |
IEEE 802.3 extended TLV |
端口可發送的IEEE 802.3組織定義的TLV類型 |
MAC-Physic TLV |
端口物理屬性TLV |
Power via MDI TLV |
供電能力TLV |
Link Aggregation TLV |
鏈路聚合TLV |
Maximum Frame Size TLV |
最大幀長度TLV |
LLDP-MED extend TLV |
LLDP-MED TLV |
Capabilities TLV |
MED能力集TLV |
Network Policy TLV |
網絡策略TLV |
Location Identification TLV |
位置標識TLV |
Extended Power via MDI TLV |
擴展供電能力TLV |
Inventory TLV |
資產信息TLV,包括以下幾種: · Hardware Revision TLV:終端設備硬件版本 · Firmware Revision TLV:終端設備固件版本 · Software Revision TLV:終端設備軟件版本 · Serial Number TLV:終端設備序列號 · Manufacturer Name TLV:終端設備的製造廠商名稱 · Model name TLV:終端設備的模塊名稱 · Asset ID TLV:終端設備的資產標識符,以便目錄管理和資產跟蹤 |
lldp admin-status命令用來配置LLDP的工作模式。
undo lldp admin-status命令用來恢複缺省情況。
【命令】
在二層以太網接口視圖/三層以太網接口視圖下:
lldp [ agent { nearest-customer | nearest-nontpmr } ] admin-status { disable | rx | tx | txrx }
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] admin-status
在二層聚合接口視圖/三層聚合接口視圖下:
lldp agent { nearest-customer | nearest-nontpmr } admin-status { disable | rx | tx | txrx }
undo lldp agent { nearest-customer | nearest-nontpmr } admin-status
【缺省情況】
LLDP最近橋代理的工作模式為TxRx,既發送也接收LLDP報文。其他類型的LLDP代理的工作模式為Disable,即不發送也不接收LLDP報文。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
agent:配置指定類型LLDP代理的工作模式。在以太網接口視圖下,未指定時表示配置最近橋代理的工作模式。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
disable:表示工作模式為Disable,既不發送也不接收LLDP報文。
rx:表示工作模式為Rx,隻接收不發送LLDP報文。
tx:表示工作模式為Tx,隻發送不接收LLDP報文。
txrx:表示工作模式為TxRx,既發送也接收LLDP報文。
【舉例】
# 配置接口GigabitEthernet1/0/1上最近客戶橋代理LLDP的工作模式為Rx。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp agent nearest-customer admin-status rx
lldp check-change-interval命令用來開啟輪詢功能並配置輪詢間隔。
undo lldp check-change-interval命令用來關閉輪詢功能。
【命令】
在二層以太網接口視圖/三層以太網接口視圖下:
lldp [ agent { nearest-customer | nearest-nontpmr } ] check-change-interval interval
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] check-change-interval
在二層聚合接口視圖/三層聚合接口視圖下:
lldp agent { nearest-customer | nearest-nontpmr } check-change-interval interval
undo lldp agent { nearest-customer | nearest-nontpmr } check-change-interval
【缺省情況】
輪詢功能處於關閉狀態。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
agent:配置指定類型LLDP代理的輪詢功能。在以太網接口視圖下,未指定時表示配置最近橋代理的輪詢功能。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
interval:表示輪詢間隔,取值範圍為1~30,單位為秒。
【舉例】
# 在接口GigabitEthernet1/0/1的最近客戶橋代理上開啟輪詢功能,並配置輪詢間隔為30秒。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp agent nearest-customer check-change-interval 30
lldp enable命令用來在接口上開啟LLDP功能。
undo lldp enable命令用來在接口上關閉LLDP功能。
【命令】
lldp enable
undo lldp enable
【缺省情況】
接口上的LLDP功能處於開啟狀態。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【使用指導】
隻有當全局和接口上都開啟了LLDP功能後,該功能才會生效。
【舉例】
# 在接口GigabitEthernet1/0/1上關閉LLDP功能。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo lldp enable
【相關命令】
· lldp global enable
lldp encapsulation snap命令用來配置LLDP報文的封裝格式為SNAP格式。
undo lldp encapsulation命令用來恢複缺省情況。
【命令】
在二層以太網接口視圖/三層以太網接口視圖下:
lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation snap
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation
在二層聚合接口視圖/三層聚合接口視圖下:
lldp agent { nearest-customer | nearest-nontpmr } encapsulation snap
undo lldp agent { nearest-customer | nearest-nontpmr } encapsulation
【缺省情況】
LLDP報文的封裝格式為Ethernet II格式。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
agent:配置指定類型LLDP代理的封裝格式。在以太網接口視圖下,未指定時表示配置最近橋代理的封裝格式。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
【舉例】
# 配置接口GigabitEthernet1/0/1上發送的LLDP報文的封裝格式為SNAP格式。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp encapsulation snap
lldp fast-count命令用來配置快速發送LLDP報文的個數。
undo lldp fast-count命令用來恢複缺省情況。
【命令】
lldp fast-count count
undo lldp fast-count
【缺省情況】
快速發送LLDP報文的個數為4個。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
count:表示快速發送LLDP報文的個數,取值範圍為1~8。
【舉例】
# 配置快速發送LLDP報文的個數為5個。
<Sysname> system-view
[Sysname] lldp fast-count 5
lldp global enable命令用來全局開啟LLDP功能。
undo lldp global enable命令用來全局關閉LLDP功能。
【命令】
lldp global enable
undo lldp global enable
【缺省情況】
缺省情況下,全局未開啟LLDP功能。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【使用指導】
隻有當全局和接口上都開啟了LLDP功能後,該功能才會生效。
【舉例】
# 全局關閉LLDP功能。
<Sysname> system-view
[Sysname] undo lldp global enable
【相關命令】
· lldp enable
lldp hold-multiplier命令用來配置TTL乘數。
undo lldp hold-multiplier命令用來恢複缺省情況。
【命令】
lldp hold-multiplier value
undo lldp hold-multiplier
【缺省情況】
TTL乘數為4。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
value:表示TTL乘數,取值範圍為2~10。
【使用指導】
LLDP報文所攜Time To Live TLV中TTL的值用來設置鄰居信息在本地設備上的老化時間,由於TTL=Min(65535,(TTL乘數×LLDP報文的發送間隔+1)),即取65535與(TTL乘數×LLDP報文的發送間隔+1)中的最小值,因此通過調整TTL乘數可以控製本設備信息在鄰居設備上的老化時間。
【舉例】
# 配置TTL乘數為6。
<Sysname> system-view
[Sysname] lldp hold-multiplier 6
【相關命令】
· lldp timer tx-interval
lldp ignore-pvid-inconsistency命令用來關閉LLDP的PVID不一致檢查功能。
undo lldp ignore-pvid-inconsistency命令用來開啟LLDP的PVID不一致檢查功能。
【命令】
lldp ignore-pvid-inconsistency
undo lldp ignore-pvid-inconsistency
【缺省情況】
LLDP的PVID不一致檢查功能處於開啟狀態。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【使用指導】
缺省情況下,LLDP會對接口接收報文中的PVID TLV進行檢查,如果發現報文中PVID與本端不一致,LLDP會打印日誌信息,提示用戶。但在一些特殊情況下,可以允許鏈路兩端的PVID配置不一致,此時可以關閉LLDP的PVID不一致性檢查功能。
【舉例】
# 關閉LLDP的PVID不一致檢查功能。
<Sysname> system-view
[Sysname] lldp ignore-pvid-inconsistency
lldp management-address命令用來配置接口收到攜帶Management Address TLV的LLDP報文後生成ARP表項或ND表項。
undo lldp management-address命令用來恢複缺省情況。
【命令】
lldp management-address { arp-learning | nd-learning } [ vlan vlan-id ]
undo lldp management-address { arp-learning | nd-learning }
【缺省情況】
接口收到攜帶Management Address TLV的LLDP報文後不生成ARP表項和ND表項。
【視圖】
三層以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
arp-learning:表示接口收到攜帶IPv4格式Management Address TLV的LLDP報文後,會生成該報文攜帶的管理地址與報文源MAC地址組成的ARP表項。
nd-learning:表示接口收到攜帶IPv6格式Management Address TLV的LLDP報文後,會生成該報文攜帶的管理地址與報文源MAC地址組成的ND表項。
vlan vlan-id:指定Dot1q終結中三層以太網子接口關聯的VLAN ID,取值範圍為1~4094。指定該參數後,生成的ARP表項或ND表項中的接口為到該VLAN ID關聯的三層以太網子接口;如果該VLAN ID沒有關聯的三層以太網子接口,則生成的表項中的接口為當前接口。不指定該參數時表示生成的表項中的接口為當前接口。
【使用指導】
ARP表項和ND表項的生成互不影響,可同時配置。
【舉例】
# 配置接口GigabitEthernet1/0/1收到攜帶IPv4格式Management Address TLV的LLDP報文後,生成ARP表項到,對應的接口為Dot1q終結中VLAN 4094關聯的三層以太網子接口。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp management-address arp-learning vlan 4094
【相關命令】
· lldp source-mac vlan
lldp management-address-format string命令用來配置管理地址在TLV中的封裝格式為字符串格式。
undo lldp management-address-format命令用來恢複缺省情況。
【命令】
在二層以太網接口視圖/三層以太網接口視圖下:
lldp [ agent { nearest-customer | nearest-nontpmr } ] management-address-format string
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] management-address-format
在二層聚合接口視圖/三層聚合接口視圖下:
lldp agent { nearest-customer | nearest-nontpmr } management-address-format string
undo lldp agent { nearest-customer | nearest-nontpmr } management-address-format
【缺省情況】
管理地址在TLV中的封裝格式為數字格式。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
agent:配置指定LLDP代理類型管理地址在TLV中的封裝格式。在以太網接口視圖下,未指定時表示配置最近橋代理的管理地址在TLV中的封裝格式。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
【使用指導】
如果鄰居將管理地址以字符串格式封裝在TLV中,用戶可在本地設備上也將封裝格式改為字符串,以保證與鄰居設備的正常通信。
【舉例】
# 在接口GigabitEthernet1/0/1的最近客戶橋代理上配置管理地址在TLV中的封裝格式為字符串格式。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp agent nearest-customer management-address-format string
lldp max-credit命令用來配置限製發送報文速率的令牌桶大小。
undo lldp max-credit命令用來恢複缺省情況。
【命令】
lldp max-credit credit-value
undo lldp max-credit
【缺省情況】
限製發送報文速率的令牌桶大小為5。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
credit-value:表示LLDP發包限速的令牌桶大小,取值範圍1~100。
【舉例】
# 配置LLDP發包限速的令牌桶大小為10。
<Sysname> system-view
[Sysname] lldp max-credit 10
lldp mode命令用來配置LLDP橋模式。
undo lldp mode命令用來恢複缺省情況。
【命令】
lldp mode service-bridge
undo lldp mode
【缺省情況】
LLDP橋模式為客戶橋模式。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
service-bridge:表示服務橋模式。
【使用指導】
LLDP橋模式命令用於控製設備支持不同的LLDP代理。
· 工作於服務橋模式時,設備可支持最近橋代理和最近非TPMR橋代理,即對上述類型的代理MAC的LLDP報文進行處理,其他目的MAC的LLDP報文進行VLAN內透傳。
· 工作於客戶橋模式時,設備可支持最近橋代理、最近非TPMR橋代理及最近客戶橋代理,即對上述類型的代理MAC的LLDP報文進行處理,其他目的MAC的LLDP報文進行VLAN內透傳。
橋模式配置隻在LLDP全局開啟後才能生效,LLDP全局關閉時,隻能作為客戶橋對三種類型代理MAC的LLDP報文進行攔截。
【舉例】
# 配置LLDP橋模式為服務橋模式。
<Sysname> system-view
[Sysname] lldp mode service-bridge
【相關命令】
· lldp global enable
lldp notification med-topology-change enable命令用來開啟LLDP-MED Trap功能。
undo lldp notification med-topology-change enable命令用來關閉LLDP-MED Trap功能。
【命令】
lldp notification med-topology-change enable
undo lldp notification med-topology-change enable
【缺省情況】
LLDP-MED Trap功能處於關閉狀態。
【視圖】
二層以太網接口視圖/三層以太網接口視圖
【缺省用戶角色】
network-admin
【舉例】
# 在接口GigabitEthernet1/0/1上開啟LLDP-MED Trap功能。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp notification med-topology-change enable
lldp notification remote-change enable命令用來開啟LLDP Trap功能。
undo lldp notification remote-change enable命令用來關閉LLDP Trap功能。
【命令】
在二層以太網接口視圖/三層以太網接口視圖下:
lldp [ agent { nearest-customer | nearest-nontpmr } ] notification remote-change enable
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] notification remote-change enable
在二層聚合接口視圖/三層聚合接口視圖下:
lldp agent { nearest-customer | nearest-nontpmr } notification remote-change enable
undo lldp agent { nearest-customer | nearest-nontpmr } notification remote-change enable
【缺省情況】
LLDP Trap功能處於關閉狀態。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
agent:開啟指定類型LLDP代理的LLDP Trap功能。在以太網接口視圖下,未指定時表示開啟最近橋代理類型LLDP代理的LLDP Trap功能。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
【舉例】
# 在接口GigabitEthernet1/0/1最近客戶橋代理上開啟LLDP Trap功能。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp agent nearest-customer notification remote-change enable
lldp source-mac vlan命令用來配置LLDP報文源MAC地址為指定VLAN關聯三層以太網子接口的MAC地址。
undo lldp source-mac命令用來恢複缺省情況。
【命令】
lldp source-mac vlan vlan-id
undo lldp source-mac
【缺省情況】
LLDP報文源MAC地址為當前接口的MAC地址。
【視圖】
三層以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
vlan-id:指定Dot1q終結中三層以太網子接口關聯的VLAN ID,取值範圍為1~4094。指定該參數後,LLDP報文源MAC地址為該VLAN ID關聯的三層以太網子接口;如果該VLAN ID沒有關聯的三層以太網子接口,則LLDP報文源MAC地址為當前接口的MAC地址。
【舉例】
# 配置LLDP報文源MAC地址為Dot1q終結中VLAN 4094關聯的三層以太網子接口的MAC地址。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp source-mac vlan 4094
【相關命令】
· lldp management-address arp-learning
lldp timer fast-interval命令用來配置LLDP快速發送報文的時間間隔。
undo lldp timer fast-interval命令用來恢複缺省情況。
【命令】
lldp timer fast-interval interval
undo lldp timer fast-interval
【缺省情況】
LLDP快速發送報文的時間間隔為1秒。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
interval:表示LLDP快速發送報文的時間間隔,取值範圍為1~3600,單位為秒。
【舉例】
# 配置LLDP快速發送報文的時間間隔為2秒。
<Sysname> system-view
[Sysname] lldp timer fast-interval 2
lldp timer notification-interval命令用來配置LLDP Trap和LLDP-MED Trap信息的發送間隔。
undo lldp timer notification-interval命令用來恢複缺省情況。
【命令】
lldp timer notification-interval interval
undo lldp timer notification-interval
【缺省情況】
LLDP Trap和LLDP-MED Trap信息的發送間隔均為30秒。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
interval:表示LLDP Trap和LLDP-MED Trap信息的發送間隔,取值範圍為5~3600,單位為秒。
【舉例】
# 配置LLDP Trap和LLDP-MED Trap信息的發送間隔為8秒。
<Sysname> system-view
[Sysname] lldp timer notification-interval 8
lldp timer reinit-delay命令用來配置接口初始化的延遲時間。
undo lldp timer reinit-delay命令用來恢複缺省情況。
【命令】
lldp timer reinit-delay delay
undo lldp timer reinit-delay
【缺省情況】
接口初始化的延遲時間為2秒。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
delay:接口初始化的延遲時間,取值範圍為1~10,單位為秒。
【舉例】
# 配置接口初始化的延遲時間為4秒。
<Sysname> system-view
[Sysname] lldp timer reinit-delay 4
lldp timer tx-interval命令用來配置LLDP報文的發送間隔。
undo lldp timer tx-interval命令用來恢複缺省情況。
【命令】
lldp timer tx-interval interval
undo lldp timer tx-interval
【缺省情況】
LLDP報文的發送間隔為30秒。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
interval:表示LLDP報文的發送間隔,取值範圍為5~32768,單位為秒。
【舉例】
# 配置LLDP報文的發送間隔為20秒。
<Sysname> system-view
[Sysname] lldp timer tx-interval 20
lldp tlv-enable命令用來配置接口上允許發布的TLV類型。
undo lldp tlv-enable命令用來配置接口上禁止發布的TLV類型。
【命令】
在二層以太網接口視圖下:
· 配置最近橋代理LLDP接口上允許發布的TLV類型
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation | protocol-vlan-id | vlan-name | management-vid } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id } }
· 配置最近非TPMR代理LLDP接口上允許發布的TLV類型
lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation } }
undo lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation } }
· 配置最近客戶橋代理LLDP接口上允許發布的TLV類型
lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation } }
undo lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation } }
在三層以太網接口視圖:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id } }
undo lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } }
在二層聚合接口視圖下:
lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
lldp tlv-enable dot1-tlv { protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] }
undo lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
undo lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
undo lldp tlv-enable dot1-tlv { protocol-vlan-id | vlan-name | management-vid }
在三層聚合接口視圖下:
lldp agent { nearest-customer | nearest-nontpmr } tlv-enable basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name }
undo lldp agent { nearest-customer | nearest-nontpmr } tlv-enable basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name }
【缺省情況】
二層以太網接口上:
· 最近橋代理允許發布除Location-id TLV、Port And Protocol VLAN ID TLV、VLAN Name TLV、Management VLAN ID TLV之外所有類型的TLV;
· 最近客戶橋代理允許發布基本TLV和IEEE 802.1組織定義TLV。
三層以太網接口上:
· 最近橋代理允許發布除Network Policy TLV之外所有類型的TLV,其中IEEE 802.1組織定義的TLV隻支持Link Aggregation TLV;
· 最近非TPMR橋代理不發布任何TLV;
· 最近客戶橋代理允許發布基本TLV和IEEE 802.1組織定義TLV,其中IEEE 802.1組織定義的TLV隻支持Link Aggregation TLV。
二層聚合接口上:
· 不存在最近橋代理;
· 最近客戶橋代理允許發布基本TLV和IEEE 802.1組織定義TLV,其中IEEE 802.1組織定義的TLV隻支持Port And Protocol VLAN ID TLV、VLAN Name TLV及Management VLAN ID TLV。
三層聚合接口上:
· 不存在最近橋代理;
· 最近非TPMR橋代理不發布任何TLV;
· 最近客戶橋代理隻允許發布基本TLV。
【視圖】
二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖
【缺省用戶角色】
network-admin
【參數】
agent:配置指定類型LLDP代理允許發布的TLV類型。在以太網接口視圖下,未指定時表示配置最近橋代理允許發布的TLV類型。
nearest-customer:表示最近客戶橋代理。
nearest-nontpmr:表示最近非TPMR橋代理。
all:在二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖下指定basic-tlv、dot1-tlv或dot3-tlv,或者在三層聚合接口視圖下指定basic-tlv時,本參數表示該類型下所有的可選TLV;而在二層以太網接口視圖/三層以太網接口視圖下指定med-tlv時,本參數都表示該類型下除location-id以外所有的可選TLV。
basic-tlv:表示基本類型TLV。
management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ]:表示Management Address TLV。其中,ipv6表示LLDP報文中所要發布的管理地址為IPv6格式的地址,當未指定ipv6時,表示LLDP報文中所要發布的管理地址為IPv4格式的地址。ip-address表示在LLDP報文中發布的管理地址為指定的IP地址,interface loopback interface-number表示在LLDP報文中發布的管理地址為指定的LoopBack接口的IP地址。其缺省值根據當前接口視圖確定:
· 在二層以太網接口視圖/二層聚合接口視圖下:
當未指定ipv6參數時,若未指定ip-address,則發布的管理地址為當前接口允許通過的、對應VLAN接口上配置有IPv4地址且處於up狀態的最小VLAN的主IPv4地址(如果當前接口允許通過的所有VLAN所對應的VLAN接口上都未配置IPv4地址或均處於down狀態,則發布當前接口的MAC地址);
當指定了ipv6參數時,若未指定ip-address,則發布的管理地址為當前接口允許通過的、對應VLAN接口上配置有IPv6地址且處於up狀態的最小VLAN的主IPv6地址(如果當前接口允許通過的所有VLAN所對應的VLAN接口上都未配置IPv6地址或均處於down狀態,則發布當前接口的MAC地址)。
· 在三層以太網接口視圖:
當未指定ipv6參數時,若未指定ip-address、指定的LoopBack接口不存在或LoopBack接口沒有配置IPv4地址,則發布的管理地址為當前接口的IPv4地址(如果當前接口未配置IPv4地址,則發布當前接口的MAC地址);
當指定了ipv6參數時,若未指定ip-address、指定的LoopBack接口不存在或LoopBack接口沒有配置IPv6地址,則發布的管理地址為當前接口的IPv6地址(如果當前接口未配置IPv6地址,則發布當前接口的MAC地址)。
· 在三層聚合接口視圖下:
當未指定ipv6參數時,若未指定ip-address,則發布的管理地址為當前接口的IPv4地址(如果當前接口未配置IPv4地址,則發布當前接口的MAC地址);
當指定了ipv6參數時,若未指定ip-address,則發布的管理地址為當前接口的IPv6地址(如果當前接口未配置IPv6地址,則發布當前接口的MAC地址)。
· 在二層以太網接口視圖/二層聚合接口視圖/三層以太網接口視圖/三層聚合接口視圖下:
執行undo命令時,如果不帶ipv6、ip-address和interface loopback interface-number參數表示不發布該TLV;如果帶ipv6、ip-address或interface loopback interface-number參數表示按缺省值發布該TLV。
port-description:表示Port Description TLV。
system-capability:表示System Capabilities TLV。
system-description:表示System Description TLV。
system-name:表示System Name TLV。
dot1-tlv:表示IEEE 802.1組織定義的TLV。
port-vlan-id:表示Port VLAN ID TLV。
protocol-vlan-id [ vlan-id ]:表示Port And Protocol VLAN ID TLV,vlan-id為所要發布VLAN的VLAN ID,取值範圍為1~4094,缺省值為該端口所屬VLAN中最小的VLAN ID。
vlan-name [ vlan-id ]:表示VLAN Name TLV,vlan-id為所要發布VLAN的VLAN ID,取值範圍為1~4094,缺省值為該端口所屬VLAN中最小的VLAN ID。如果未指定vlan-id,且端口未加入任何VLAN,所要發布的VLAN為該端口PVID。
management-vid [ mvlan-id ]:表示Management VLAN ID TLV。mvlan-id指定要發布管理VLAN的VLAN ID,取值範圍為1~4094。如果未指定該參數,則表示發布0,表示當前LLDP agent未配置管理VLAN。
link-aggregation:表示Link Aggregation TLV。
dot3-tlv:表示IEEE 802.3組織定義的TLV。
link-aggregation:表示Link Aggregation TLV。
mac-physic:表示MAC/PHY Configuration/Status TLV。
max-frame-size:表示Maximum Frame Size TLV。
power:表示Power Via MDI TLV和Power Stateful Control TLV。
med-tlv:表示LLDP-MED TLV。
capability:表示LLDP-MED Capabilities TLV。
inventory:表示Hardware Revision TLV、Firmware Revision TLV、Software Revision TLV、Serial Number TLV、Manufacturer Name TLV、Model Name TLV和Asset ID TLV。
location-id:表示Location Identification TLV。
civic-address:表示Location Identification TLV封裝網絡設備的普通地址信息。
device-type:表示設備類型,取值範圍為0~2。0表示設備類型為DHCP server,1表示設備類型為Network device,2表示設備類型為LLDP-MED Endpoint。
country-code:表示國家編碼,取值範圍請參考ISO 3166。
{ ca-type ca-value }&<1-10>:地址信息。ca-type表示地址信息類型,取值範圍為0~255;ca-value表示地址信息,為1~250個字符的字符串。&<1-10>表示前麵的參數最多可以輸入10次。
elin-address:Location Identification TLV封裝緊急電話號碼。
tel-number:表示緊急電話號碼,為10~25個字符的字符串,隻能包含數字。
network-policy [ vlan-id ]:表示Network Policy TLV,vlan-id為要發布的Voice VLAN ID,取值範圍為1~4094。
power-over-ethernet:表示Extended Power-via-MDI TLV。
【使用指導】
在使用本命令時若不指定all參數,每次隻能配置某類型下的一種可選TLV,此時可通過多次使用該命令來配置各類型下的多種可選TLV。
如果禁止發布802.3的組織定義的MAC/PHY Configuration/Status TLV,則LLDP-MED TLV將不會被發布,不論其是否被允許發布;如果禁止發布LLDP-MED Capabilities TLV,則其它LLDP-MED TLV將不會被發布,不論其是否被允許發布。
IEEE 802.1組織定義的TLV的Port And Protocol VLAN ID TLV、VLAN Name TLV及Management VLAN ID TLV隻能基於最近橋代理配置,但是其配置會被最近非TPMR橋代理和最近客戶橋代理繼承。
【舉例】
# 配置接口GigabitEthernet1/0/1上最近客戶橋代理允許發布IEEE 802.1組織定義的Link Aggregation可選TLV。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp agent nearest-customer tlv-enable dot1-tlv link-aggregation
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!