使用来自交换机和服务器的数据包转储显示帧已从服务器正确发送到交换机,相反,交换机正确地从服务器接收帧并将TLV帧发送回服务器.然而,服务器没有接收到交换机框架TLV,让我们摸不着头脑.我们在TOR上放置了使用不同NIC的其他计算机,并按预期获得LLDP数据.
我问谷歌……
根据this link,似乎这些X710可能正在运行内部LLDP代理,它拦截交换机的LLDP帧.我们看到的受影响机器上的固件是:
# ethtool -i eth2 driver: i40e version: 1.3.47 firmware-version: 4.53 0x80001e5d 17.0.10 bus-info: 0000:01:00.2 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes
禁用NIC上的内部LLDP代理的方法不起作用.尽管如此,我仍在四处寻找,但我想我有几个选择:
>找到在NIC上禁用内部LLDP代理的正确方法,并使用现有方法在这些计算机上提取LLDP数据 – 首选.
>使用NIC LLDP代理并找到从NIC中提取邻居TLV的方法.
有没有其他人遇到过这些卡的相同或类似问题,如果是这样,你是如何解决这个问题的?
我想如果我想使用它将通过ethtool或snmp公开的内部代理数据,但我还没有成功找到一种表达信息的方法.
TIA
编辑
为了记录,当我尝试英特尔论坛中概述的步骤时,我得到以下输出:
root@host (~)# find /sys/kernel/debug/ /sys/kernel/debug/ root@host (~)# mkdir /sys/kernel/debug/i40e mkdir: cannot create directory `/sys/kernel/debug/i40e': No such file or directory
事实证明,为了使用调试文件系统,需要先安装它.我们使用memfs OS在我们正在调整的机器上运行命令,默认情况下我们不挂载debugfs.所以this script给了我需要的答案.
…以及我的用例的以下步骤:
root@host (~)# mount -t debugfs none /sys/kernel/debug root@host (~)# echo lldp stop > /sys/kernel/debug/i40e/0000:01:00.2/command
收益:
root@host (~)# lldptool -i eth2 stat
Total Frames Transmitted = 1834
Total discarded Frames Received = 0
Total Error Frames Received = 0
Total Frames Received = 1
Total discarded TLVs = 0
Total Unrecognized TLVs = 0
Total Ageouts = 0
root@host (~)# lldptool -t -n -i eth2
Chassis ID TLV
MAC: ec:13:db:41:63:00
Port ID TLV
Local: 508
Time to Live TLV
120
System Name TLV
sw1
System Description TLV
Juniper Networks,Inc. qfx5100-48s-6q Ethernet Switch,kernel JUNOS 13.2X51-D38,Build date: 2015-06-12 02:33:47 UTC copyright (c) 1996-2015 Juniper Networks,Inc.
System Capabilities TLV
System capabilities: Bridge,Router
Enabled capabilities: Bridge,Router
Port Description TLV
xe-0/0/0
MAC/PHY Configuration Status TLV
Auto-negotiation not supported and not enabled
PMD auto-negotiation capabilities: 0x8000
MAU type: UnkNown [0x0000]
Link Aggregation TLV
Aggregation capable
Currently not aggregated
Aggregated Port ID: 0
Maximum Frame Size TLV
1514
Port VLAN ID TLV
PVID: 1
Unidentified Org Specific TLV
OUI: 0x009069,Subtype: 1,Info: 564633373136303530303437
VLAN Name TLV
VID 1: Name vlan-1
LLDP-MED Capabilities TLV
Device Type: netcon
Capabilities: LLDP-MED,Network Policy,Location Identification,Extended Power via MDI-PSE
End of LLDPDU TLV
其他有用的链接:
http://comments.gmane.org/gmane.linux.network/408868
https://communities.intel.com/thread/87759
https://sourceforge.net/p/e1000/mailman/message/34129092/
而我的谷歌search