Problème accès internet (WAN) sous debian

Résolu
Bonjour,

J'ai un serveur Linux sous Debian connecté au web par une Freebox et depuis que je suis passé sur la Freebox V5 , la commande 'ping www.free.fr' (par ex) ne fonctionne plus.

En gros, l'accès internet WAN ne repond plus.
Par contre, le ping LAN de la freebox (ping 192.168.0.1) fonctionne parfaitement

Y-a-t-il une config speciale des fichiers /etc/network/interfaces ou /etc/resolv.conf à faire ?

Merci

8 réponses

  1. Ca marche !!!

    J'ai connecté le serveur SEUL sur la freebox et ca fonctionne direct !
    Ensuite j'ai tout rebranché sauf une borne wifi (que je pensait etre un simple switch mais qui était routeur DHCP )et ca marche toujours...

    Merci à vous !
    1. voila les fichiers :

      gozilla:~#cat /etc/network/interfaces

      # This file describes the network interfaces available on your system
      # and how to activate them. For more information, see interfaces(5).

      # The loopback network interface
      auto lo
      iface lo inet loopback

      # The primary network interface
      auto eth0

      # iface eth0 inet dhcp

      # modif du 15/11/2010 - passage en DHCP :
      # iface eth0 inet static
      iface eth0 inet dhcp
      address 192.168.0.4
      netmask 255.255.255.0
      network 192.168.0.0
      broadcast 192.168.0.255
      gateway 192.168.0.1
      # dns-* options are implemented by the resolvconf package, if installed
      dns-nameservers 212.27.40.240 192.168.0.1
      -------------------------------------------------------------------------------

      gozilla:# cat /etc/resolv.conf
      search
      nameserver 192.168.0.1
      nameserver 194.98.0.1

      -------------------------------------------------------------------------------
      gozilla:~#cat /etc/hosts
      127.0.0.1 localhost.localdomain localhost
      192.168.0.4 gozilla.alia gozilla

      # The following lines are desirable for IPv6 capable hosts
      ::1 ip6-localhost ip6-loopback
      fe00::0 ip6-localnet
      ff00::0 ip6-mcastprefix
      ff02::1 ip6-allnodes
      ff02::2 ip6-allrouters
      ff02::3 ip6-allhosts
      -------------------------------------------------------------------------------

      gozilla:~# ifconfig
      eth0 Lien encap:Ethernet HWaddr 00:D0:B7:6B:53:1D
      inet adr:192.168.0.4 Bcast:192.168.0.255 Masque:255.255.255.0
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:2049 errors:44 dropped:0 overruns:0 frame:44
      TX packets:749 errors:0 dropped:0 overruns:0 carrier:0
      collisions:51 lg file transmission:1000
      RX bytes:339616 (331.6 KiB) TX bytes:75080 (73.3 KiB)
      Interruption:11 Adresse de base:0x1000 Mémoire:f4100000-f4100038

      lo Lien encap:Boucle locale
      inet adr:127.0.0.1 Masque:255.0.0.0
      UP LOOPBACK RUNNING MTU:16436 Metric:1
      RX packets:8 errors:0 dropped:0 overruns:0 frame:0
      TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 lg file transmission:0
      RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
      1. voila les fichiers :
        mais il n'y pas de fichier resolve.conf

        gozilla:~#cat /etc/network/interfaces

        # This file describes the network interfaces available on your system
        # and how to activate them. For more information, see interfaces(5).

        # The loopback network interface
        auto lo
        iface lo inet loopback

        # The primary network interface
        auto eth0

        # iface eth0 inet dhcp

        # modif du 15/11/2010 - passage en DHCP :
        # iface eth0 inet static
        iface eth0 inet dhcp
        address 192.168.0.4
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 212.27.40.240 192.168.0.1
        -------------------------------------------------------------------------------

        gozilla:~#cat /etc/hosts
        127.0.0.1 localhost.localdomain localhost
        192.168.0.4 gozilla.alia gozilla

        # The following lines are desirable for IPv6 capable hosts
        ::1 ip6-localhost ip6-loopback
        fe00::0 ip6-localnet
        ff00::0 ip6-mcastprefix
        ff02::1 ip6-allnodes
        ff02::2 ip6-allrouters
        ff02::3 ip6-allhosts
        -------------------------------------------------------------------------------

        gozilla:~# ifconfig
        eth0 Lien encap:Ethernet HWaddr 00:D0:B7:6B:53:1D
        inet adr:192.168.0.4 Bcast:192.168.0.255 Masque:255.255.255.0
        UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
        RX packets:2049 errors:44 dropped:0 overruns:0 frame:44
        TX packets:749 errors:0 dropped:0 overruns:0 carrier:0
        collisions:51 lg file transmission:1000
        RX bytes:339616 (331.6 KiB) TX bytes:75080 (73.3 KiB)
        Interruption:11 Adresse de base:0x1000 Mémoire:f4100000-f4100038

        lo Lien encap:Boucle locale
        inet adr:127.0.0.1 Masque:255.0.0.0
        UP LOOPBACK RUNNING MTU:16436 Metric:1
        RX packets:8 errors:0 dropped:0 overruns:0 frame:0
        TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
        1. Tu nous montres tes fichiers /etc/network/interfaces, /etc/hosts et /etc/resolve.conf s'il te plait.
          et le résultat de ifconfig également
          1. merci de ta réponse..

            Oui j'ai activé le DHCP de ma freebox et pas de pb, mes PC windows sortent bien sur le web, ainsi qu'un autre poste linux.
            Mais celui la (IP 192.168.0.4) ne veut pas voir l'exterieur.
            Par contre, no pb en LAN

            Je ne pige pas...
            1. Salut,

              Comme c'est une freebox.. comme tu parles d'un serveur... j'en déduis (à tort ?) qu'au moins deux postes sont connectés.

              1er controle à faire : as tu activé le dhcp de la freebox (non activé par défaut....)