WIFI 工作但有线连接不工作:Ubuntu 14.04

WIFI 工作但有线连接不工作:Ubuntu 14.04

我已经成功连接Ubuntu 和 Windows 中的 WIFI

I have dual boot:Ubuntu 14.04 installed & upgraded to 14.04.1 and Windows 8.1

但我有仅在 Ubuntu 中有线连接存在问题(尽管它在 Windows 上运行良好)。

我咨询过这里但没有运气。我想我遇到了一些问题静态设置 IP 地址从 Ubuntu 端。显示了连接,但我无法访问互联网,甚至无法访问网关(我的意思是192.168.1.1)。

我按照描述的方式这里

所以我的网络管理器配置文件好像:

[main]
plugins=ifupdown,keyfile
#dns=dnsmasq

[ifupdown]
managed=true

但是我删除了其他部分这是默认的。

和我的界面就好像:

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.102 #I have seen from Windows that it's 1.102
gateway 192.168.1.1 # 1.1 is because I use 192.168.1.1 to access router settings
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4

我使用以下命令重新启动新设置

sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart

我现在有

配置文件

    eth0      Link encap:Ethernet  HWaddr 98:4b:e1:a2:2f:fa  
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9a4b:e1ff:fea2:2ffa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1089 errors:0 dropped:0 overruns:0 frame:0
          TX packets:644 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:77228 (77.2 KB)  TX bytes:72394 (72.3 KB)

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:4756 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1240162 (1.2 MB)  TX bytes:1240162 (1.2 MB)

wlan0     Link encap:Ethernet  HWaddr e0:2a:82:fa:e9:f8  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:1997 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2675 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1085963 (1.0 MB)  TX bytes:348905 (348.9 KB)

路线-n

 Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

ping -c3 192.168.1.1

PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.0.102 icmp_seq=1 Destination Host Unreachable
From 192.168.0.102 icmp_seq=2 Destination Host Unreachable
From 192.168.0.102 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
pipe 2

ping -c3 4.2.2.2

PING 4.2.2.2 (4.2.2.2) 56(84) bytes of data.
From 192.168.0.102 icmp_seq=1 Destination Host Unreachable
From 192.168.0.102 icmp_seq=2 Destination Host Unreachable
From 192.168.0.102 icmp_seq=3 Destination Host Unreachable

--- 4.2.2.2 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
pipe 3

点击链接后,我有了新的设置(之前是 AutoEthernet,新设置是 ifeth(up)。我想我应该尝试连接 ifeth0(up))。

感谢您的时间!!

相关内容