CentOS   发布时间:2022-05-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了centos6 – 禁用内部Intel X710 LLDP代理大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我们采用特殊的硬件配置,需要大量使用LLDP.我们有一些新的服务器机架都使用英特尔X710 10Gb网卡. LLDP突然停止工作.我们的LLDP实现很简单.使用默认TLV在TOR(机架顶部)交换机上启用LLDP.使用lldpad(CentOS 6.5)在 Linux映像上启用LLDP,并使用lldptool提取邻居信息,这些信息过去曾适用于数千台计算机.只有这些带有这些NIC的机器,整个过程才停止工作.

使用来自交换机和服务器的数据包转储显示帧已从服务器正确发送到交换机,相反,交换机正确地从服务器接收帧并将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

大佬总结

以上是大佬教程为你收集整理的centos6 – 禁用内部Intel X710 LLDP代理全部内容,希望文章能够帮你解决centos6 – 禁用内部Intel X710 LLDP代理所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: