我知道这是一个新手问题,但我需要能够手动安装我的 Dell Poweredge R610 上的以太网驱动程序,因为它默认不安装任何驱动程序来连接互联网。如能提供任何帮助,我将不胜感激。
命令结果
lspci -nnk | grep 0200 -A3
注意:由于我没有 SSH 或互联网、LAN 或 WAN。我不得不手动输入这些内容,因此可能会有错误。
01:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639] (rev 20)
Subsystem: Dell PowerEdge R610 BCM5709 Gigabit Ethernet [1028:0236]
Kernel driver in use: bnx2
Kernel modules: bnx2
01:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639] (rev 20)
Subsystem: Dell PowerEdge R610 BCM5709 Gigabit Ethernet [1028:0236]
Kernel driver in use: bnx2
Kernel modules: bnx2
02:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639] (rev 20)
Subsystem: Dell PowerEdge R610 BCM5709 Gigabit Ethernet [1028:0236]
Kernel driver in use: bnx2
Kernel modules: bnx2
02:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639] (rev 20)
Subsystem: Dell PowerEdge R610 BCM5709 Gigabit Ethernet [1028:0236]
Kernel driver in use: bnx2
Kernel modules: bnx2
cat /etc/netplan/*.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets: {}
version: 2
答案1
您的 netplan 文件当前显示:
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
我建议你这样做。从终端:
sudo -i
echo "network: {config: disabled}" >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
接下来,让我们修改 netplan 文件以添加您的配置:
nano /etc/netplan/50-cloud-init.yaml
按照我的建议编辑文件以包含您的设置:
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: true
Netplan 对缩进和间距非常讲究。请仔细校对两遍。保存(Ctrl+o 后按 Enter)并退出(Ctrl+x)文本编辑器。下一步:
netplan generate
netplan apply
exit
重启。一切就绪。
编辑:如果您更喜欢服务器推荐的静态 IP 地址,我建议将您的 /etc/netplan/50-cloud-init.yaml 文件修改为:
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
addresses:
- 10.10.10.2/24
gateway4: 10.10.10.1
nameservers:
addresses: [10.10.10.1, 8.8.8.8]
当然,请在此处替换您的详细信息。然后:
sudo netplan generate
sudo netplan apply
重启。
参考:请参阅 /usr/share/doc/netplan/examples 中的许多 netplan 模板。
答案2
看起来您已经有了正确的固件。确保您已通过 NIC 实际连接到 Internet。如果您可以物理访问服务器,只需将其以太网电缆插入另一台设备并检查它是否正常工作。
最后,我们不知道您的网络配置是什么,也许没有运行 DHCP,您需要在四个接口之一上手动设置网络配置。它包括接口配置,例如 IP、网关、网络掩码、广播、路由和 DNS 服务器。
题外话:如果在安装 ubuntu 时提示缺少固件,你应该记下哪些设备缺少固件包。然后你可以将它们分别下载为 .deb 包,将它们写入 pendrive 并在安装时指出它们的位置。