Linux系统BCM57416网卡启动后自动断开连接解决方案

Linux系统重启后,BCM57416(Broadcom NetXtreme-E)网卡会无法连接网络,在日志中可以发现如下告警:

Oct 10 10:37:02 yunweixia.com kernel: bnxt_en 0000:5e:00.0 p3p1: NIC Link is Up, 10000 Mbps full duplex, Flow control: none
Oct 10 10:37:02 yunweixia.com kernel: bnxt_en 0000:5e:00.1 p3p2: NIC Link is Up, 10000 Mbps full duplex, Flow control: none
Oct 10 10:37:02 yunweixia.com kernel: bnxt_en 0000:5e:00.0 p3p1: NIC Link is Down
Oct 10 10:37:02 yunweixia.com kernel: bnxt_en 0000:5e:00.1 p3p2: NIC Link is Down

一、先决条件

  • 1.Red Hat Enterprise Linux 9.4
  • 2.BCM57416 with PCI ID [14e4:16d8 with bnxt_en driver
  • 3.firmware-version: 20.6.151.0

二、解决方案

1.检查网卡型号

# lspci | grep -i ether
01:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57416 NetXtreme-E Dual-Media 10G RDMA Ethernet Controller [14e4:16d8] (rev 01)
        Product Name: Broadcom Adv. Dual 10GBASE-T Ethernet

2.检查固件版本

# ethtool -i 
driver: bnxt_en
version: 5.14.0-427.37.1.el9_4.x86_64
firmware-version: 20.6.151.0      <----------
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

3.故障现象

p3p1网卡和p3p2网卡在启动并激活配置文件1秒后,链接关闭。每次重启时,此行为都是一致的。

Oct 11 09:10:01 yunweixia.com kernel: bnxt_en 0000:5e:00.0 p3p1: NIC Link is Up, 10000 Mbps full duplex, Flow control: none
Oct 11 09:10:01 yunweixia.com kernel: bnxt_en 0000:5e:00.1 p3p2: NIC Link is Up, 10000 Mbps full duplex, Flow control: none
...
Oct 11 09:10:01 yunweixia.com kernel: bnxt_en 0000:5e:00.1 p3p2: NIC Link is Down
Oct 11 09:10:02 yunweixia.com kernel: bond0: (slave p3p1): link status definitely down, disabling slave
Oct 11 09:10:02 yunweixia.com kernel: bond0: (slave p3p2): link status definitely down, disabling slave
Oct 11 09:10:02 yunweixia.com kernel: bond0: now running without any active interface!

4.解决方案

如果BCM57416[14e4:16d8]正在使用较旧的NIC固件(firmware-version: 20.6.151.0),这可能会导致启动时宕机等意外行为。测试环境中将固件升级到“22.21.07.80”后,问题得以解决。

原创文章,作者:运维侠,如若转载,请注明出处:https://www.yunweixia.com/solutions/solution-for-automatic-disconnection-of-bcm57416-network-interface-card-after-startup-on-linux-system.html

(0)
运维侠的头像运维侠共建用户
上一篇 2025年6月16日 18:11
下一篇 2025年6月18日 18:11

相关推荐

发表回复

登录后才能评论