![我無法在 Windows 中使用以太網,所以我安裝了 Ubuntu14.04,但它是一樣的。](https://rvso.com/image/1048334/%E6%88%91%E7%84%A1%E6%B3%95%E5%9C%A8%20Windows%20%E4%B8%AD%E4%BD%BF%E7%94%A8%E4%BB%A5%E5%A4%AA%E7%B6%B2%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E5%AE%89%E8%A3%9D%E4%BA%86%20Ubuntu14.04%EF%BC%8C%E4%BD%86%E5%AE%83%E6%98%AF%E4%B8%80%E6%A8%A3%E7%9A%84%E3%80%82.png)
tonycarter@tonycarter-Inspiron-3521:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3705 errors:0 dropped:0 overruns:0 frame:0
TX packets:3705 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:544960 (544.9 KB) TX bytes:544960 (544.9 KB)
wlan0 Link encap:Ethernet HWaddr bc:85:56:0e:d3:f7
inet addr:172.16.5.94 Bcast:172.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::be85:56ff:fe0e:d3f7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:108344 errors:0 dropped:12 overruns:0 frame:0
TX packets:44922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:56709064 (56.7 MB) TX bytes:6393235 (6.3 MB)
tonycarter@tonycarter-Inspiron-3521:~$ sudo servic network-interface restart
[sudo] password for tonycarter:
sudo: servic: command not found
tonycarter@tonycarter-Inspiron-3521:~$ sudo service network-interface restart
stop: Unknown parameter: INTERFACE
start: Unknown parameter: INTERFACE
tonycarter@tonycarter-Inspiron-3521:~$
答案1
看起來你的乙太網路沒有被偵測到,你可以嘗試這個指令
sudo ifconfig eth0 up
如果它沒有做任何事情,你的乙太網路控制器就壞了。