我的Ubuntu 17没有连接到我的网络(以太网)。
我试过重新启动网络服务,但是遇到一个错误,告诉我要运行
journalctl1 -xe这显示了错误
Error getting hardware address for enp3s0
...
Failed to start Raise network address这是我的/etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp3s0
iface enp3s0 inet dhcp我已经搜索过了,但是大多数人都说要改变接口来使用eth0,我已经尝试过了,但是它根本没有修复它,所以不确定还可以尝试什么
$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 352 bytes 26304 (26.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 352 bytes 26304 (26.3 KB)
TX errors 0 dropped 0 overruns 0 frame 0 collisions 0发布于 2018-02-18 13:45:49
对于标记为p5p1的接口,我也收到了相同的错误。
运行lshw -C network产生的输出类似于以下内容(接口现在工作,因此一些细节将有所不同):
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: p4p1
version: 06
serial: 18:67:b0:df:4e:68
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=10.1.2.228 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:27 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff相关的行是logical name: p4p1。不知何故,网络配置为打开接口p5p1,但操作系统正在将该设备识别为p4p1。
我更新了/etc/network/接口,将p5p1替换为p4p1,然后重置网络服务。接口没有问题。
https://askubuntu.com/questions/925534
复制相似问题