• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

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

目录

10-LLDP命令

本章节下载 10-LLDP命令  (246.80 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/SR_Router/SR8800-F/Command/Command_Manual/H3C_SR8800-F_CR-R7143-6W710/04/201809/1110028_30005_0.htm

10-LLDP命令


1 LLDP

1.1  LLDP配置命令

1.1.1  display lldp local-information

display lldp local-information命令用来显示LLDP本地信息,这些信息将将根据端口TLV使能情况被组织成TLV发送给邻居设备。

【命令】

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          : 80f6-2e82-1ed6

 System name         : Sysname

 System description  : H3C Comware Platform Software, Software Version 7.1.048,

                       Alpha 7131

                       H3C SR8805-F

                       Copyright (c) 2004-2013 Hangzhou H3C Tech. Co., Ltd. All

                       rights reserved.

 System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge

 System capabilities enabled   : Bridge, Router, Customer Bridge

 

 MED information:

 Device class               : Connectivity device

 MED inventory information of master board:

 HardwareRev                : VER.A

 FirmwareRev                : 004

 SoftwareRev                : 7.1.048 7137

 SerialNum                  : Unknown

 Manufacturer name          : Unknown

 Model name                 : H3C SR8805-F

 Asset tracking identifier  : Unknown

 

LLDP local-information of port 209[GigabitEthernet2/0/17]:

 Port ID type        : Interface name

 Port ID             : GigabitEthernet2/0/17

 Port description    : GigabitEthernet2/0/17 Interface

 LLDP agent nearest-bridge management address:

 Management address type           : All802

 Management address                : 80f6-2e82-1ed8

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 LLDP agent nearest-nontpmr management address:

 Management address type           : All802

 Management address                : 80f6-2e82-1ed8

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 LLDP agent nearest-customer management address:

 Management address type           : All802

 Management address                : 80f6-2e82-1ed8

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 DCBX Control info:

  Oper version       : Ver 1.00

  Sequence number    : 1

  Acknowledge number : 0

 DCBX ETS info:

  CoS     Local Priority      Percentage

  0       2                   0

  1       0                   0

  2       1                   0

  3       3                   0

  4       4                   0

  5       5                   0

  6       6                   0

  7       7                   0

 DCBX PFC info:

  P0-0     P1-0     P2-0     P3-0     P4-0     P5-0     P6-0     P7-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

 Management VLAN ID  : 0

 Link aggregation supported : Yes

 Link aggregation enabled   : No

 Aggregation port ID        : 0

 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

 Maximum frame size         : 9216

 PoE PSE power source       : Unknown

 Port PSE priority          : Unknown

 Port available power value : 0.0(w)

 

LLDP local-information of port 211[GigabitEthernet2/0/19]:

 Port ID type        : Interface name

 Port ID             : GigabitEthernet2/0/19

 Port description    : GigabitEthernet2/0/19 Interface

 LLDP agent nearest-bridge management address:

 Management address type           : All802

 Management address                : 80f6-2e82-1ed9

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 LLDP agent nearest-nontpmr management address:

 Management address type           : All802

 Management address                : 80f6-2e82-1ed9

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 LLDP agent nearest-customer management address:

 Management address type           : All802

 Management address                : 80f6-2e82-1ed9

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 Link aggregation supported : Yes

 Link aggregation enabled   : No

 Aggregation port ID        : 0

 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

 Maximum frame size         : 1500

 PoE PSE power source       : Unknown

 Port PSE priority          : Unknown

 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:表示支持路由功能

·       WlanAccessPoint:表示支持无线接入点功能

·       Router:表示支持路由功能

·       Telephone:表示支持电话功能

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

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

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

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

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

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

System capabilities enabled

系统已使能的功能:

·       Bridge:表示交换功能已使能

·       Router:表示路由功能已使能

·       WlanAccessPoint:表示无线接入点功能已使能

·       Router:表示路由功能已使能

·       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

管理地址对象标识符

DCBX control info

显示DCBX控制TLV的信息,包括:

·       Oper version:DCBX版本号

·       Sequence number:DCBX TLV内容改变的次数

·       Acknowledge number:对端设备同步配置的次数

设备暂不支持DCBX相关字段,当前显示信息无效

DCBX ETS info

CoS与本地优先级的映射关系及对应的带宽分配信息,包括:

·       CoS:CoS值

·       Local Priority:本地优先级

·       Percentage:对应的带宽分配

设备暂不支持DCBX相关字段,当前显示信息无效

DCBX PFC info

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

本端的no-drop标记值对应的支持的优先级数。设备暂不支持DCBX相关字段,当前显示信息无效

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的名称

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

Maximum frame size

端口支持的最大帧长度

PoE PSE power source

PSE所采用的电源类型:

·       Unknown:表示采用的电源类型未知

·       Primary:表示采用主用电源作为电源

·       Backup:表示采用备用电源作为电源

Port PSE priority

PSE上端口的供电优先级:

·       Unknown:表示优先级未知

·       Critical:表示优先级为1级

·       High:表示优先级为2级

·       Low:表示优先级为3级

Port available power value

PSE上端口可提供的功率,或PD上端口所需的功率(单位为瓦特)

 

1.1.2  display lldp neighbor-information

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

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 209[GigabitEthernet2/0/17]:

LLDP agent nearest-bridge:

 LLDP neighbor index : 1

 Update time         : 0 days, 1 hours, 15 minutes, 1 seconds

 Chassis type        : MAC address

 Chassis ID          : 00e0-fc00-c518

 Port ID type        : Interface name

 Port ID             : GigabitEthernet4/0/17

 Time to live        : 120

 Port description    : GigabitEthernet4/0/17 Interface

 System name         : H3C

 System description  : H3C Comware Software. H3C S12504 Product Version S12500-C

                       MW710-B732401. Copyright (c) 2004-1-13 Hangzhou H3C Tech.

                        Co., Ltd. All rights reserved.

 System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge

 System capabilities enabled   : Bridge, Router, Customer Bridge

 Management address type           : All802

 Management address                : 00e0-fc00-c518

 Management address interface type : IfIndex

 Management address interface ID   : Unknown

 Management address OID            : 0

 Port VLAN ID(PVID)  : 1

 Link aggregation supported : Yes

 Link aggregation enabled   : No

 Aggregation port ID        : 0

 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

 Maximum frame size         : 9216

 

CDP neighbor-information of port 1[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 209[GigabitEthernet2/0/17]:

LLDP agent nearest-bridge:

 LLDP neighbor index : 1

 ChassisID/subtype   : 00e0-fc00-c518/MAC address

 PortID/subtype      : GigabitEthernet4/0/17/Interface name

 Capabilities        : Bridge, Router, Customer Bridge

# 按列表显示类型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

H3C                  GE2/0/17        00e0-fc00-c518  GigabitEthernet4/0/17

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

·       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

管理地址对象标识符

Port 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

Maximum frame size

端口支持的最大帧长度

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

·       WlanAccessPoint:表示使能无线接入点功能

·       Router:表示使能路由功能

·       Telephone:表示使能电话功能

·       DocsisCableDevice:表示使能电缆设备功能

·       StationOnly:表示使能只作站点功能,与其他功能不能同时出现

·       Other:表示使能不在上述列表的其他功能

·       None:表示该邻居未发布该TLV

Local Interface

接收LLDP信息的本端端口

Chassis ID : * -- -- Nearest nontpmr bridge neighbor                              

                    #-- -- Nearest customer bridge neighbor

·       *符号:表示该邻居是最近非TPMR桥代理类型邻居

#符号:表示该邻居是最近客户桥代理类型邻居

 

1.1.3  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 [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

...

表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.4  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: 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

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

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.5  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桥代理。

【举例】

# 显示接口GigabitEthernet1/0/1上可发送的可选TLV信息。

<Sysname> display lldp tlv-config interface gigabitethernet 1/0/1

LLDP tlv-config of port 209[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    NO        NO

 VLAN Name TLV                    NO        NO

 DCBX TLV                         YES       NO

 EVB TLV                          NO        NO

 Link Aggregation TLV             YES       YES

 Management VID 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

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

 System Name TLV                  NO        NO

 System Description TLV           NO        NO

 System Capabilities TLV          NO        NO

 Management Address TLV           NO        NO

IEEE 802.1 extend TLV:

 Port VLAN ID TLV                 NO        NO

 Port And Protocol VLAN ID TLV    NO        NO

 VLAN Name TLV                    NO        NO

 DCBX TLV                         NO        NO

 EVB TLV                          YES       YES

 Link Aggregation TLV             NO        NO

 Management VID TLV               NO        NO

IEEE 802.3 extend TLV:

 MAC-Physic TLV                   NO        NO

 Power via MDI TLV                NO        NO

 Maximum Frame Size TLV           NO        NO

LLDP-MED extend TLV:

 Capabilities TLV                 NO        NO

 Network Policy TLV               NO        NO

 Location Identification TLV      NO        NO

 Extended Power via MDI TLV       NO        NO

 Inventory TLV                    NO        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    NO        NO

 VLAN Name TLV                    NO        NO

 DCBX TLV                         NO        NO

 EVB TLV                          NO        NO

 Link Aggregation TLV             YES       YES

 Management VID TLV               NO        NO

IEEE 802.3 extend TLV:

 MAC-Physic TLV                   NO        NO

 Power via MDI TLV                NO        NO

 Maximum Frame Size TLV           NO        NO

LLDP-MED extend TLV:

 Capabilities TLV                 NO        NO

 Network Policy TLV               NO        NO

 Location Identification TLV      NO        NO

 Extended Power via MDI TLV       NO        NO

 Inventory TLV                    NO        NO

 

表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

DCBX TLV

DCBX(Data Center Bridging Exchange Protocol,数据中心桥能力交换协议) TLV。设备暂不支持本字段,当前显示信息无效

EVB TLV

EVB(Edge Virtual Bridging,边缘虚拟桥接)模块TLV 。设备暂不支持本字段,当前显示信息无效

Link Aggregation TLV

链路聚合TLV

Management VID TLV

管理VLAN TLV

IEEE 802.3 extended TLV

端口可发送的IEEE 802.3组织定义的TLV类型

MAC-Physic TLV

端口物理属性TLV

Power via MDI 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.6  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

【缺省情况】

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

【视图】

二层以太网接口视图/二层聚合接口视图/三层以太网接口视图/三层聚合接口视图

【缺省用户角色】

network-admin

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

1.1.7  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

【缺省情况】

轮询功能处于关闭状态。

【视图】

二层以太网接口视图/二层聚合接口视图/三层以太网接口视图/三层聚合接口视图

【缺省用户角色】

network-admin

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

1.1.8  lldp compliance admin-status cdp

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

mdc-admin

【参数】

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

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

【使用指导】

欲使LLDP兼容CDP的功能生效,必须先使能LLDP兼容CDP功能,同时将LLDP兼容CDP功能的工作模式配置为TxRx。

【举例】

# 使能LLDP兼容CDP功能,并在接口GigabitEthernet1/0/1上配置LLDP兼容CDP功能的工作模式为TxRx。

<Sysname> system-view

[Sysname] lldp compliance cdp

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp compliance admin-status cdp txrx

【相关命令】

·              lldp compliance cdp

1.1.9  lldp compliance cdp

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

undo lldp compliance 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.10  lldp enable

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

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

【命令】

lldp enable

undo lldp enable

【缺省情况】

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

【视图】

二层以太网接口视图/二层聚合接口视图/三层以太网接口视图/三层聚合接口视图

【缺省用户角色】

network-admin

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

1.1.11  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

【缺省情况】

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

【视图】

二层以太网接口视图/二层聚合接口视图/三层以太网接口视图/三层聚合接口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

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

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

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

【使用指导】

·              LLDP CDP报文的封装格式只能为SNAP格式,不能为Ethernet II格式。

·              携带EVB模块TLV的LLDP报文不能通过SNAP格式封装和发送。

【举例】

# 配置接口GigabitEthernet1/0/1上发送的LLDP报文的封装格式为SNAP格式。

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] lldp encapsulation snap

1.1.12  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.13  lldp global enable

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

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

【命令】

lldp global enable

undo lldp global enable

【缺省情况】

LLDP的全局状态为关闭。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【使用指导】

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

【举例】

# 全局关闭LLDP功能。

<Sysname> system-view

[Sysname] undo lldp global enable

【相关命令】

·              lldp enable

1.1.14  lldp hold-multiplier

lldp hold-multiplier命令用来配置TTL乘数。

undo lldp hold-multiplier命令用来恢复缺省情况。

【命令】

lldp hold-multiplier value

undo lldp hold-multiplier

【缺省情况】

TTL乘数为4。

【视图】

系统视图

【缺省用户角色】

network-admin

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

1.1.15  lldp management-address-format string

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

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

1.1.16  lldp max-credit

lldp max-credit命令用来配置限制发送报文速率的令牌桶大小。

undo lldp max-credit命令用来恢复缺省情况。

【命令】

lldp max-credit credit-value

undo lldp max-credit

【缺省情况】

限制发送报文速率的令牌桶大小为5

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

credit-value:表示LLDP发包限速的令牌桶大小,取值范围1~100。

【举例】

# 配置LLDP发包限速的令牌桶大小为10。

<Sysname> system-view

[Sysname] lldp max-credit 10

1.1.17  lldp mode

lldp mode命令用来配置当前设备的LLDP桥模式。

undo lldp mode命令用来恢复缺省情况。

【命令】

lldp mode service-bridge

undo lldp mode

【缺省情况】

设备的LLDP桥模式为客户桥模式。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

service-bridge:表示服务桥模式。

【使用指导】

LLDP的桥模式命令用于控制设备支持不同的LLDP代理。

·              工作于服务桥模式时,设备可支持最近桥代理和最近非TPMR桥代理,即对上述类型代理MAC的报文进行处理,其他目的MAC的LLDP报文进行VLAN内透传。

·              工作于客户桥模式时,设备可支持最近桥代理、最近非TPMR桥代理及最近客户桥代理,即对上述类型代理MAC的报文进行处理,其他目的MAC的LLDP报文进行VLAN内透传。

说明

桥模式配置只在LLDP全局使能后才能生效,LLDP全局未使能时,只能作为客户桥对三种类型代理MAC的报文进行拦截。

 

【举例】

# 配置LLDP桥模式为服务桥模式。

<Sysname> system-view

[Sysname] lldp mode service-bridge

【相关命令】

·              lldp global enable

1.1.18  lldp notification med-topology-change 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

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

1.1.19  lldp notification remote-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

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

1.1.20  lldp timer fast-interval

lldp timer fast-interval命令用来配置LLDP快速发送报文的时间间隔。

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

【命令】

lldp timer fast-interval interval

undo lldp timer fast-interval

【缺省情况】

LLDP快速发送报文的时间间隔为1秒。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

interval:表示LLDP快速发送报文的时间间隔,取值范围为1~3600,单位为秒。

【举例】

# 配置LLDP快速发送报文的时间间隔为2秒。

<Sysname> system-view

[Sysname] lldp timer fast-interval 2

 

1.1.21  lldp timer notification-interval

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

mdc-admin

【参数】

interval:表示LLDP Trap和LLDP-MED Trap信息的发送间隔,取值范围为5~3600,单位为秒。

【举例】

# 配置LLDP Trap和LLDP-MED Trap信息的发送间隔为8秒。

<Sysname> system-view

[Sysname] lldp timer notification-interval 8

1.1.22  lldp timer reinit-delay

lldp timer reinit-delay命令用来配置接口初始化的延迟时间。

undo lldp timer reinit-delay命令用来恢复缺省情况。

【命令】

lldp timer reinit-delay delay

undo lldp timer reinit-delay

【缺省情况】

接口初始化的延迟时间为2秒。

【视图】

系统视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

delay:接口初始化的延迟时间,取值范围为1~10,单位为秒。

【举例】

# 配置接口初始化的延迟时间为4秒。

<Sysname> system-view

[Sysname] lldp timer reinit-delay 4

1.1.23  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

mdc-admin

【参数】

interval:表示LLDP报文的发送间隔,取值范围为5~32768,单位为秒。

【举例】

# 配置LLDP报文的发送间隔为20秒。

<Sysname> system-view

[Sysname] lldp timer tx-interval 20

1.1.24  lldp tlv-enable

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 [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation | dcbx | 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 | 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 } | dot1-tlv { all | port-vlan-id | link-aggregation | dcbx | protocol-vlan-id | vlan-name | management-vid } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy | 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 [ ip-address ] } | dot1-tlv { all | evb | 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 } | dot1-tlv { all | evb | 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 [ ip-address ] } | dot1-tlv { all | 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 } | dot1-tlv { all | port-vlan-id | link-aggregation } }

在三层以太网接口视图下:

lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | 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 [ 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 } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | 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 } | dot1-tlv { all | link-aggregation } }

在二层聚合接口视图下:

lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | evb | port-vlan-id } }

lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ 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 | port-description | system-capability | system-description | system-name } | dot1-tlv { all | evb | port-vlan-id } }

undo lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv | 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 [ 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 | port-description | system-capability | system-description | system-name }

【缺省情况】

二层以太网接口上:

·              最近桥代理允许发布除Port And Protocol VLAN ID TLVVLAN Name TLV、DCBX TLV、EVB TLV、Management VLAN ID TLV和Location Identification TLV之外所有类型的TLV;

·              最近非TPMR桥代理只允许发布EVB TLV;

·              最近客户桥代理允许发布基本TLV和IEEE 802.1组织定义TLV,其中IEEE 802.1组织定义的TLV只支持Port VLAN ID TLV和Link Aggregation TLV。

三层以太网接口上:

·              最近桥代理允许发布除Network Policy TLVLocation Identification TLV之外所有类型的TLV,其中IEEE 802.1组织定义的TLV只支持Link Aggregation TLV;

·              最近非TPMR桥代理不发布任何TLV;

·              最近客户桥代理允许发布基本TLV和IEEE 802.1组织定义TLV,其中IEEE 802.1组织定义的TLV只支持Link Aggregation TLV。

二层聚合接口上:

·              不存在最近桥代理;

·              最近非TPMR桥代理只允许发布EVB TLV;

·              最近客户桥代理允许发布基本TLV和IEEE 802.1组织定义TLV,其中IEEE 802.1组织定义的TLV只支持Port VLAN ID TLV。

三层聚合接口上:

·              不存在最近桥代理;

·              最近非TPMR桥代理不发布任何TLV;

·              最近客户桥代理只允许发布基本TLV。

【视图】

二层以太网接口视图/二层聚合接口视图/三层以太网接口视图/三层聚合接口视图

【缺省用户角色】

network-admin

mdc-admin

【参数】

agent:配置指定类型LLDP代理允许发布的TLV类型。在以太网接口视图下,未指定时表示配置最近桥代理允许发布的TLV类型。

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

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

all:在二层以太网接口视图/二层聚合接口视图/三层以太网接口视图下指定basic-tlvdot1-tlvdot3-tlv,或者在三层聚合接口视图下指定basic-tlvdot3-tlv时,本参数表示该类型下所有的可选TLV;而不论在上述任何视图下指定med-tlv时,本参数都表示该类型下除location-id以外所有的可选TLV。

basic-tlv:表示基本类型TLV。

management-address-tlv [ ip-address ]:表示Management Address TLV。其中,ip-address表示在LLDP报文中所要发布的管理地址,其缺省值在二层以太网接口视图/二层聚合接口视图下配置时若未指定ip-address,则发布的管理地址为该端口允许通过的、对应VLAN接口上配置有IP地址且处于up状态的最小VLAN的主IP地址(如果该端口允许通过的所有VLAN所对应的VLAN接口上都未配置IP地址或均处于down状态,则发布该接口的MAC地址),在三层以太网接口视图/三层聚合接口视图下配置时若未指定ip-address,则发布的管理地址为该接口的IP地址(如果该接口未配置IP地址,则发布该接口的MAC地址)。

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。设备目前不支持。

evb:表示EVB(Edge Virtual Bridging,边缘虚拟桥接)模块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~4093,缺省值为该端口所属VLAN中最小的VLAN ID。

vlan-name [ vlan-id ]:表示VLAN Name TLV,vlan-id为所要发布VLAN的VLAN ID,取值范围为1~4093,缺省值为该端口所属VLAN中最小的VLAN ID。

management-vid [ mvlan-id ]:表示Management VLAN ID TLVmvlan-id指定要发布管理VLANVLAN ID,取值范围为14093。如果未指定该参数,则表示发布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:表示设备类型,取值范围为02。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:表示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将不会被发布,不论其是否被允许发布。

·              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保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们