我刚刚在专用硬件上完成了 Ubuntu Server 18.04 的全新安装。登录后,绑定的网络接口没有从 DHCP 分配 IP。如果我运行sudo dhclient
绑定的接口会获得一个 IP,并且一切似乎都可以正常工作。重新启动后,我回到了非工作网络。
如果我执行sudo ip address show
,我可以看到我的界面已关闭。sudo ip link bond0 up
接口出现后没有IP 。
我已经看过这个问题了:Ubuntu 18.04 ethernet not configure automatically这个问题没有解决我的问题。问题包括ifup
哪些在我的系统上不可用。接受的答案包括/etc/network/interfaces
18.04 不可用的答案。
我看过这个问题:Ubuntu Server 18.04 waiting for Network at startup 虽然网络正常,它专门调用无线,这不是我的情况,也没有可接受的答案。
有这个问题:Ubuntu server 18.04 - No IP address with Netplan这是一个没有答案的零信誉问题。有一条评论建议捕获数据包并提交错误报告。我已经使用tcpdump
DHCP 流量运行数据包捕获,我得到的唯一数据是接口丢弃的 10 个数据包(我假设这不是 DCHP 流量)。
我没有发现任何其他似乎相关的现有问题。
所以我的问题是双重的:
- 这是一个错误吗?
- 安装后是否需要手动设置网络接口?
编辑:附加信息
lshw:
*-network:0
description: Ethernet interface
product: 82576 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:05:00.0
logical name: enp5s0f0
version: 01
serial: 3e:e4:cf:e3:41:b2
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.4.0-k duplex=full firmware=1.2.3 latency=0 link=yes multicast=yes port=twisted pair slave=yes speed=1Gbit/s
resources: irq:25 memory:c0000000-c001ffff memory:c0020000-c003ffff ioport:ef80(size=32) memory:c00c0000-c00c3fff memory:c0040000-c005ffff memory:c00c4000-c00e3fff memory:c00e4000-c0103fff
*-network:1
description: Ethernet interface
product: 82576 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0.1
bus info: pci@0000:05:00.1
logical name: enp5s0f1
version: 01
serial: 3e:e4:cf:e3:41:b2
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.4.0-k duplex=full firmware=1.2.3 latency=0 link=yes multicast=yes port=twisted pair slave=yes speed=1Gbit/s
resources: irq:35 memory:c0060000-c007ffff memory:c0080000-c009ffff ioport:ef40(size=32) memory:c0104000-c0107fff memory:c00a0000-c00bffff memory:c0108000-c0127fff memory:c0128000-c0147fff
*-network DISABLED
description: Ethernet interface
physical id: 1
logical name: bond0
serial: 3e:e4:cf:e3:41:b2
size: 1Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=bonding driverversion=3.7.1 duplex=full firmware=2 link=no master=yes multicast=yes speed=1Gbit/s
/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:
bonds:
bond0:
addresses: []
interfaces:
- enp5s0f0
- enp5s0f1
parameters:
mode: active-backup
ethernets:
enp5s0f0:
addresses: []
dhcp4: false
dhcp6: false
enp5s0f1:
addresses: []
dhcp4: false
dhcp6: false
version: 2