本文介绍如何在 Dell Networking Force10 交换机上启用并管理链路层发现协议 (LLDP)。
命令 |
用途 |
FTOS# configure |
进入配置模式。 |
FTOS(config)# protocol LLDP |
进入LLDP模式。 |
FTOS(config-lldp)# no disable |
Disable将全局关闭LLDP。 No disable将全局开启LLDP。 由于协议引入时处于disabled(禁用)状态,该语句的否定形式将开启此协议。 |
FTOS(conf-if-te-0/10)#protocol lldp |
在接口级别找到相同的LLDP模式。 所有特定接口级别LLDP模式命令覆盖任何全局配置的LLDP参数。 |
Dell(conf)#protocol lldp
Dell(conf-lldp)#show config
!
protocol lldp
advertise dot1-tlv port-protocol-vlan-id port-vlan-id
advertise dot3-tlv max-frame-size
advertise management-tlv system-capabilities system-description hello 10
no disable
Dell(conf-lldp)#
Dell(conf-lldp)#exit
Dell(conf)#interface gigabitethernet 1/31
Dell(conf-if-gi-1/31)#show config
!
interface GigabitEthernet 1/31
no ip address
switchport
no shutdown
Dell(conf-if-gi-1/31)#protocol lldp
Dell(conf-if-gi-1/31-lldp)#show config
!
protocol lldp
Dell(conf-if-gi-1/31-lldp)#
显示有关相邻设备的简要信息。
show lldp neighbors.
显示邻居公告的所有信息。
show lldp neighbors detail
查看邻居公告的简要信息的示例
Dell(conf-if-te-0/3-lldp)#end
Dell (conf-if-te-0/3)#do show lldp neighbors
Loc PortID Rem Host Name Rem Port Id Rem Chassis Id
-------------------------------------------------------------------------------------------------------
Te 0/1 - TenGigabitEthernet 0/5 00:01:e8:05:40:46
Te 0/2 - TenGigabitEthernet 0/6 00:01:e8:05:40:46
Dell (conf-if-te-0/3)#
查看邻居公告的详细信息的示例
Dell#show lldp neighbors detail
========================================================================
Local Interface Te 0/4 has 1 neighbor(本地接口有1个邻居)
Total Frames Out: 6547(总输出帧数:6547)
Total Frames In: 4136(总输入帧数:4136)
Total Neighbor information Age outs: 0(总邻居信息超时:0)
Total Frames Discarded: 0(丢弃的总帧数:0)
Total In Error Frames: 0(总输入错误帧数:0)
Total Unrecognized TLVs: 0(未识别的TLV总数:0)
Total TLVs Discarded: 0(丢弃的TLV总数:0)
Next packet will be sent after 7 seconds(下一数据包将在7秒后发送)
The neighbors are given below:(下面给出了邻居:)
-----------------------------------------------------------------------
Remote Chassis ID Subtype: Mac address (4)(远程机箱ID子类型:Mac地址)(4)
Remote Chassis ID: 00:01:e8:06:95:3e(远程机箱ID:00:01:e8:06:95:3e)
Remote Port Subtype: Interface name (5)(远程端口子类型:接口名称)(5)
Remote Port ID: TeGigabitEthernet 2/11(远程端口ID:TeGigabitEthernet 2/11)
Local Port ID: TenGigabitEthernet 1/21(本地端口ID:TenGigabitEthernet 1/21)
Locally assigned remote Neighbor Index: 4(本地分配的远程邻居索引:4)
Remote TTL: 120(远程TTL:120)
Information valid for next 120 seconds(信息在接下来的120秒内有效)
Time since last information change of this neighbor: 01:50:16(此邻居自上次更改信息的时间:01:50:16
Remote MTU: 1554(远程MTU:1554)
Remote System Desc: Dell Networks Real Time Operating System Software(远程系统说明:戴尔网络实时操作系统软件)
Dell Operating System Version: 1.0.(远程操作系统版本:1.0。)
Dell Application Software Version: 9.4.0.0.(戴尔应用程序软件版本:9.4.0.0。)Copyright (c) 1999-2014(版本所有(c) 1999-2014)
Build Time: Thu Aug 9 01:05:51 PDT 1999-2014(构建时间:周四8月9日01:05:51 PDT 1999-2014)
Existing System Capabilities: Repeater Bridge Router(现有系统功能:中继桥接路由器)
Enabled System Capabilities: Repeater Bridge Router(已启用系统功能:中继桥接路由器)
Remote Port Vlan ID: 1(远程端口Vlan ID:1)
Port and Protocol Vlan ID: 1, Capability: Supported, Status: Enabled(端口和协议Vlan ID:1,功能:受支持,状态:启用)
---------------------------------------------------------------------------