Perda de conexão com a Internet no Debian 8.2

0

Li muitos askubuntu e outros posts no fórum sobre perda de conexão com a Internet. Eu instalei o Debian 8.2 Jessy em um laptop e usei a configuração estática do IPv4:

  • IP Addr. 10.0.0.5
  • Máscara 255.255.255.0
  • Gateway 10.0.0.138
  • Dns 8.8.8.8 (DNS do Google) + DNS do ISP Funcionou. Então, depois de algum trabalho, do nada a conexão é perdida. Eu tentei pingar o roteador:
 root@debian82:/home/user# ping 10.0.0.138
 PING 10.0.0.138 (10.0.0.138) 56(84) bytes of data.
 64 bytes from 10.0.0.138: icmp_seq=1 ttl=255 time=1.37 ms
 64 bytes from 10.0.0.138: icmp_seq=2 ttl=255 time=1.60 ms
 64 bytes from 10.0.0.138: icmp_seq=3 ttl=255 time=0.740 ms
 64 bytes from 10.0.0.138: icmp_seq=4 ttl=255 time=0.734 ms
 64 bytes from 10.0.0.138: icmp_seq=5 ttl=255 time=0.668 ms
 64 bytes from 10.0.0.138: icmp_seq=6 ttl=255 time=0.707 ms
 ^C
 --- 10.0.0.138 ping statistics ---
 6 packets transmitted, 6 received, 0% packet loss, time 5003ms
 rtt min/avg/max/mdev = 0.668/0.971/1.601/0.372 ms

Eu tentei fazer ping no Google:

root@debian82:/home/user# ping google.com ping: unknown host
google.com

Eu tentei mudar para o dhcp e atualizar sua configuração:

 root@debian82:/home/user# dhclient -r -v eth0 && rm
 /var/lib/dhcp/dhclient.*; dhclient -v eth0 Internet Systems Consortium
 DHCP Client 4.3.1 Copyright 2004-2014 Internet Systems Consortium. All
 rights reserved. For info, please visit
 https://www.isc.org/software/dhcp/

 Listening on LPF/eth0/00:02:a5:b5:e1:eb Sending on  
 LPF/eth0/00:02:a5:b5:e1:eb Sending on   Socket/fallback DHCPRELEASE on
 eth0 to 10.0.0.138 port 67 Internet Systems Consortium DHCP Client
 4.3.1 Copyright 2004-2014 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

 Listening on LPF/eth0/00:02:a5:b5:e1:eb Sending on  
 LPF/eth0/00:02:a5:b5:e1:eb Sending on   Socket/fallback DHCPDISCOVER
 on eth0 to 255.255.255.255 port 67 interval 5 DHCPREQUEST on eth0 to
 255.255.255.255 port 67 DHCPOFFER from 10.0.0.138 DHCPACK from 10.0.0.138 bound to 10.0.0.11 -- renewal in 110048 seconds.

Veja o que eu recebi:

etc / networking / interfaces

allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
#       address 10.0.0.11
#       netmask 255.255.255.0
#       gateway 10.0.0.138
        nameserver 8.8.8.8
        nameserver 194.90.0.1
        dns-nameservers 8.8.8.8 194.90.0.1 8.8.4.4

Eu tentei tudo o que pude encontrar e reiniciei entre cada teste. Onde estou errado? O conteúdo de /etc/resolv.conf é:

user@debian82:~$ nano /etc/resolv.conf
nameserver 10.0.0.138

EDITAR: adicionei os outros servidores de nomes (Google e ISPs) a /etc/resolv.conf . Eu estou escrevendo esta edição do computador que não tinha internet.

    
por Phantom 16.11.2015 / 19:30

1 resposta

1

A adição de outros servidores de nomes a /etc/resolv.conf corrigiu o problema. Antes parecia:

user@debian82:~$ nano /etc/resolv.conf
nameserver 10.0.0.138

Agora parece:

user@debian82:~$ nano /etc/resolv.conf
nameserver 10.0.0.138
nameserver <ISP's dns name server>
nameserver 8.8.8.8 <(Google's)>

E a conexão é retomada:

PING google.com (194.90.196.110) 56(84) bytes of data.
64 bytes from 194.90.196.110: icmp_seq=1 ttl=59 time=14.5 ms
64 bytes from 194.90.196.110: icmp_seq=2 ttl=59 time=15.9 ms
64 bytes from 194.90.196.110: icmp_seq=3 ttl=59 time=15.3 ms
64 bytes from 194.90.196.110: icmp_seq=4 ttl=59 time=14.0 ms
64 bytes from 194.90.196.110: icmp_seq=5 ttl=59 time=15.3 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 5882ms
rtt min/avg/max/mdev = 14.030/15.048/15.930/0.669 ms
    
por 17.11.2015 / 14:25

Tags