有时 Ubuntu 18.04 在启动期间无法连接到网络。我必须重新启动 1 或 2 次才能正确连接。有线以太网连接。
关于如何在不重新启动的情况下解决此问题的任何建议?
sudo lshw -C network
[sudo] password for user:
*-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:08:00.0
logical name: enp8s0
version: 07
serial: 00:13:3b:2f:54:58
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd 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=1xx.1xx.1.2 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:19 ioport:a000(size=256) memory:fe400000-fe400fff memory:d0000000-d0003fff
ifconfig
Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools
cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:13:3b:2f:54:58 brd ff:ff:ff:ff:ff:ff
inet 1xx.1xx.1.2/24 brd 1xx.1xx.1.255 scope global dynamic noprefixroute enp8s0
valid_lft 85762sec preferred_lft 85762sec
inet6 2a02:2149:8671:6c00:95d5:5075:c66d:a36e/64 scope global temporary dynamic
valid_lft 70680sec preferred_lft 27480sec
inet6 2a02:2149:8671:6c00:b5ed:32e1:2fd2:2ee/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 70680sec preferred_lft 27480sec
inet6 fe80::c3c:4354:23e7:410f/64 scope link noprefixroute
valid_lft forever preferred_lft forever
tracepath www.google.com
1?: [LOCALHOST] 0.010ms pmtu 1492
1: 2a02:2149:816a:5400:a6b1:e9ff:fe30:d40 1.069ms
1: 2a02:2149:816a:5400:a6b1:e9ff:fe30:d40 1.061ms
2: bbras-llu-kln-15L500.forthnet.gr 46.737ms
3: Te-0-0-0-7.distr-kln-02.forthnet.gr 24.145ms
4: BE3.core-kln-03.forthnet.gr 24.236ms
5: Xe2-0-1.core-lsf-09.forthnet.gr 32.092ms
6: xgei0-2-0-5.core-tpn-01.forthnet.gr 38.102ms
7: no reply
8: no reply
9: no reply
10: no reply
11: no reply
12: no reply
13: no reply
14: no reply
15: no reply
16: no reply
17: no reply
18: no reply
19: no reply
20: no reply
21: no reply
22: no reply
23: no reply
24: no reply
25: no reply
26: no reply
27: no reply
28: no reply
29: no reply
30: no reply
Too many hops: pmtu 1492
Resume: pmtu 1492