show lldp neighbors
语法
show lldp neighbors
<interface interface>
描述
显示交换机使用链路层发现协议 (LLDP) 获知的相邻设备的相关信息。
机箱 ID TLV 具有网络地址族的子类型。支持的网络地址族为 IPv4 和 IPv6。仅当机箱 ID TLV 的网络地址子类型的值为 1 (IPv4) 或 2 (IPv6) 时,才会验证 LLDP 帧。对于任何其他值,LLDP 会将传输设备检测为邻居并显示在命令输出 show lldp neighbors
中,但不会分配给 VLAN。
选项
interface interface | (可选)显示选定接口的 LLDP 邻居信息。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show lldp neighbors
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
本地接口 |
邻居信息可用的本地接口列表。 |
父接口 |
本地接口所属的聚合以太网接口列表(如果有)。 |
机箱 ID |
邻居的机箱标识符列表。 |
端口信息 |
此字段显示从邻居接收的端口信息。 |
系统名称 |
从邻居收集的系统名称列表。包括主机名和域名。 |
LLDP 邻居信息 |
有关接口上的本地系统(交换机)和邻接系统的信息(在使用 接口 选项时显示)。 |
本地信息 |
有关本地系统的信息(使用 接口 选项时显示)。 |
指数 |
本地接口索引(在使用 接口 选项时显示)。 |
生活时间 |
此信息有效的秒数(在使用 接口 选项时显示)。 |
时间标记 |
信息的日期和时间戳(在使用 接口 选项时显示)。 |
本地接口 |
本地物理接口的名称(使用 接口 选项时显示)。 |
父接口 |
接口所属的聚合以太网接口的名称(如果有)(使用 接口 选项时显示)。 |
本地端口 ID |
本地接口 SNMP 索引(在使用接口选项时显示)。 |
超龄计数 |
由于信息及时间隔过期(使用接口选项时出现),邻居通告的完整信息集已从本地系统维护的 LLDP 邻居信息中删除的次数。 |
邻居信息 |
有关接口上邻接系统的信息(在使用 接口 选项时显示)。 |
机箱类型 |
提供的机箱标识符类型,例如 Mac 地址 (在使用 接口 选项时显示)。 |
机箱 ID |
所列机箱类型的机箱标识符(在使用 接口 选项时显示)。 |
端口类型 |
提供的端口标识符类型,例如 “本地分配 ”(在使用 接口 选项时显示)。 |
端口 ID |
所列端口类型的端口标识符(在使用 接口 选项时显示)。 |
端口说明 |
端口描述字段使用配置的端口描述、端口名称或 SNMP ifIndex(在使用 接口 选项时显示)。 |
系统名称 |
系统在接口上提供的名称(使用 接口 选项时显示)。 |
系统说明 |
系统在接口上提供的说明(使用 接口 选项时显示)。 |
系统功能 |
系统在接口上支持或启用的功能(如 网桥、 网桥路由器和 网桥电话)(使用 接口 选项时显示)。 |
管理信息
|
管理信息的详细信息: 类型 (如 IPv4 或 IPv6)、 地址 (如 10.204.34.35)、 端口 ID、 子类型、 接口子类型和组织标识符 (OID)(使用 接口 选项时显示)。 接口子类型显示:
|
媒体信息 |
当支持 LLDP-MED 的设备连接到接口时,将显示有关端点设备的其他详细信息。具体细节取决于设备的功能。详细信息可能包括: 媒体端点类 (例如 IP 电话等通信设备的 Class 3)、 MED 硬件修订版、 MED 固件修订版、 MED 软件修订版、 MED 序列号、 MED 制造商名称、 MED 型号名称。 |
组织信息 |
一个或多个条目(按元素编制 |
年龄 |
识别邻居的时间长度(当使用 接口 选项并在交换机上启用 NetBIOS 侦听时显示)。 |
本地接口 |
本地物理接口的名称(当使用 接口 选项并在交换机上启用 NetBIOS 侦听时显示)。 |
父接口 |
接口所属的聚合以太网接口的名称(如果有)(当使用 接口 选项并在交换机上启用 NetBIOS 侦听时显示)。 |
机箱 ID |
所列机箱类型的机箱标识符(在使用 接口 选项且交换机上启用了 NetBIOS 侦听时显示)。 |
示例输出
- 显示 LLDP 邻居
- 显示 LLDP 邻居接口 ge-0/0/8
- show lldp neighbors interfaces ge-0/0/0.0 (适用于支持 LLDP-MED 的 VoIP AvayaPhone)
- show lldp 邻居接口 ge-0/0/5.0(在交换机上启用了 NetBIOS 侦听的情况下)
显示 LLDP 邻居
user@switch> show lldp neighbors Local Interface Parent Interface Chassis Id Port info System Name xe-3/0/4.0 ae31.0 b0:c6:9a:63:80:40 xe-0/0/0.0 host.jnpr.net xe-3/0/5.0 ae31.0 b0:c6:9a:63:80:40 xe-0/0/1.0 host.jnpr.net xe-3/0/6.0 ae31.0 b0:c6:9a:63:80:40 xe-0/0/2.0 host.jnpr.net xe-3/0/7.0 ae31.0 b0:c6:9a:63:80:40 xe-0/0/3.0 host.jnpr.net xe-3/0/0.0 ae31.0 b0:c6:9a:63:80:40 xe-0/1/0.0 host.jnpr.net xe-3/0/1.0 ae31.0 b0:c6:9a:63:80:40 xe-0/1/1.0 host.jnpr.net xe-3/0/2.0 ae31.0 b0:c6:9a:63:80:40 xe-0/1/2.0 host.jnpr.net xe-3/0/3.0 ae31.0 b0:c6:9a:63:80:40 xe-0/1/3.0 host.jnpr.net
显示 LLDP 邻居接口 ge-0/0/8
user@switch> show lldp neighbors interface ge-0/0/8 LLDP Neighbor Information: Local Information: Index: 1 Time to live: 120 Time mark: Thu Nov 26 06:41:24 2015 Age: 1 secs Local Interface : ge-0/0/8 Parent Interface : - Local Port ID : 518 Ageout Count : 0 Neighbour Information: Chassis type : Mac address Chassis ID : 88:e0:f3:1f:14:e0 Port type : Locally assigned Port ID : 880 Port description : ge-0/0/8 System name : bng-nw6moj.juniper.net System Description : Juniper Networks, Inc. ex4300-24p Ethernet Switch, kernel JUNOS 14.1I20151125_0548_rajjs, Build date: 2015-11-25 06:06:58 UTC Copyright (c) 1996-2015 Juniper Networks, Inc. System capabilities Supported: Bridge Router Enabled : Bridge Router Management address Address Type : IPv4(1) Address : 10.204.39.232 Interface Number : 33 Interface Subtype : ifIndex(2) OID : 1.3.6.1.2.1.31.1.1.1.1.33. Media endpoint class: Network Connectivity Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : MAC/PHY Configuration/Status (1) Info : Autonegotiation [supported, enabled (0x3)], PMD Autonegotiation Capability (0x1), MAU Type (0x0) Index : 1 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : MDI Power (2) Info : MDI Power Support [PSE bit set, supported, disabled, CONTROL bit not set (0x3)], MDI Power Pair [signal], MDI Power Class [Unknown (7)] Index : 2 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : Link Aggregation (3) Info : Aggregation Status [supported, disabled (0x1)], Aggregation Port ID (0) Index : 3 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : Maximum Frame Size (4) Info : MTU Size (1514) Index : 4 Organization Info OUI : Juniper Specific (0x009069) Subtype : Chassis Serial Type (1) Info : Juniper Slot Serial [MS3112240009] Index : 5
show lldp neighbors interfaces ge-0/0/0.0 (适用于支持 LLDP-MED 的 VoIP AvayaPhone)
user@switch>show lldp neighbors interface ge-0/0/0.0 LLDP Neighbor Information: Local Information: Index: 20 Time to live: 120 Time mark: Thu Apr 15 22:26:22 2010 Age: 16 secs Local Interface : ge-0/0/0.0 Parent Interface : - Local Port ID : 517 Ageout Count : 0 Neighbour Information: Chassis type : Network address Chassis ID : 0.0.0.0 Port type : Mac address Port ID : 00:04:0d:fc:55:48 System name : AVAFC5548.juniper.net System capabilities Supported : Bridge Telephone Enabled : Bridge Management Info Type : IPv4 Address : 0.0.0.0 Port ID : 1 Subtype : 1 Interface Subtype : ifIndex(2) OID : 1.3.6.1.2.1.31.1.1.1.1.1 Media endpoint class: Class III Device MED Hardware revision : 4610D01A MED Firmware revision : b10d01b2_9.bin MED Software revision : a10d01b2_9.bin MED Serial number : 07N510103424 MED Manufacturer name : Avaya MED Model name : 4610 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : MAC/PHY Configuration/Status (1) Info : Autonegotiation [supported, enabled (0x3)], PMD Autonegotiation Capability (0x1d00), MAU Type (0x0) Index : 1 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : MDI Power (2) Info : MDI Power Support [PSE bit set, supported, disabled, CONTROL bit not set (0x3)], MDI Power Pair [signal], MDI Power Class [Unknown (7)] Index : 2 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : Link Aggregation (3) Info : Aggregation Status [supported, disabled (0x1)], Aggregation Port ID (0) Index : 3 Organization Info OUI : IEEE 802.3 Private (0x00120f) Subtype : Maximum Frame Size (4) Info : MTU Size (1514) Index : 4 Organization Info OUI : Ethernet Bridged (0x0080c2) Subtype : Port Vid (1) Info : VLAN ID (10), Index : 5 Organization Info OUI : Juniper Specific (0x009069) Subtype : Chassis Serial Type (1) Info : Juniper Slot Serial [BQ0208211462] Index : 6 Organization Info OUI : Ethernet Bridged (0x0080c2) Subtype : VLAN Name (3) Info : VLAN ID (10), VLAN Name (vtest) Index : 7
show lldp 邻居接口 ge-0/0/5.0(在交换机上启用了 NetBIOS 侦听的情况下)
user@switch> show lldp neighbors interface ge-0/0/5 Age: 299999 secs Local Interface : ge-0/0/5.0 Parent Interface : - Chassis ID : 00:10:94:00:00:02 Port description : 192.0.2.1 System name : host.juniper.net
发布信息
在 Junos OS 9.0 版中引入的命令。