
華碩 Q550LF 8 Gb i7 1 TB
從 16.04 升級到 16.10 時,Ubuntu 重新命名了網路卡。 WiFi 可以用,但乙太網路不行。繼續升級到17.04,問題得以延續。乙太網路在 Win 8.1 上仍然可以正常運作。我該如何修復它?
$ ifconfig -a
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::dc01:cf88:1f7c:1 prefixlen 64 scopeid 0x20<link>
inet6 2605:e000:2342:e700::4 prefixlen 128 scopeid 0x0<global>
inet6 2605:e000:2342:e700:f7f:f32c:93b7:3d16 prefixlen 64 scopeid 0x0<global>
ether 10:c3:7b:1e:ea:cd txqueuelen 1000 (Ethernet)
RX packets 7963 bytes 2709308 (2.7 MB)
RX errors 0 dropped 785 overruns 0 frame 0
TX packets 2260 bytes 348549 (348.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
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 4763 bytes 311223 (311.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4763 bytes 311223 (311.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 2605:e000:2342:e700:5283:43a0:e0ed:ded prefixlen 64 scopeid 0x0<global>
inet6 2605:e000:2342:e700:d9aa:3889:eb23:538f prefixlen 64 scopeid 0x0<global>
inet6 2605:e000:2342:e700::2 prefixlen 128 scopeid 0x0<global>
inet6 fe80::92f1:5157:464b:a1a9 prefixlen 64 scopeid 0x20<link>
ether 80:86:f2:08:b2:8b txqueuelen 1000 (Ethernet)
RX packets 3957 bytes 444699 (444.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 713 bytes 218381 (218.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
和
$ sudo 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: enp2s0
version: 0c
serial: 10:c3:7b:1e:ea:cd
size: 1Gbit/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=rtl8168g-2_0.0.1 02/06/13 ip=192.168.0.10 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:42 ioport:e000(size=256) memory:f7900000-f7900fff memory:f2100000-f2103fff
*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 6b
serial: 80:86:f2:08:b2:8b
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.10.0-20-generic firmware=17.459231.0 ip=192.168.0.39 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:46 memory:f7800000-f7801fff
答案1
你能幫我一個忙,取出所有額外的資訊嗎?
不是-a。
嘗試使用有線時停用無線。
您對有線連接靜態或 dhcp 的設定是什麼,如果 dhcp 嘗試使用靜態 dns 靜態以及 8.8.8.8 或 8.8.4.4 是 google dns,看看您是否可以存取網際網路。
如果這不起作用,請確保在嘗試其餘操作之前返回 dhcp。
可以嘗試關閉設備然後再啟動。
ifconfig eth0 關閉
ifconfig eth0 up
eth0 = 您的乙太網路裝置有時呼叫名稱不同,基本的 ifconfig 會在終端機最左側顯示呼叫名稱。
也嘗試一下
sudo 服務網絡重啟
您也可以使用traceroute來查看連接有多遠,看看它是否到達了外側
sudo apt-get 安裝追蹤路由
例如:traceroute google.com
有時你可以透過你的BIOS禁用任一網絡,我會確保它沒有在其中的某些地方被禁用。如果您以前從未訪問過 BIOS,則情況很可能並非如此。
嘗試
ip位址刷新eth0
我發現這很有趣,有很多關於如何發現有關您的任何網路狀態的更多資訊的資訊。
https://help.ubuntu.com/lts/serverguide/network-configuration.html
我喜歡這個想法,使用這個網路管理器而不是庫存,一個女巫可能無法正常工作