Tenho uma conexão bem-sucedida por meio do WIFI no Ubuntu e no Windows .
( I have dual boot:Ubuntu 14.04 installed & upgraded to 14.04.1 and Windows 8.1
)
Mas eu tenho problema na conexão com fio apenas no Ubuntu (embora funcione bem no Windows).
Eu consultei aqui mas sem sorte. Eu acho que tenho algum problema em definir endereço IP estaticamente do lado do Ubuntu. A conexão é mostrada, mas não consigo acessar a Internet e nem mesmo o gateway (quero dizer 192.168.1.1
).
Eu segui o caminho descrito aqui :
Então, meu NetworkManager.conf se parece com:
[main]
plugins=ifupdown,keyfile
#dns=dnsmasq
[ifupdown]
managed=true
Mas eu removi outra parte que era por padrão.
E minha interface é como:
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
E eu usei o seguinte para reiniciar as novas configurações
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
Agora eu tenho
ifconfig -a
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)
route -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
E depois de seguir o link eu tenho novas configurações (Anterior foi AutoEthernet e novo que eu tenho é ifeth (up). Eu acho que deveria tentar conectar o ifeth0 (up)).
Obrigado pelo seu tempo !!