LLDP
nv show interface lldp
显示 LLDP 信息,例如所有已配置接口的速度、类型、远程主机和远程端口。
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show interface lldp
Interface Speed Type Remote Host Remote Port
--------- ----- ---- --------------- -----------------
eth0 1G eth oob-mgmt-switch swp10
swp1 1G swp server01 48:b0:2d:76:ee:8e
swp2 1G swp server02 48:b0:2d:86:c1:f8
swp3 1G swp server03 48:b0:2d:08:de:37
swp49 1G swp leaf02 swp49
swp50 1G swp leaf02 swp50
swp51 1G swp spine01 swp1
swp52 1G swp spine02 swp1
swp53 1G swp spine03 swp1
swp54 1G swp spine04 swp1
nv show interface lldp-detail
显示所有已配置接口的详细 LLDP 信息。
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show interface lldp-detail
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eth0
-------------------------------------------------------------------------------
Time:
0 days, 00:02:34
Chassis:
ChassisID: mac 48:b0:2d:00:00:01
SysName: oob-mgmt-switch
SysDescr: Cumulus Linux version 5.5.1 running on QEMU Standard PC (i440FX + PIIX, 1996)
MgmtIP: 192.168.200.251
MgmtIface: ifname
MgmtIP: fe80::4ab0:2dff:fe00:1
MgmtIface: ifname
Capability: Bridge, off
Capability: Router, off
Port:
PortID: ifname swp10
PortDescr: swp10
TTL: 120
Port is aggregated. PortAggregID: -
PMD autoneg: supported: {}, enabled: {}
MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
LLDP-MED:
Device Type: Network Connectivity Device
Capability: capabilities, yes
Capability: inventory, yes
Capability: location, yes
Capability: mdi-pd, yes
Capability: mdi-pse, yes
Capability: policy, yes
Interface: swp1
-------------------------------------------------------------------------------
Time:
0 days, 00:02:22
Chassis:
ChassisID: mac 44:38:39:22:01:7e
SysName: server01
SysDescr: Ubuntu 18.04.6 LTS Linux 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64
MgmtIP: 192.168.200.31
MgmtIface: mac
MgmtIP: fe80::4638:39ff:fe22:17e
MgmtIface: mac
Capability: Bridge, off
Capability: Router, off
Port:
PortID: ifname 48:b0:2d:76:ee:8e
PortDescr: eth1
TTL: 120
Port is aggregated. PortAggregID: -
PMD autoneg: supported: {'0': {'flags': {'fd': {}, 'hd': {}}, 'type': '10Base-T'}, '1': {'flags': {'fd': {}, 'hd': {}}, 'type': '100Base-TX'}, '2': {'flags': {'fd': {}}, 'type': '1000Base-T'}}, enabled: {'is-enabled': {}, 'is-supported': {}}
MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
LLDP-MED:
Device Type:
...
nv show interface <interface-id> lldp
显示指定接口的 LLDP 配置设置。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp
operational applied pending
------------------- ----------- ------- -------
dcbx-ets-config-tlv off
dcbx-ets-recomm-tlv off
dcbx-pfc-tlv off
[neighbor] server01
nv show interface <interface> lldp application-tlv
显示交换机上的所有应用程序优先级 TLV 配置。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv
operational applied
---------- ----------- ---------
[udp-port] 4317 4317
[tcp-port] 4217 4217
[app] NVME_4420 NVME_4420
[app] NVME_8009 NVME_8009
[app] iSCSI iSCSI
nv show interface <interface> lldp application-tlv app
显示为接口启用应用程序优先级 TLV 的应用程序名称。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv app
AppName
---------
NVME_4420
NVME_8009
iSCSI
nv show interface <interface-id> lldp application-tlv app <app-id>
显示接口上 LLDP 应用程序 TLV 的应用程序详细信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<app-id> | 应用程序名称。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv app iSCSI
nv show interface <interface> lldp application-tlv tcp-port
显示接口的 TCP 端口优先级映射。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv tcp-port
Ports
-----
4217
nv show interface <interface> lldp application-tlv tcp-port <port-id>
显示有关接口的 TCP 端口优先级映射的信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<port-id> | TCP 端口 ID。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv tcp-port 4217
nv show interface <interface> lldp application-tlv udp-port
显示接口的 UDP 端口优先级映射。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv udp-port
Ports
-----
4317
nv show interface <interface> lldp application-tlv udp-port <port-id>
显示有关接口的 UDP 端口优先级映射的信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<port-id> | UDP 端口 ID。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp application-tlv udp-port 4317
nv show interface <interface-id> lldp neighbor
显示有关指定接口的所有 LLDP 邻居的信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 lldp neighbor
Neighbor Remote IP Model SW Version Remote Port
-------- ------------ ----- ---------- -----------
spine01 10.10.10.101 swp1
nv show interface <interface-id> lldp neighbor <neighbor-id>
显示指定接口的特定 LLDP 邻居的统计信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<neighbor-id> | LLDP 邻居名称。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 lldp neighbor spine01
operational applied pending
------------------------- ------------------------------------------------------------… ------- -------
age 323055
bridge
[vlan]
chassis
chassis-id 44:38:39:22:01:82
management-address-ipv4 10.10.10.101
management-address-ipv6 fe80::4638:39ff:fe22:182
system-description Cumulus Linux version 5.5.0 running on QEMU Standard PC
(i440FX + PIIX, 1996)
system-name spine01
lldp-med
device-type Network Connectivity Device
port
description swp1
name swp1
ttl 120
type ifname
pmd-autoneg
[advertised]
mau-oper-type 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
nv show interface <interface-id> lldp neighbor <neighbor-id> bridge
显示指定 LLDP 邻居的桥接信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<neighbor-id> | LLDP 邻居名称。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 lldp neighbor spine01 bridge
operational applied pending
------ ----------- ------- -------
[vlan]
nv show interface <interface-id> lldp neighbor <neighbor-id> bridge vlan
显示指定 LLDP 邻居的 VLAN。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<neighbor-id> | LLDP 邻居名称。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp neighbor leaf02 bridge vlan
nv show interface <interface-id> lldp neighbor <neighbor-id> bridge vlan <vid>
显示有关指定 LLDP 邻居的特定 VLAN 的信息。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<neighbor-id> | LLDP 邻居名称。 |
<vlan-id> | VLAN 名称。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show interface swp1 lldp neighbor leaf02 bridge vlan 10
nv show service lldp
显示全局 LLDP 配置,例如 LLDP 模式、LLDP 计时器以及 802.1 TLV 传输是否开启。默认情况下,802.1 TLV 传输处于关闭状态,交换机发送所有不带 802.1 TLV 的 LLDP 帧。
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show service lldp
operational applied pending
---------------------- ----------- ------- -------
dot1-tlv off off off
lldp-med-inventory-tlv off off off
mode default default default
tx-hold-multiplier 4 4 4
tx-interval 30 30 30
nv show service lldp application-tlv
显示交换机上的所有应用程序优先级 TLV 配置。
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv
udp-port
===========
Port priority
---- --------
4317 4
tcp-port
===========
Port priority
---- --------
4217 6
app
======
AppName priority
--------- --------
NVME_4420 5
NVME_8009 7
iSCSI 3
nv show service lldp application-tlv app
显示应用程序优先级映射。
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv app
AppName priority
--------- --------
NVME_4420 5
NVME_8009 7
iSCSI 3
nv show service lldp application-tlv app <app-id>
显示指定应用程序的优先级映射。
命令语法
语法 | 描述 |
---|---|
<app-id> | 应用程序名称。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv app iSCSI
operational applied
-------- ----------- -------
priority 3 3
nv show service lldp application-tlv tcp-port
显示 TCP 端口优先级映射。
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv tcp-port
Port priority
---- --------
4217 6
nv show service lldp application-tlv tcp-port <port-id>
显示指定 TCP 端口的优先级映射。
命令语法
语法 | 描述 |
---|---|
<port-id> | 端口 ID。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv tcp-port 4217
operational applied
-------- ----------- -------
priority 6 6
nv show service lldp application-tlv udp-port
显示 UDP 端口优先级映射。
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv udp-port
Port priority
---- --------
4317 4
nv show service lldp application-tlv udp-port <port-id>
显示指定 UDP 端口的优先级映射。
命令语法
语法 | 描述 |
---|---|
<port-id> | 端口 ID。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show service lldp application-tlv udp-port 4317
operational applied
-------- ----------- -------
priority 4 4