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

02-网络管理命令参考

目录

24-设备支持lldp协议

本章节下载 24-设备支持lldp协议  (115.11 KB)

24-设备支持lldp协议


1 设备支持LLDP协议命令参考

1.1  开启设备lldp功能

1.1.1  lldp global

此命令用来开启关闭lldp全局开关功能。

【命令】

lldp global  { enable | disable }

【视图】

配置视图

【参数】

enable:开启设备lldp功能。

disable:关闭设备lldp功能。

【举例】

# 开启lldp全局开关。

host(config)# lldp global enable

【相关命令】

·     lldp enable

    开启全局开关后,还需打开接口lldp开关

 

1.2  lldp信息显示命令

1.2.1  display lldp local-information

查看设备配置lldp接口信息。

【命令】

display lldp local-information

【视图】

配置视图

【参数】

【举例】

# 查看本地接口lldp配置信息。

host(config)# display lldp local-information

Global LLDP local-information:

Chassis ID          :50:21:45:3F:DE:A0

System name         :host

System description  :

  i-Ware software,Version 1.10,Release 6611-20201216

 

LLDP local-information of port 3 [ge1]

Port ID             : ge1

Port description    :

 LLDP agent nearest-bridge management address:

 admin-status: txrx

 LLDP agent nearest-customer management address:

 admin-status: txrx

1.2.2  display lldp neighbor -information

查看设备接口邻居lldp信息。

【命令】

display lldp neighbor-information [ brief | interface INTERFACE_NAME ]

【视图】

配置视图

【参数】

brief:显示lldp邻居简要信息。

Interface显示指定接口的lldp邻居信息。

INTERFACE_NAME:接口名称。

【举例】

# 查看设备接口邻居详细信息

host(config)# display lldp neighbor-information

LLDP neighbor-information of [ge3]:

LLDP agent nearest-bridge:

Chassis type              : MAC address

Chassis ID                : f8:6e:ee:8b:9b:1c

Port ID type              : Interface name

Port ID                   : GigabitEthernet1/0/1

Time to live              : 120

System name               : XXXXXXX

System description:

XXXXXXX, XXXX Versatile Routing Platform Software, Software Version : XXXXXXX VX.X (VRP (R) Software, Version X.0), Copyright (C) 2020 XXXX Technologies Co., Ltd.

System capabilities supported : Router

System capabilities enabled   : Router

Management address type           : IPv4

Management address                : 192.168.146.1

Management address interface type : System Port Number

Management address interface ID   : 8

Management address OID            : 0

host(config)# display lldp neighbor-information brief

Local Intf   Neighbor Name        Chass Id             Neighbor Intf        TTL    Up time   Agent              

ge3          USG6300              f8:6e:ee:8b:9b:1c    GigabitEthernet1/0/1 120    23        bridge

1.2.3  display lldp statistics

查看设备lldp接口统计信息。

【命令】

display lldp statistics

【视图】

配置视图

【参数】

【举例】

# 查看设备lldp接口统计信息。

host(config)# display lldp statistics

LLDP statistics information of port [ge3]

LLDP agent nearest-bridge:

The number of LLDP frames tx    : 70435

The number of LLDP frames rx    : 104278

The number of LLDP frames error : 0

1.3  lldp接口状态管理

1.3.1  lldp agent nearest-customer admin-status

配置接口lldp状态管理。

【命令】

lldp agent nearest-customer admin-status { disable | rx | tx | txrx }

【视图】

接口视图

【参数】

disable:不再发送和解析目的mac为0x01-80-c2-00-00-00的报文。

rx:可以正常发包,但是不会收包。

tx:可以解析报文,但是不会发送报文。

txrx:既可以发包,又能正常解析报文。

【举例】

# 配置lldp接口既可以发包,又能正常解析报文。

host(config-ge3)# lldp agent nearest-customer admin-status txrx

#查看接口配置:

host# display lldp local-information

LLDP local-information of port 5 [ge3]

Port ID             : ge3

Port description    :

 LLDP agent nearest-customer management address:

 admin-status: txrx

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们