12-LLDP命令
本章節下載: 12-LLDP命令 (209.43 KB)
目 錄
1.1.2 display lldp local-information
1.1.3 display lldp neighbor-information
1.1.8 lldp agent nearest-nontpmr admin-status
1.1.9 lldp check-change-interval
1.1.10 lldp compliance admin-status cdp
1.1.13 lldp encapsulation snap
1.1.17 lldp management-address-format string
1.1.18 lldp notification med-topology-change enable
1.1.19 lldp notification remote-change enable
1.1.20 lldp timer notification-interval
1.1.21 lldp timer reinit-delay
dcbx version命令用來配置DCBX工作版本。
undo dcbx version命令用來恢複缺省情況。
【命令】
dcbx version { rev100 | rev101 }
undo dcbx version
【缺省情況】
未配置DCBX工作版本,此時工作版本由兩端端口自協商決定,協商的初始版本為DCBX預標準版1.01。
【視圖】
二層以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
rev100:配置DCBX工作版本為預標準版1.0。
rev101:配置DCBX工作版本為預標準版1.01。
【使用指導】
· 配置本命令時,配置的DCBX版本需要視對端設備支持的版本而定,要求兩端端口的DCBX工作版本配置一致,否則版本無法兼容,將會導致DCBX無法正常工作。H3C建議您將DCBX工作版本配置為兩端設備都支持的最高版本(版本從高到低的順序為預標準版1.01->預標準版1.00)。
· 配置本命令後,本端端口發送的LLDP報文中攜帶的DCBX版本將為配置的版本,不再與對端端口進行DCBX工作版本協商。
【舉例】
# 配置端口Ten-GigabitEthernet1/0/1的DCBX工作版本為預標準版1.01。
<H3C> system-view
[H3C] interface ten-gigabitethernet1/0/1
[H3C-Ten-GigabitEthernet1/0/1] dcbx version rev101
display lldp local-information命令用來顯示待發送的LLDP信息,這些信息將被組織成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信息。
【舉例】
# 顯示所有待發送的LLDP信息(假設DCBX的版本為1.00)。
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 00a0-fc00-5800
System name : H3C
System description : H3C Comware Platform Software, Software Version 7.1.034,
Alpha 2203
H3C S5820V2-52QF
Copyright (c) 2004-2012 Hangzhou H3C Tech. Co., Ltd. All
rights reserved.
System capabilities supported : Bridge, Router
System capabilities enabled : Bridge, Router
MED information:
Device class : Connectivity device
MED inventory information of master board:
HardwareRev : Ver.A
FirmwareRev : 118
SoftwareRev : 7.1.034 Alpha 2203
SerialNum : DPPMWWB123456
Manufacturer name : H3C
Model name : H3C S5820V2-52QF
Asset tracking identifier : Unknown
LLDP local-information of port 1[Ten-GigabitEthernet1/0/]:
Port ID type : Interface name
Port ID : Ten-GigabitEthernet1/0/]
Port description : Ten-GigabitEthernet1/0/] Interface
Management address type : All802
Management address : 00a0-fc00-583c
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) : 0
Port and protocol VLAN supported : No
Port and protocol VLAN enabled : No
VLAN name of VLAN 1 : VLAN 0001
DCBX Control subTLV info:
Oper version : Ver 1.00
Sequence number : 1
Acknowledge number : 0
DCBX ETS subTLV info:
CoS Local priority Percentage
0 2 7
1 15 0
2 1 4
3 3 11
4 4 14
5 5 18
6 6 21
7 7 25
DCBX PFC subTLV info:
P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0
DCBX APP subTLV info:
CoS map: 0x10
Auto-negotiation supported : No
Auto-negotiation enabled : No
OperMau : -
Power port class : PSE
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame size : 10000
# 顯示所有待發送的LLDP信息(假設DCBX的版本為1.01)。
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 00a0-fc00-5800
System name : H3C
System description : H3C Comware Platform Software, Software Version 7.1.034,
Alpha 2203
H3C S5820V2-52QF
Copyright (c) 2004-2012 Hangzhou H3C Tech. Co., Ltd. All
rights reserved.
System capabilities supported : Bridge, Router
System capabilities enabled : Bridge, Router
MED information:
Device class : Connectivity device
MED inventory information of master board:
HardwareRev : Ver.A
FirmwareRev : 118
SoftwareRev : 7.1.034 Alpha 2203
SerialNum : DPPMWWB123456
Manufacturer name : H3C
Model name : H3C S5820V2-52QF
Asset tracking identifier : Unknown
LLDP local-information of port 1[Ten-GigabitEthernet1/0/]:
Port ID type : Interface name
Port ID : Ten-GigabitEthernet1/0/]
Port description : Ten-GigabitEthernet1/0/] Interface
Management address type : All802
Management address : 00a0-fc00-583c
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) : 0
Port and protocol VLAN supported : No
Port and protocol VLAN enabled : No
VLAN name of VLAN 1 : VLAN 0001
DCBX control subTLV info:
Oper version : Ver 1.01
Sequence number : 1
Acknowledge number : 0
DCBX ETS subTLV info:
CoS Local priority Percentage
0 2 7
1 15 0
2 1 4
3 3 11
4 4 14
5 5 18
6 6 21
7 7 25
DCBX PFC subTLV info:
P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0
Number of traffic classes supported: 8
DCBX APP subTLV info:
ID type Protocol ID CoS map
APP protocol 0x8906 0x10
APP protocol 0x8914 0x20
TCP or UDP port 23 0xEA
Auto-negotiation supported : No
Auto-negotiation enabled : No
OperMau : -
Power port class : PSE
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame size : 10000
表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:表示支持路由功能 |
System capabilities enabled |
係統已使能的功能: · Bridge:表示交換功能已使能 · Router:表示路由功能已使能 |
MED information |
MED相關信息 |
Device class |
MED設備類型: · Connectivity device:表示網絡設備 · Class I:表示一般終端設備,即所有需要LLDP發現服務的終端設備 · Class II:表示媒體終端設備,即具備媒體能力的終端設備,其能力包含了一般終端設備的能力。該類設備支持媒體流 · Class III:表示通訊終端設備,即直接支持目標用戶IP通訊係統的終端設備,其能力包含了一般終端設備和媒體終端設備的所有能力。該類設備直接被目標用戶所使用 |
MED inventory information of master board |
IRF中Master設備的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 |
端口描述 |
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 1 |
VLAN 1的名稱 |
DCBX control subTLV info |
顯示DCBX控製TLV的信息 |
Oper version |
DCBX版本號 |
Sequence number |
DCBX TLV內容改變的次數 |
Acknowledge number |
對端設備同步配置的次數 |
DCBX ETS subTLV info |
CoS與本地優先級的映射關係及對應的帶寬分配情況 |
CoS |
CoS值 |
Local priority |
本地優先級 |
Percentage |
對應的帶寬分配 |
DCBX PFC subTLV info |
PFC功能開啟情況 |
P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0 |
本端各802.1p優先級的PFC功能開啟狀態:1表示開啟,0表示關閉 |
Number of traffic classes supported |
PFC支持的能力集,隻在1.01版本中顯示該項 |
DCBX APP subTLV info |
應用協議與CoS的映射關係,在1.0版本中隻顯示下麵的CoS map信息 |
ID type |
應用協議號的類型,包括: · APP protocol · TCP or UDP port |
Protocol ID |
應用協議號 |
CoS map |
應用協議與CoS的映射關係 |
Auto-negotiation supported |
端口是否支持自協商 |
Auto-negotiation enabled |
端口是否已使能自協商 |
OperMau |
端口自適應的速率和雙工狀態(本係列交換機Release22XX係列軟件版本暫不支持顯示此信息) |
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 |
Link aggregation supported |
端口是否支持鏈路聚合 |
Link aggregation enabled |
端口是否已使能鏈路聚合 |
Aggregation port ID |
聚合組中該成員端口的編號,未使能鏈路聚合功能時為0 |
Maximum frame size |
端口支持的最大幀長度 |
display lldp neighbor-information命令用來顯示由鄰居設備發來的LLDP信息,這些信息是由鄰居設備組織成TLV並發送給本設備的。
【命令】
display lldp neighbor-information [ interface interface-type interface-number [ verbose ] | list [ system-name system-name ] | verbose ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定接口收到的由鄰居設備發來的LLDP信息,interface-type interface-number表示接口類型和接口編號。如果未指定該參數,將顯示所有接口收到的由鄰居設備發來的LLDP信息。
verbose:顯示由鄰居設備發來的LLDP詳細信息。如果未指定該參數,將顯示由鄰居設備發來的LLDP概要信息。
list:按列表顯示由鄰居設備發來的LLDP信息。
system-name system-name:按列表顯示由指定鄰居設備發來的LLDP信息。system-name表示鄰居設備的係統名稱,為1~255個字符的字符串。如果未指定該參數,將按列表顯示由所有鄰居設備發來的LLDP信息。
【舉例】
# 顯示所有接口收到的由鄰居設備發來的LLDP詳細信息(假設DCBX的版本為1.00)。
<Sysname> display lldp neighbor-information verbose
LLDP neighbor-information of port 1[Ten-GigabitEthernet1/0/1]:
LLDP neighbor index : 1
Update time : 0 days, 2 hours, 6 minutes, 38 seconds
LLDP mac type : Nearest Bridge
Chassis type : MAC address
Chassis ID : 0023-8912-3d06
Port ID type : Interface name
Port ID : Ten-GigabitEthernet1/0/1
Time to live : 120
Port description : Ten-GigabitEthernet1/0/1 Interface
System name : sysname
System description : H3C Comware Platform Software, Software Version 7.1.035,
Alpha 0035P05
H3C S10504
Copyright (c) 2004-2012 Hangzhou H3C Tech. Co., Ltd. All
rights reserved.
System capabilities supported : Bridge, Router
System capabilities enabled : Bridge, Router
Management address type : IPv4
Management address : 10.0.1.1
Management address interface type : IfIndex
Management address interface ID : 3858
Management address OID : 0
Port VLAN ID(PVID) : 20
DCBX Control subTLV info:
Oper version : Ver 1.00
Sequence number : 1
Acknowledge number : 0
DCBX ETS subTLV info:
CoS Local priority Percentage
0 2 7
1 15 0
2 1 4
3 3 11
4 4 14
5 5 18
6 6 21
7 7 25
DCBX PFC subTLV info:
P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0
DCBX APP subTLV info:
CoS map: 0x10
Auto-negotiation supported : No
Auto-negotiation enabled : No
OperMau : -
Power port class : PSE
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame size : 9216
CDP neighbor-information of port 1[Ten-GigabitEthernet1/0/1]:
CDP neighbor index : 2
Chassis ID : Switch
Addresses : 10.0.1.2
Port ID : Ten-GigabitEthernet1/0/33
Software version : Cisco IOS Software, C3750 Software (C3750-ADVIPSERVICESK9
-M), Version 12.2(25)SED1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Tue 22-Nov-05 23:37 by yenanh
Platform version : cisco WS-C3750G-48TS
Duplex : Full
Time to live : 180
# 顯示所有接口收到的由鄰居設備發來的LLDP詳細信息(假設DCBX的版本為1.01)。
<Sysname> display lldp neighbor-information verbose
LLDP neighbor-information of port 1[Ten-GigabitEthernet1/0/1]:
LLDP neighbor index : 1
Update time : 0 days, 2 hours, 6 minutes, 38 seconds
LLDP mac type : Nearest Bridge
Chassis type : MAC address
Chassis ID : 0023-8912-3d06
Port ID type : Interface name
Port ID : Ten-GigabitEthernet1/0/1
Time to live : 120
Port description : Ten-GigabitEthernet1/0/1 Interface
System name : sysname
System description : H3C Comware Platform Software, Software Version 7.1.035,
Alpha 0035P05
H3C S10504
Copyright (c) 2004-2012 Hangzhou H3C Tech. Co., Ltd. All
rights reserved.
System capabilities supported : Bridge, Router
System capabilities enabled : Bridge, Router
Management address type : IPv4
Management address : 10.0.1.1
Management address interface type : IfIndex
Management address interface ID : 3858
Management address OID : 0
Port VLAN ID(PVID) : 20
DCBX control subTLV info:
Oper version : Ver 1.01
Sequence number : 1
Acknowledge number : 0
DCBX ETS subTLV info:
CoS Local priority Percentage
0 2 7
1 15 0
2 1 4
3 3 11
4 4 14
5 5 18
6 6 21
7 7 25
DCBX PFC subTLV info:
P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0
Number of traffic classes supported: 8
DCBX APP subTLV info:
ID type Protocol ID CoS map
APP protocol 0x8906 0x10
APP protocol 0x8914 0x20
TCP or UDP port 23 0xEA
Auto-negotiation supported : No
Auto-negotiation enabled : No
OperMau : -
Power port class : PSE
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame size : 9216
CDP neighbor-information of port 1[Ten-GigabitEthernet1/0/1]:
CDP neighbor index : 2
Chassis ID : Switch
Addresses : 10.0.1.2
Port ID : Ten-GigabitEthernet1/0/33
Software version : Cisco IOS Software, C3750 Software (C3750-ADVIPSERVICESK9
-M), Version 12.2(25)SED1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Tue 22-Nov-05 23:37 by yenanh
Platform version : cisco WS-C3750G-48TS
Duplex : Full
Time to live : 180
# 顯示所有接口收到的由鄰居設備發來的LLDP概要信息。
<Sysname> display lldp neighbor-information
LLDP neighbor-information of port 52[Ten-GigabitEthernet1/0/3]:
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
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信息。
<Sysname> display lldp neighbor-information list
Chassis ID : * -- Nearest non-tpmr bridge neighbor
# -- Nearest customer bridge neighbor
System name Local interface Chassis ID Port ID
System1 XGE1/0/1 000f-e25d-ee91 Ten-GigabitEthernet1/0/5
System2 XGE1/0/2 000f-e25d-ee92 Ten-GigabitEthernet1/0/6
System3 XGE1/0/3 000f-e25d-ee93 Ten-GigabitEthernet1/0/7
表1-2 display lldp neighbor-information命令顯示信息描述表
字段 |
描述 |
LLDP鄰居的顯示信息: |
|
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取相應類型的值 |
Chassis ID : * -- Nearest non-tpmr bridge neighbor # -- Nearest customer bridge neighbor |
Chassis ID標記,*表示最近的non-tpmr橋鄰居,#表示最近的customer橋鄰居 |
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:表示支持隻作站點功能 · Other:表示支持不在上述列表的其它功能 |
System capabilities enabled |
係統已使能的功能: · Repeater:表示信號中繼功能已使能 · Bridge:表示交換功能已使能 · WlanAccessPoint:表示無線接入點功能已使能 · Router:表示路由功能已使能 · Telephone:表示電話功能已使能 · DocsisCableDevice:表示電纜設備功能已使能 · StationOnly:表示隻作站點功能已使能 · Other:表示不在上述列表的其它功能已使能 |
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 10 |
VLAN 10的名稱 |
DCBX control subTLV info |
顯示DCBX控製TLV的信息 |
Oper version |
DCBX版本號 |
Sequence number |
DCBX TLV內容改變的次數 |
Acknowledge number |
對端設備同步配置的次數 |
DCBX ETS subTLV info |
CoS與本地優先級的映射關係及對應的帶寬分配情況 |
CoS |
CoS值 |
Local priority |
本地優先級 |
Percentage |
對應的帶寬分配 |
DCBX PFC subTLV info |
PFC功能開啟情況 |
P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0 |
本端各802.1p優先級的PFC功能開啟狀態:1表示開啟,0表示關閉 |
Number of traffic classes supported |
PFC支持的能力集,隻在1.01版本中顯示該項 |
DCBX APP subTLV info |
應用協議與CoS的映射關係,在1.0版本中隻顯示下麵的CoS map信息 |
ID type |
應用協議號的類型,包括: · APP protocol · TCP or UDP port |
Protocol ID |
應用協議號 |
CoS map |
應用協議與CoS的映射關係 |
Auto-negotiation supported |
端口是否支持自協商 |
Auto-negotiation enabled |
端口是否已使能自協商 |
OperMau |
端口自適應的速率和雙工狀態(本係列交換機Release22XX係列軟件版本暫不支持顯示此信息) |
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 |
Link aggregation supported |
端口是否支持鏈路聚合 |
Link aggregation enabled |
端口是否已使能鏈路聚合 |
Aggregation port ID |
聚合組中該成員端口的編號,未使能鏈路聚合功能時為0 |
Maximum frame size |
端口支持的最大幀長度 |
Unknown basic TLV(僅在收到未知的基本TLV時支持此顯示信息) |
未知的基本TLV |
TLV type(僅在收到未知的基本TLV時支持此顯示信息) |
未知的基本TLV類型 |
TLV information(僅在收到未知的基本TLV時支持此顯示信息) |
未知的基本TLV的具體信息 |
Unknown organizationally-defined TLV(僅在收到未知組織定義的TLV時支持此顯示信息) |
未知組織定義的TLV |
TLV OUI(僅在收到未知組織定義的TLV時支持此顯示信息) |
未知組織定義TLV對象的唯一標識 |
TLV subtype(僅在收到未知組織定義的TLV時支持此顯示信息) |
未知的組織定義的TLV類型 |
Index(僅在收到未知組織定義的TLV時支持此顯示信息) |
未知組織的索引 |
Local Interface |
接收LLDP信息的本端端口 |
CDP鄰居的顯示信息: |
|
CDP neighbor-information of port 1 |
端口1的CDP鄰居信息 |
CDP neighbor index |
CDP鄰居索引 |
Chassis ID/subtype |
Chassis ID值及Chassis ID類型 |
Address |
CDP鄰居設備上與本設備相連端口的IPv4地址 |
Port ID/subtype |
Port ID值及PortID類型 |
Software version |
鄰居軟件版本 |
Platform version |
鄰居平台版本 |
Duplex |
雙工狀態 |
display lldp statistics命令用來顯示LLDP的統計信息。
【命令】
display lldp statistics [ global | interface interface-type interface-number ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
global:顯示全局LLDP統計信息。
interface interface-type interface-number:顯示指定接口上的LLDP統計信息,interface-type interface-number表示接口類型和接口編號。
【使用指導】
如果未指定任何參數,將同時顯示全局和接口上的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 [Ten-GigabitEthernet1/0/1]:
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 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鄰居信息總數 |
The number of CDP frames transmitted |
發送的CDP幀總數 |
The number of CDP frames received |
收到的CDP幀總數 |
The number of CDP frames discarded |
丟棄的CDP幀總數 |
The number of CDP error frames |
收到的錯誤CDP幀總數 |
display lldp status命令用來顯示LLDP的狀態信息。
【命令】
display lldp status [ interface interface-type interface-number ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定接口上的LLDP狀態信息,interface-type interface-number表示接口類型和接口編號。如果未指定該參數,將顯示所有使能了LLDP功能的接口上的LLDP狀態信息。
【舉例】
# 顯示全局和所有接口上的LLDP狀態信息。
<Sysname> display lldp status
Global status of LLDP: Enable
The current number of LLDP neighbors: 0
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days, 0 hours, 4 minutes, 40 seconds
Transmit interval : 30s
Hold multiplier : 4
Reinit delay : 2s
Transmit delay : 2s
Trap interval : 5s
Fast start times : 3
LLDP status information of Port 1 [Ten-GigabitEthernet1/0/1]:
Port status of LLDP : Enable
Admin status : Tx_Rx
Trap flag : No
MED trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 0
Number of MED neighbors : 0
Number of CDP neighbors : 0
Number of sent optional TLV : 23
Number of received unknown TLV : 0
表1-4 display lldp status命令顯示信息描述表
字段 |
描述 |
Global status of LLDP |
LLDP功能是否已全局使能 |
The current number of LLDP neighbors |
當前設備的LLDP鄰居總數 |
The current number of CDP neighbors |
當前設備的CDP鄰居總數 |
LLDP neighbor information last changed time |
鄰居信息的最後更新時間 |
Transmit interval |
LLDP報文的發送間隔 |
Hold multiplier |
TTL乘數 |
Reinit delay |
端口初始化延遲時間 |
Transmit delay |
LLDP報文的發送延遲 |
Trap interval |
Trap信息的發送間隔 |
Fast start times |
快速發送LLDP報文的個數 |
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 CDP neighbors |
端口CDP鄰居設備的數量 |
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 ]
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【參數】
interface interface-type interface-number:顯示指定接口上可發送的可選TLV信息,interface-type interface-number表示接口類型和接口編號。如果未指定該參數,將顯示所有接口上可發送的可選TLV信息。
【舉例】
# 顯示接口Ten-GigabitEthernet1/0/1上可發送的可選TLV信息。
<Sysname> display lldp tlv-config interface ten-gigabitethernet 1/0/1
LLDP tlv-config of port 1[Ten-GigabitEthernet1/0/1]:
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
DCBX TLV NO NO
IEEE 802.3 extend TLV:
MAC-Physic TLV YES YES
Power via MDI TLV YES YES
Link Aggregation TLV YES YES
Maximum Frame Size TLV YES YES
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
表1-5 display lldp tlv-config命令顯示信息描述表
字段 |
描述 |
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 |
DCBX TLV |
DCBX(Data Center Bridging Exchange Protocol,數據中心橋能力交換協議) 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 |
lldp admin-status命令用來配置LLDP的工作模式。
undo lldp admin-status命令用來恢複缺省情況。
【命令】
lldp admin-status { disable | rx | tx | txrx }
undo lldp admin-status
【缺省情況】
LLDP的工作模式為TxRx,既發送也接收LLDP報文。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
disable:表示工作模式為Disable,既不發送也不接收LLDP報文。
rx:表示工作模式為Rx,隻接收不發送LLDP報文。
tx:表示工作模式為Tx,隻發送不接收LLDP報文。
txrx:表示工作模式為TxRx,既發送也接收LLDP報文。
【舉例】
# 配置接口Ten-GigabitEthernet1/0/1上LLDP的工作模式為Rx。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp admin-status rx
lldp agent nearest-nontpmr admin-status命令用來配置LLDP最近非TPMR橋代理的工作模式。
undo lldp agent nearest-nontpmr admin-status命令用來恢複缺省情況。
【命令】
lldp agent nearest-nontpmr admin-status txrx
undo lldp agent nearest-nontpmr admin-status
【缺省情況】
最近非TPMR橋代理工作模式為Disable,既不發送也不接收LLDP報文。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
txrx:表示工作模式為TxRx,既發送也接收LLDP報文。
【舉例】
# 在接口Ten-GigabitEthernet1/0/1上配置LLDP最近非TPMR橋代理的工作模式為TxRx。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname- Ten-GigabitEthernet1/0/1] lldp agent nearest-nontpmr admin-status txrx
lldp check-change-interval命令用來使能輪詢功能並配置輪詢間隔。
undo lldp check-change-interval命令用來關閉輪詢功能。
【命令】
lldp check-change-interval interval
undo lldp check-change-interval
【缺省情況】
輪詢功能處於關閉狀態。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
interval:表示輪詢間隔,取值範圍為1~30,單位為秒。
【舉例】
# 在接口Ten-GigabitEthernet1/0/1上使能輪詢功能,並配置輪詢間隔為30秒。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp check-change-interval 30
lldp compliance admin-status cdp命令用來配置LLDP兼容CDP功能的工作模式。
undo lldp compliance admin-status cdp命令用來恢複缺省情況。
【命令】
lldp compliance admin-status cdp { disable | txrx }
undo lldp compliance admin-status cdp
【缺省情況】
LLDP兼容CDP功能的工作模式為Disable,既不發送也不接收CDP報文。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
disable:表示工作模式為Disable,既不發送也不接收CDP報文。
txrx:表示工作模式為TxRx,既發送也接收CDP報文。
【使用指導】
欲使LLDP兼容CDP的功能生效,必須先使能LLDP兼容CDP功能,同時將LLDP兼容CDP功能的工作模式配置為TxRx。
【舉例】
# 使能LLDP兼容CDP功能,並在接口Ten-GigabitEthernet1/0/1上配置LLDP兼容CDP功能的工作模式為TxRx。
<Sysname> system-view
[Sysname] lldp compliance cdp
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp compliance admin-status cdp txrx
【相關命令】
· lldp compliance cdp
lldp compliance cdp命令用來使能LLDP兼容CDP功能。
undo lldp compliance cdp命令用來恢複缺省情況。
【命令】
lldp compliance cdp
undo lldp compliance cdp
【缺省情況】
LLDP兼容CDP功能處於關閉狀態。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【使用指導】
由於CDP報文所攜Time To Live TLV中TTL的最大值為255,而CDP報文的發送間隔由LLDP報文的發送間隔控製,因此為保證LLDP兼容CDP功能的正常運行,建議配置LLDP報文的發送間隔值不大於實際TTL的1/3。
【舉例】
# 使能LLDP兼容CDP功能。
<Sysname> system-view
[Sysname] lldp compliance cdp
【相關命令】
· lldp hold-multiplier
· lldp timer tx-interval
lldp enable命令用來在接口上使能LLDP功能。
undo lldp enable命令用來在接口上關閉LLDP功能。
【命令】
lldp enable
undo lldp enable
【缺省情況】
接口上的LLDP功能處於使能狀態。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【使用指導】
隻有當全局和接口上都使能了LLDP功能後,該功能才會生效。
【舉例】
# 在接口Ten-GigabitEthernet1/0/1上關閉LLDP功能。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] undo lldp enable
【相關命令】
· lldp global enable
lldp encapsulation snap命令用來配置LLDP報文的封裝格式為SNAP格式。
undo lldp encapsulation命令用來恢複缺省情況。
【命令】
lldp encapsulation snap
undo lldp encapsulation
【缺省情況】
LLDP報文的封裝格式為Ethernet II格式。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【使用指導】
LLDP CDP報文的封裝格式隻能為SNAP格式,不能為Ethernet II格式。
【舉例】
# 配置接口Ten-GigabitEthernet1/0/1上發送的LLDP報文的封裝格式為SNAP格式。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp encapsulation snap
lldp fast-count命令用來配置快速發送LLDP報文的個數。
undo lldp fast-count命令用來恢複缺省情況。
【命令】
lldp fast-count count
undo lldp fast-count
【缺省情況】
快速發送LLDP報文的個數為3個。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
count:表示快速發送LLDP報文的個數,取值範圍為1~10,單位為個。
【使用指導】
當LLDP報文的快速發送機製啟動後,設備會將LLDP報文的發送周期縮短為1秒,並連續發送指定數量的LLDP報文後再恢複為正常的發送周期,該數量可通過本命令進行修改。
【舉例】
# 配置快速發送LLDP報文的個數為4個。
<Sysname> system-view
[Sysname] lldp fast-count 4
lldp global enable命令用來全局使能LLDP功能。
undo lldp global enable命令用來全局關閉LLDP功能。
【命令】
lldp global enable
undo lldp global enable
【缺省情況】
· 設備采用空配置啟動時,LLDP功能在全局處於關閉狀態。
· 設備采用缺省配置文件啟動時,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報文的發送間隔)),即取65535與(TTL乘數×LLDP報文的發送間隔)中的最小值,因此通過調整TTL乘數可以控製本設備信息在鄰居設備上的老化時間。
【舉例】
# 配置TTL乘數為6。
<Sysname> system-view
[Sysname] lldp hold-multiplier 6
【相關命令】
· lldp timer tx-interval
lldp management-address-format string命令用來配置管理地址在TLV中的封裝格式為字符串格式。
undo lldp management-address-format命令用來恢複缺省情況。
【命令】
lldp management-address-format string
undo lldp management-address-format
【缺省情況】
管理地址在TLV中的封裝格式為數字格式。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【使用指導】
如果鄰居將管理地址以字符串格式封裝在TLV中,用戶可在本地設備上也將封裝格式改為字符串,以保證與鄰居設備的正常通信。
【舉例】
# 在接口Ten-GigabitEthernet1/0/1上配置管理地址在TLV中的封裝格式為字符串格式。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp management-address-format string
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
【舉例】
# 在接口Ten-GigabitEthernet1/0/1上使能LLDP-MED Trap功能。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-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 notification remote-change enable
undo lldp notification remote-change enable
【缺省情況】
LLDP Trap功能處於關閉狀態。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【舉例】
# 在接口Ten-GigabitEthernet1/0/1上使能LLDP Trap功能。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp notification remote-change enable
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信息的發送間隔均為5秒。
【視圖】
係統視圖
【缺省用戶角色】
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-delay命令用來配置LLDP報文的發送延遲。
undo lldp timer tx-delay命令用來恢複缺省情況。
【命令】
lldp timer tx-delay delay
undo lldp timer tx-delay
【缺省情況】
LLDP報文的發送延遲為2秒。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
delay:表示LLDP報文的發送延遲,取值範圍為1~8192,單位為秒。
【使用指導】
· 建議將LLDP報文的發送延遲配置為不大於其發送間隔的四分之一。
· 如果所配置的LLDP報文的發送延遲大於其發送間隔,那麼其實際發送間隔將以其發送延遲的取值為準。
【舉例】
# 配置LLDP報文的發送延遲為4秒。
<Sysname> system-view
[Sysname] lldp timer tx-delay 4
【相關命令】
· lldp timer tx-interval
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報文的發送間隔配置為不小於其發送延遲的四倍。
· 如果所配置的LLDP報文的發送間隔小於其發送延遲,那麼其實際發送間隔將以其發送延遲的取值為準。
【舉例】
# 配置LLDP報文的發送間隔為20秒。
<Sysname> system-view
[Sysname] lldp timer tx-interval 20
【相關命令】
· lldp timer tx-delay
lldp tlv-enable命令用來配置接口上允許發布的TLV類型。
undo lldp tlv-enable命令用來配置接口上禁止發布的TLV類型。
【命令】
lldp tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | dcbx | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } | network-policy | power-over-ethernet } }
undo lldp tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | dcbx | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id | network-policy | power-over-ethernet } }
【缺省情況】
以太網接口上允許發布除DCBX TLV、Location Identification TLV、VLAN Name TLV和Protocol VLAN ID TLV之外所有類型的TLV。
【視圖】
以太網接口視圖
【缺省用戶角色】
network-admin
【參數】
all:在以太網接口視圖下指定basic-tlv、dot1-tlv或dot3-tlv時,本參數表示該類型下所有的可選TLV;指定med-tlv時,本參數都表示該類型下除location-id以外所有的可選TLV。
basic-tlv:表示基本類型TLV。
management-address-tlv [ ip-address ]:表示Management Address TLV。ip-address為所要發布的管理地址,其缺省值在以太網接口上為該端口允許通過的、對應VLAN接口上配置有IP地址且處於up狀態的最小VLAN的主IP地址(如果該端口允許通過的所有VLAN所對應的VLAN接口上都未配置IP地址或均處於down狀態,則不發布管理地址)。
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。
dcbx:表示Data Center Bridging Exchange Protocol 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。
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表示設備類型為Switch,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:表示Network Policy TLV。
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將不會被發布,不論其是否被允許發布。
【舉例】
# 配置接口Ten-GigabitEthernet1/0/1上允許發布IEEE 802.3組織定義的Link Aggregation可選TLV。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot3-tlv link-aggregation
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!