debian:双以太网卡 82576-CE-2T-X1 上的网络接口引发问题

debian:双以太网卡 82576-CE-2T-X1 上的网络接口引发问题

各位超级用户大家好,

我在设置双以太网卡 82576-GE-2T-X1 时遇到了问题。我成功制作了最新的驱动程序 igb,并在移除了之前的 igb 模块后安装了该模块。因此,一切都很好,直到我的 /etc/network/interfaces 的网络提升 - 提升失败。

这是我的接口文件:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto enp3s0
allow-hotplug enp3s0
iface enp3s0 inet dhcp 

auto enp1s0f0
iface enp1s0f0 inet static
address 10.0.0.12/24
gateway 10.0.0.12

auto enp1s0f1
iface enp1s0f1 inet static
address 192.168.0.12/24
gateway 192.168.0.10

这是“systemctl status networking.service”消息:

● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-11-24 12:48:55 CET; 45s ago
     Docs: man:interfaces(5)
  Process: 1922 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
 Main PID: 1922 (code=exited, status=1/FAILURE)

这是“journalctl -xe”消息:

 Defined-By: systemd
 Support: https://www.debian.org/support
 
 An ExecStart= process belonging to unit networking.service has exited.
 
 The process' exit code is 'exited' and its exit status is 1.
Nov 24 12:51:37 rond systemd[1]: networking.service: Failed with result 'exit-code'.
 Subject: Unit failed
 Defined-By: systemd
 Support: https://www.debian.org/support
 
 The unit networking.service has entered the 'failed' state with result 'exit-code'.
Nov 24 12:51:37 rond systemd[1]: Failed to start Raise network interfaces.
 Subject: A start job for unit networking.service has failed
 Defined-By: systemd
 Support: https://www.debian.org/support
 
 A start job for unit networking.service has finished with a failure.
 
 The job identifier is 1034 and the job result is failed.

$ sudo ifup enp1s0f1

RTNETLINK 回答:文件存在

ifup: 无法启动 enp1s0f1

因此,两个新接口无法升起(总共 3 个,包括主板网卡),当然也无法 ping 通。

有人有线索吗?(我也尝试联系卡供应商 ipolex)

谢谢你的见解:-)

/cr!ptal

答案1

好的,我明白了:

我将初始帖子中的 /etc/network/interfaces 替换为:

'# 此文件描述了系统上可用的网络接口

'# 以及如何激活它们。有关更多信息,请参阅接口 (5)。

源 /etc/network/interfaces.d/*

'# 环回网络接口

自动档

iface lo inet 环回

自动 enp3s0

允许热插拔 enp3s0

iface enp3s0 inet dhcp

允许热插拔 enp1s0f0

iface enp1s0f0 inet 静态

地址 10.0.0.12

网络掩码 255.255.255.0

网关 10.0.0.12

允许热插拔 enp1s0f1

iface enp1s0f1 inet 静态

地址 192.168.0.12

网络掩码 255.255.255.0

网关 192.168.0.10

现在它运行良好。迫不及待地想测试这张新卡的直通输出 :-)

祝你今天过得愉快,

/cr!ptal

相关内容