• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

04-二层技术-以太网交换命令参考

目录

11-LLDP命令

本章节下载 11-LLDP命令  (605.27 KB)

11-LLDP命令


1 LLDP

1.1  LLDP配置命令

1.1.1  cdp voice-vlan

cdp voice-vlan命令用来配置CDP报文携带的Voice VLAN ID。

undo cdp voice-vlan命令用来恢复缺省情况。

【命令】

cdp voice-vlan vlan-id

undo cdp voice-vlan

【缺省情况】

未配置CDP报文携带的Voice VLAN ID。

【视图】

二层以太网接口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

vlan-id:要发布的Voice VLAN ID,取值范围为1~4094。

【使用指导】

配置本命令后,设备当前接口向对端IP电话发送的CDP报文携带的Voice VLAN ID为本命令配置的VLAN ID。

对端IP电话收到本端发送的CDP报文后,会根据报文中携带的Voice VLAN ID发送语音数据。

【举例】

# 配置CDP报文携带的Voice VLAN ID为100。

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] cdp voice-vlan 100

1.1.2  display lldp local-information

display lldp local-information命令用来显示LLDP本地信息。

【命令】

display lldp local-information [ global | interface interface-type interface-number ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-operator

【参数】

global:显示全局LLDP本地信息。

interface interface-type interface-number:显示指定接口上的LLDP本地信息,interface-type interface-number表示接口类型和接口编号。

【使用指导】

如果未指定任何参数,将显示所有LLDP本地信息,包括全局LLDP信息以及所有开启了LLDP功能且状态为up的接口上的LLDP信息。

【举例】

# 显示所有LLDP本地信息。

<Sysname> display lldp local-information

Global LLDP local-information:

 Chassis ID          : 00e0-fc00-5600

 System name         : Sysname

 System description  :

   H3C Comware Platform Software, Software Version 7.1.070, 7.1.070, ESS 7634P01

   H3C S7506E

   Copyright (c) 2004-2012 New H3C Technologies Co., Ltd. All rights reserved.

 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                : 7.1.070 ESS 7634P01

 SerialNum                  : NONE

 Manufacturer name          : H3C

 Model name                 : H3C S7506E

 Asset tracking identifier  : Unknown

LLDP local-information of port 52[Ten-GigabitEthernet1/0/3]:

 Port ID type       : Interface name

 Port ID            : Ten-GigabitEthernet1/0/3

 Port description   : Ten-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

 VLAN name of VLAN 13: VLAN 0013

 VLAN name of VLAN 14: VLAN 0014

 Management VLAN ID  : 5

 Link aggregation supported : Yes

 Link aggregation enabled   : Yes

 Aggregation port ID        : 52

 Auto-negotiation supported : Yes

 Auto-negotiation enabled   : Yes

 OperMau                    : Speed(1000)/Duplex(Full)

 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

 Power type                 : Type 2 PSE

 Power source               : Primary

 Power priority             : Unknown

 PD requested power value   : 0.0 w

 PSE allocated power value  : 74.9 w

 PD requested power value mode A         : 0.0 W

 PD requested power value mode B         : 0.0 W

 PSE allocated power value alternative A : 0.0 W

 PSE allocated power value alternative B : 0.0 W

 PSE powering status                     : 2-pair powering

 PD powered status                       : Reserved

 PSE power pairs ext                     : Alternative A

 Dual-signature power class ext mode A   : Single-signature PD or 2-pair only PSE

 Dual-signature power class ext mode B   : Single-signature PD or 2-pair only PSE

 Power class ext                         : Class4

 Power type ext                          : Type 3 PSE

 PD load                                 : No

 PSE maximum available power             : 100.0 W

 Autoclass support                       : Yes

 Autoclass completed                     : No

 Autoclass request                       : No

 Maximum frame size         : 10000

 Transmit Tw                : 0 us

 Receive Tw                 : 0 us

 Fallback Tw                : 0 us

 Echo Transmit Tw           : 0 us

 Echo Receive Tw            : 0 us

 PoE PSE power source       : Primary

 Port PSE priority          : Critical

 Port available power value : 0.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:表示支持路由功能

·     Repeater:表示支持信号中继功能

·     Telephone:表示支持电话功能

·     DocsisCableDevice:表示支持电缆设备功能

·     StationOnly:表示支持只作站点功能

·     Customer Bridge:表示支持客户桥功能

·     Service Bridge:表示支持服务桥功能

·     TPMR:表示支持双端口MAC中继功能

·     Other:表示支持不在上述列表的其它功能

System capabilities enabled

系统已开启的功能:

·     Bridge:表示交换功能已开启

·     Router:表示路由功能已开启

·     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)

端口PVID

Port and protocol VLAN ID(PPVID)

端口协议VLAN ID

Port and protocol VLAN supported

是否支持端口协议VLAN

Port and protocol VLAN enabled

是否已开启端口协议VLAN

VLAN name of VLAN vlan-id

端口实际发送的VLAN name TLV中包含的VLAN名称,最多显示10个VLAN名称

Management VLAN ID

管理VLAN ID

Link aggregation supported

端口是否支持链路聚合

Link aggregation enabled

端口是否已开启链路聚合

Aggregation port ID

聚合组中该成员端口的编号,未开启链路聚合功能时为0

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

2线对模式、单签名PD的请求功率值,单位为瓦特

PSE allocated power value

PSE为2线对模式、单签名PD分配的功率值,单位为瓦特

PD requested power value mode A

在4线对模式下,双签名PD在通道A的请求功率值,单位为瓦特

PD requested power value mode B

在4线对模式下,双签名PD在通道B的请求功率值,单位为瓦特

PSE allocated power value alternative A

在4线对模式下,PSE在通道A分配功率值,单位为瓦特

PSE allocated power value alternative B

在4线对模式下,PSE在通道B分配功率值,单位为瓦特

PSE powering status

PSE供电状态:

·     Reserved:表示供电状态未知

·     2-pair powering:表示采用2线对模式供电

·     4-pair powering single-signature PD:表示采用4线对模式为单签名PD供电

·     4-pair powering dual-signature PD:表示采用4线对模式为双签名PD供电

PD powered status

PD受电状态:

·     Reserved:表示受电状态未知

·     Powered single-signature PD:表示单签名PD受电状态

·     2-pair Powered dual-signature PD:表示双签名PD在2线对模式受电状态

·     4-pair powered dual-signature PD:表示双签名PD在4线对模式受电状态

PSE power pairs ext

PoE端口的远程供电模式:

·     Reserved:表示供电模式未知

·     Alternative A:表示PSE采用通道A供电模式

·     Alternative B:表示PSE采用通道B供电模式

·     Both Alternatives:表示PSE采用两个通道同时供电模式

Dual-signature power class ext mode A

连接双签名PD时,PSE在通道A的功率分级:

·     Reserved:表示功率级别未知

·     Class 1:表示级别1

·     Class 2:表示级别2

·     Class 3:表示级别3

·     Class 4:表示级别4

·     Class 5:表示级别5

·     Single-signature PD or 2-pair only PSE:表示连接单签名PD或采用2线对供电PSE

Dual-signature power class ext mode B

连接双签名PD时,PSE在通道B的功率分级:

·     Reserved:表示功率级别未知

·     Class 1:表示级别1

·     Class 2:表示级别2

·     Class 3:表示级别3

·     Class 4:表示级别4

·     Class 5:表示级别5

·     Single-signature PD or 2-pair only PSE:表示连接单签名PD或采用2线对模式供电PSE

Power class ext

连接单签名PD或者采用2线对模式供电的PSE功率分级:

·     Reserved:表示功率级别未知

·     Class 1:表示级别1

·     Class 2:表示级别2

·     Class 3:表示级别3

·     Class 4:表示级别4

·     Class 5:表示级别5

·     Class 6:表示级别6

·     Class 7:表示级别7

·     Class 8:表示级别8

·     Dual-signature PD:表示连接双签名PD

Power type ext

供电类型:

·     Type 3 PSE:表示类型3 PSE

·     Type 4 PSE:表示类型4 PSE

·     Type 3 single-signature PD:表示类型3 单签名PD

·     Type 3 dual-signature PD:表示类型3 双签名PD

·     Type 4 single-signature PD:表示类型4 单签名PD

·     Type 4 dual-signature PD:表示类型4 双签名PD

·     Reserved:表示电源类型未知

PD load

是否连接双签名PD,且通道A和通道B是单独协商供电

PSE maximum available power

PSE上端口可以提供的最大功率

Autoclass support

PSE是否支持硬件自动分级

Autoclass completed

PSE是否完成硬件自动分级

Autoclass request

PD是否请求硬件自动分级

Maximum frame size

端口支持的最大帧长度,NA表示端口不支持配置超长帧

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

收到的对端请求的等待时间,单位为微秒

 

1.1.3  display lldp neighbor-information

display lldp neighbor-information命令用来显示由邻居设备发来的LLDP信息。

【命令】

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

mdc-admin

mdc-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[Ten-GigabitEthernet1/0/1]:

LLDP agent nearest-bridge:

 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             : Ten-GigabitEthernet1/0/1

 Time to live        : 121

 Port description    : Ten-GigabitEthernet1/0/1 Interface

 System name         : Sysname

 System description  :

   H3C Comware Platform Software, Software Version 7.1.070, 7.1.070, ESS 7634P01

   H3C S7506E

   Copyright (c) 2004-2012 New H3C Technologies Co., Ltd. All rights reserved.

 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

 VLAN name of VLAN 13: VLAN 0013

 VLAN name of VLAN 14: VLAN 0014

 VLAN name of VLAN 110: VLAN 0110

 Link aggregation supported : Yes

 Link aggregation enabled   : Yes

 Aggregation port ID        : 52

 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

 PD requested power value mode A         : 0.0 w

 PD requested power value mode B         : 0.0 w

 PSE allocated power value alternative A : 0.0 w

 PSE allocated power value alternative B : 0.0 w

 PSE powering status                     : 2-pair powering

 PD powered status                       : 2-pair powered dual-signature PD

 PSE power pairs ext                     : Alternative A

 Dual-signature power class ext mode A   : Single-signature PD or 2-pair only PSE

 Dual-signature power class ext mode B   : Single-signature PD or 2-pair only PSE

 Power class ext                         : Class 4

 Power type ext                          : Type 3 dual-signature PD

 PD load                                 : No

 PSE maximum available power             : 0.0 w

 Autoclass support                       : Yes

 Autoclass completed                     : No

 Autoclass request                       : No

 Maximum frame size         : 10000

 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

 

CDP neighbor-information of port 1[Ten-GigabitEthernet1/0/1]:

LLDP agent nearest-bridge:

 CDP neighbor index  : 4

 Chassis ID          : SEP00260B5C0548

 Port ID             : Port 1

 Software version    : SCCP41.8-4-1S

 Platform version    : Cisco IP Phone 7941

 Duplex              : Full

 Time to live        : 180

# 显示所有接口所有类型LLDP代理收到的由邻居设备发来的LLDP概要信息。

<Sysname> display lldp neighbor-information

LLDP neighbor-information of port 52[Ten-GigabitEthernet1/0/3]:

LLDP agent nearest-bridge:

 LLDP neighbor index : 3

 ChassisID/subtype   : 0011-2233-4400/MAC address

 PortID/subtype      : 000c-29f5-c71f/MAC address

 Capabilities        : Bridge, Router, Customer Bridge

 

 LLDP neighbor index : 6

 ChassisID/subtype   : 0011-2233-4400/MAC address

 PortID/subtype      : 000c-29f5-c715/MAC address

 Capabilities        : None

 

CDP neighbor-information of port 52[Ten-GigabitEthernet1/0/3]:

LLDP agent nearest-bridge:

 CDP neighbor index  : 4

 Chassis ID          : SEP00260B5C0548

 Port ID             : Port 1

 

 CDP neighbor index  : 5

 Chassis ID          : 0011-2233-4400

 Port ID             : Ten-GigabitEthernet1/0/4

 

LLDP neighbor-information of port 52[Ten-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

Local Interface Chassis ID      Port ID                    System Name

XGE1/0/1        000f-e25d-ee91  Ten-GigabitEthernet1/0/1   System1

表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

邻居信息最新更新时间

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:表示支持交换功能

·     Router:表示支持路由功能

·     Telephone:表示支持电话功能

·     DocsisCableDevice:表示支持电缆设备功能

·     StationOnly:表示支持只作站点功能

·     Customer Bridge:表示支持客户桥功能

·     Service Bridge:表示支持服务桥功能

·     TPMR:表示支持双端口MAC中继功能

·     Other:表示支持不在上述列表的其它功能

System capabilities enabled

系统已开启的功能:

·     Repeater:表示信号中继功能已开启

·     Bridge:表示交换功能已开启

·     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

管理地址对象标识符

DCBX control info:

显示DCBX控制TLV的信息,在标准DCBX中显示版本信息

Oper version

DCBX版本号

Sequence number

DCBX TLV内容改变的次数

Acknowledge number

对端设备同步配置的次数

DCBX ETS info

CoS与本地优先级的映射关系及对应的带宽分配情况

CoS

CoS值

Local Priority

本地优先级

Percentage

对应的带宽分配

P0-   P1-   P2-   P3-   P4-   P5-   P6-   P7-

本端的no-drop标记值对应的支持的优先级数

Number of traffic classes supported

PFC支持的能力集,在1.01版本和标准版本中显示该项

DCBX APP info

显示APP TLV信息

Protocol ID

应用协议号

CoS map

应用协议与CoS的映射关系

DCBX ETS configuration info

显示ETS配置TLV信息

CBS

是否支持CBS,表示本端是否支持令牌桶限速算法:

·     False:表示不支持令牌桶限速算法

·     True:表示支持令牌桶限速算法

Max TCs

显示支持的最大优先级数目

TSA

显示传输选择算法

DCBX ETS recommendation info

显示ETS推荐TLV信息

DCBX PFC info

显示PFC TLV信息

Value of MBC

支持的MBC状态(MBC表示报文避开MACsec的能力,占1个bit,取值为0表示MACsec去开启时,报文可以避开MACsec,取值为1表示MACsec关闭时,报文不可以避开MACsec)

Selected Field

选择域

Port VLAN ID

端口PVID

Port and protocol VLAN ID(PPVID)

端口协议VLAN ID

Port and protocol VLAN supported

是否支持端口协议VLAN

Port and protocol VLAN enabled

是否开启端口协议VLAN

VLAN name of VLAN vlan-id

端口实际发送的VLAN name TLV中包含的VLAN名称,最多显示10个VLAN名称

Link aggregation supported

端口是否支持链路聚合

Link aggregation enabled

端口是否已开启链路聚合

Aggregation port ID

聚合组中该成员端口的编号,未开启链路聚合功能时为0

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

2线对模式、单签名PD请求功率值,单位为瓦特

PSE allocated power value

PSE为2线对模式、单签名PD分配的功率值,单位为瓦特

PD requested power value mode A

在4线对模式下,双签名PD在通道A的请求功率值,单位为瓦特

PD requested power value mode B

在4线对模式下,双签名PD在通道B的请求功率值,单位为瓦特

PSE allocated power value alternative A

在4线对模式下,PSE在通道A分配功率值,单位为瓦特

PSE allocated power value alternative B

在4线对模式下,PSE在通道B分配功率值,单位为瓦特

PSE powering status

PSE供电状态:

·     Reserved:表示供电状态未知

·     2-pair powering:表示采用2线对模式供电

·     4-pair powering single-signature PD:表示采用4线对模式为单签名PD供电

·     4-pair powering dual-signature PD:表示采用4线对模式为双签名PD供电

PD powered status

PD受电状态:

·     Reserved:表示受电状态未知

·     Powered single-signature PD:表示单签名PD受电状态

·     2-pair Powered dual-signature PD:表示双签名PD在2线对模式受电状态

·     4-pair powered dual-signature PD:表示双签名PD在4线对模式受电状态

PSE power pairs ext

PoE端口的远程供电模式:

·     Reserved:表示供电模式未知

·     Alternative A:表示PSE采用通道A供电模式

·     Alternative B:表示PSE采用通道B供电模式

·     Both Alternatives:表示PSE采用同时两个通道供电模式

Dual-signature power class ext mode A

连接双签名PD时,PSE在通道A的功率分级:

·     Reserved:表示功率级别未知

·     Class 1:表示级别1

·     Class 2:表示级别2

·     Class 3:表示级别3

·     Class 4:表示级别4

·     Class 5:表示级别5

·     Single-signature PD or 2-pair only PSE:表示连接单签名PD或采用2线对供电PSE

Dual-signature power class ext mode B

连接双签名PD时,PSE在通道B的功率分级:

·     Reserved:表示功率级别未知

·     Class 1:表示级别1

·     Class 2:表示级别2

·     Class 3:表示级别3

·     Class 4:表示级别4

·     Class 5:表示级别5

·     Single-signature PD or 2-pair only PSE:表示连接单签名PD或采用2线对模式供电PSE

Power class ext

连接单签名PD或者采用2线对模式供电的PSE功率分级:

·     Reserved:表示功率级别未知

·     Class 1:表示级别1

·     Class 2:表示级别2

·     Class 3:表示级别3

·     Class 4:表示级别4

·     Class 5:表示级别5

·     Class 6:表示级别6

·     Class 7:表示级别7

·     Class 8:表示级别8

·     Dual-signature PD:表示连接双签名PD

Power type ext

供电类型:

·     Type 3 PSE:表示类型3 PSE

·     Type 4 PSE:表示类型4 PSE

·     Type 3 single-signature PD:表示类型3 单签名PD

·     Type 3 dual-signature PD:表示类型3 双签名PD

·     Type 4 single-signature PD:表示类型4 单签名PD

·     Type 4 dual-signature PD:表示类型4 双签名PD

·     Reserved:表示电源类型未知

PD load

是否连接双签名PD且通道A和通道B是单独协商供电

PSE maximum available power

PSE上端口可提供的最大功率

Autoclass support

PSE是否支持硬件自动分级

Autoclass completed

PSE是否完成硬件自动分级

Autoclass request

PD是否请求硬件自动分级

Dot1p

802.1p优先级

Ready

表明设备接口是否已经关闭了802.1p优先级与隔离优先级的映射:

·     Yes:表示关闭优先级映射

·     No:表示未关闭优先级映射

Maximum frame size

端口支持的最大帧长度,NA表示端口不支持配置超长帧

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

未知组织的索引

CDP neighbor-information of port 1

端口1的CDP邻居信息

CDP neighbor index

CDP邻居索引

Chassis ID/subtype

Chassis ID值及Chassis ID类型

Port ID/subtype

Port ID值及PortID类型

Software version

邻居软件版本

Platform version

邻居平台版本

Duplex

双工状态

Capabilities

系统已开启的功能:

·     Repeater:表示开启信号中继功能

·     Bridge:表示开启交换功能

·     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

收到的对端请求的等待时间,单位为微秒

 

1.1.4  display lldp statistics

display lldp statistics命令用来显示LLDP的统计信息。

【命令】

display lldp statistics [ global | [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-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 [Ten-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

# 显示接口Ten-GigabitEthernet1/0/1的最近客户桥代理上的LLDP统计信息。

<Sysname> display lldp statistics interface ten-gigabitethernet 1/0/1 agent nearest-customer

LLDP statistics information of port 1 [Ten-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邻居信息总数

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帧总数

 

1.1.5  display lldp status

display lldp status命令用来显示LLDP的状态信息。

【命令】

display lldp status [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

mdc-admin

mdc-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 [Ten-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

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-customer:

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

表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邻居总数

The current number of CDP neighbors

当前设备的CDP邻居总数

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 CDP neighbors

端口CDP邻居设备的数量

Number of sent optional TLV

端口在一个LLDP报文中发送的可选TLV总数

Number of received unknown TLV

端口在所有LLDP报文中收到的不能识别的TLV总数

 

1.1.6  display lldp tlv-config

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

mdc-admin

mdc-operator

【参数】

interface interface-type interface-number:显示指定接口上可发送的可选TLV信息,interface-type interface-number表示接口类型和接口编号。如果未指定该参数,将显示所有接口上可发送的可选TLV信息。

agent:显示指定类型LLDP代理的可选TLV信息。如果未指定该参数,将显示所有类型LLDP代理的可选TLV信息。

nearest-bridge:表示最近桥代理。

nearest-customer:表示最近客户桥代理。

nearest-nontpmr:表示最近非TPMR桥代理。

【举例】

# 显示接口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]:

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

 DCBX TLV                         NO        NO

 EVB TLV                          NO        NO

 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

 DCBX TLV                         NO        NO

 EVB TLV                          YES       YES

 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

 DCBX TLV                         NO        NO

 EVB TLV                          NO        NO

 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

端口PVID TLV

Port And Protocol VLAN ID TLV

协议VLAN ID TLV

VLAN Name TLV

VLAN名称TLV

DCBX TLV

DCBX(Data Center Bridging Exchange Protocol,数据中心桥能力交换协议) TLV

EVB TLV

(暂不支持)EVB(Edge Virtual Bridging,边缘虚拟桥接)模块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:终端设备的资产标识符,以便目录管理和资产跟踪

 

1.1.7  lldp admin-status

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

在IRF物理端口视图下:

lldp admin-status { disable | rx | tx | txrx }

undo lldp admin-status

【缺省情况】

LLDP最近桥代理的工作模式为TxRx,既发送也接收LLDP报文。其他类型的LLDP代理的工作模式为Disable,即不发送也不接收LLDP报文。

【视图】

二层以太网接口视图

三层以太网接口视图

管理以太网接口视图

二层聚合接口视图

三层聚合接口视图

IRF物理端口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

agent:配置指定类型LLDP代理的工作模式。在以太网接口视图/管理以太网接口视图下,未指定时表示配置最近桥代理的工作模式。

nearest-customer:表示最近客户桥代理。

nearest-nontpmr:表示最近非TPMR桥代理。

disable:表示工作模式为Disable,既不发送也不接收LLDP报文。

rx:表示工作模式为Rx,只接收不发送LLDP报文。

tx:表示工作模式为Tx,只发送不接收LLDP报文。

txrx:表示工作模式为TxRx,既发送也接收LLDP报文。

【使用指导】

IRF物理端口视图下,只支持最近桥代理工作模式。

【举例】

# 配置接口Ten-GigabitEthernet1/0/1上最近客户桥代理LLDP的工作模式为Rx。

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] lldp agent nearest-customer admin-status rx

1.1.8  lldp check-change-interval

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

在IRF物理端口视图下:

lldp check-change-interval interval

undo lldp check-change-interval

【缺省情况】

轮询功能处于关闭状态。

【视图】

二层以太网接口视图

三层以太网接口视图

管理以太网接口视图

二层聚合接口视图

三层聚合接口视图

IRF物理端口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

agent:配置指定类型LLDP代理的轮询功能。在以太网接口视图/管理以太网接口视图下,未指定时表示配置最近桥代理的轮询功能。

nearest-customer:表示最近客户桥代理。

nearest-nontpmr:表示最近非TPMR桥代理。

interval:表示轮询间隔,取值范围为1~30,单位为秒。

【举例】

# 在接口Ten-GigabitEthernet1/0/1的最近客户桥代理上开启轮询功能,并配置轮询间隔为30秒。

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] lldp agent nearest-customer check-change-interval 30

1.1.9  lldp compliance admin-status cdp

lldp compliance admin-status cdp命令用来配置LLDP兼容CDP功能的工作模式。

undo lldp compliance admin-status cdp命令用来恢复缺省情况。

【命令】

lldp compliance admin-status cdp { disable | rx | txrx }

undo lldp compliance admin-status cdp

【缺省情况】

LLDP兼容CDP功能的工作模式为Disable,既不发送也不接收CDP报文。

【视图】

二层以太网接口视图

三层以太网接口视图

管理以太网接口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

disable:表示工作模式为Disable,既不发送也不接收CDP报文。

txrx:表示工作模式为TxRx,既发送也接收CDP报文。

rx:表示工作模式为Rx,接收但不发送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

1.1.10  lldp compliance cdp

lldp compliance cdp命令用来开启LLDP兼容CDP功能。

undo lldp compliance cdp命令用来关闭LLDP兼容CDP功能。

【命令】

lldp compliance cdp

undo lldp compliance cdp

【缺省情况】

LLDP兼容CDP功能处于关闭状态。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-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

1.1.11  lldp enable

lldp enable命令用来在接口上开启LLDP功能。

undo lldp enable命令用来在接口上关闭LLDP功能。

【命令】

lldp enable

undo lldp enable

【缺省情况】

接口上的LLDP功能处于开启状态。

【视图】

二层以太网接口视图

三层以太网接口视图

管理以太网接口视图

二层聚合接口视图

三层聚合接口视图

IRF物理端口视图

【缺省用户角色】

network-admin

mdc-admin

【使用指导】

只有当全局和接口上都开启了LLDP功能后,该功能才会生效。

聚合接口上的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

1.1.12  lldp encapsulation snap

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

在IRF物理端口视图下:

lldp encapsulation snap

undo lldp encapsulation

【缺省情况】

LLDP报文的封装格式为Ethernet II格式。

【视图】

二层以太网接口视图

三层以太网接口视图

管理以太网接口视图

二层聚合接口视图

三层聚合接口视图

IRF物理端口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

agent:配置指定类型LLDP代理的封装格式。在以太网接口视图/管理以太网接口视图下,未指定时表示配置最近桥代理的封装格式。

nearest-customer:表示最近客户桥代理。

nearest-nontpmr:表示最近非TPMR桥代理。

【使用指导】

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

1.1.13  lldp fast-count

lldp fast-count命令用来配置快速发送LLDP报文的个数。

undo lldp fast-count命令用来恢复缺省情况。

【命令】

lldp fast-count count

undo lldp fast-count

【缺省情况】

快速发送LLDP报文的个数为4个。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

count:表示快速发送LLDP报文的个数,取值范围为1~8。

【举例】

# 配置快速发送LLDP报文的个数为5个。

<Sysname> system-view

[Sysname] lldp fast-count 5

1.1.14  lldp global enable

lldp global enable命令用来全局开启LLDP功能。

undo lldp global enable命令用来全局关闭LLDP功能。

【命令】

lldp global enable

undo lldp global enable

【缺省情况】

空配置启动时,使用软件功能缺省值,LLDP功能在全局处于关闭状态。

出厂配置启动时,使用软件功能出厂值,LLDP功能在全局处于开启状态。

关于空配置启动和出厂配置启动的详细介绍,请参见“基础配置指导”中的“配置文件管理”

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【使用指导】

只有当全局和接口上都开启了LLDP功能后,该功能才会生效。

【举例】

# 全局关闭LLDP功能。

<Sysname> system-view

[Sysname] undo lldp global enable

【相关命令】

·     lldp enable

1.1.15  lldp global tlv-enable basic-tlv management-address