[RESOLU]Paramètrer Debian pour le reseaux ethernet

Bonjour,

J’ais chercher partout sur le forum mais sans succée,

voila avant de partir j’aimerais brancher mon ordi Debian sur le net via un cable ethernet, quand je le branche sa fonctionne, mais je peut accédé qu’à google et rien d’autre. donc je suis allé dans une application qui gére le réseaux et 'ais activé les deux insterface réseau mais là l’ordi il ne détecte plus rien !

J’ais tout éssayé de les activé un par un, les deux en même temp mais rien y fait.

Quelqu’un pourrait me donner un lien verre un tuto ou pourait m’expliquer comment on paramètre le réseaux ethernet sur Debian??

si tu ne peux accéder qu’a google, c’est que tu te goures :wink:
soit Google est resté en cache et il t’affiche sa p’tite page, mais elle ne vient pas du net, soit tu as un parefeu qui n’autorise que google (crétin, voire inutile)
je pencherai plutot pourun problème de DHCP non ?
Quand tu branches ton cable ethernet fait ensuite (en root) :

dhclient3

kes ki te dit ?

bash : command not found

Salut
réessaie sans le 3 :slightly_smiling:

non toujours pareil, pourtant g installé dhcp-client et dhcp
mais il continue à me dire qu’il ne connait pas:s arf c’est chiant linux !!

oups je retire tou, en faite j’était dans le terminale utilisateur pas dans le terminale admin.

donc pour la commande : dhclient3 ca me met : BASH : dhclient3 : command not found

et pour la commande : dhclient ca me met :

NoThing:/home/softreaver# dhclient
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit isc.org/dhcp-contrib.html

sit0: unknown hardware address type 776
eth0: unknown hardware address type 24
sit0: unknown hardware address type 776
eth0: unknown hardware address type 24
Listening on LPF/sit0/
Sending on LPF/sit0/
Listening on LPF/eth1/00:03:0d:18:ab:66
Sending on LPF/eth1/00:03:0d:18:ab:66
Listening on LPF/lo/
Sending on LPF/lo/
Listening on LPF/eth0/
Sending on LPF/eth0/
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database.

Sleeping.

doit je précisé que je n’avais pas le cable ethernet braché sur Debian losque que j’ais éxécuté la commande?
car le cable ethernet je l’utilise normalement sur mon pc fixe windows.

La précision est bonne … ça ne sert à rien sans le cable !

Voici un copier collé de mon terminal root :

NoThing:/home/softreaver# dhclient3
bash: dhclient3: command not found

NoThing:/home/softreaver# dhclient
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit isc.org/dhcp-contrib.html

sit0: unknown hardware address type 776
eth0: unknown hardware address type 24
sit0: unknown hardware address type 776
eth0: unknown hardware address type 24
Listening on LPF/sit0/
Sending on LPF/sit0/
Listening on LPF/lo/
Sending on LPF/lo/
Listening on LPF/eth0/
Sending on LPF/eth0/
Listening on LPF/eth1/00:03:0d:18:ab:66
Sending on LPF/eth1/00:03:0d:18:ab:66
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
SIOCADDRT: File exists
bound to 192.168.1.3 – renewal in 302400 seconds.
NoThing:/home/softreaver#

maintenant toujours dans ta console en root :

ifconfig

ping google.fr

route

traceroute google.fr

si tu as une réponsse de
ping google.fr
tente
ping debian-fr.org/

et si tu as pas de réponsse du 2ème ping sa vient d un parfeu

voici

NoThing:/home/softreaver# ifconfig
eth0 Lien encap:UNSPEC HWaddr 00-03-0D-53-25-51-B3-FB-00-00-00-00-00-00-00-00
inet adr:183.132.122.89 Bcast:183.132.255.255 Masque:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:110 dropped:110 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:2571 (2.5 KiB)

eth1 Lien encap:Ethernet HWaddr 00:03:0D:18:AB:66
inet adr:192.168.1.3 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::203:dff:fe18:ab66/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1133 errors:0 dropped:0 overruns:0 frame:0
TX packets:1173 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:200722 (196.0 KiB) TX bytes:109858 (107.2 KiB)
Interruption:201 Adresse de base:0xd800

lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:280 errors:0 dropped:0 overruns:0 frame:0
TX packets:280 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:50362 (49.1 KiB) TX bytes:50362 (49.1 KiB)

sit0 Lien encap:IPv6-dans-IPv4
adr inet6: ::183.132.122.89/96 Scope:Compat
adr inet6: ::127.0.0.1/96 Scope:Inconnu
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:105 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

NoThing:/home/softreaver# route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
183.132.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

NoThing:/home/softreaver# traceroute google.fr
traceroute: Warning: google.fr has multiple addresses; using 216.239.59.104
traceroute to google.fr (216.239.59.104), 30 hops max, 40 byte packets
1 192.168.1.1 (192.168.1.1) 5.002 ms 1.342 ms 1.584 ms
2 bas02.bor.as12876.net (212.129.9.91) 37.554 ms 38.254 ms 38.174 ms
3 vlan58.sw3.bor.as12876.net (212.129.15.170) 38.992 ms 38.086 ms 77.958 ms 4 ge-0-0-0-11.bb2.bor.as12876.net (212.129.23.181) 38.015 ms 39.326 ms *
5 so-2-0-0-0.bb1.cou.as12876.net (212.129.8.92) 45.722 ms 46.324 ms 45.265 ms
6 google.FreeIX.net (213.228.3.136) 46.533 ms 46.205 ms 46.475 ms
7 72.14.232.94 (72.14.232.94) 53.478 ms 53.414 ms 216.239.49.46 (216.239.49.46) 60.959 ms
8 66.249.95.107 (66.249.95.107) 64.943 ms 209.85.250.216 (209.85.250.216) 68.230 ms 68.439 ms
9 64.233.174.185 (64.233.174.185) 62.988 ms 72.14.232.241 (72.14.232.241) 68.358 ms 64.233.174.185 (64.233.174.185) 63.429 ms
10 216.239.49.126 (216.239.49.126) 66.463 ms 216.239.49.114 (216.239.49.114) 70.881 ms 66.493 ms
11 gv-in-f104.google.com (216.239.59.104) 64.275 ms 68.875 ms 68.846 ms
NoThing:/home/softreaver#

En revanche pour la commande ping google.fr c’est assés bizar, car la commande semble ne jamais s’arrêter, j’ais deut débrancher le cable.
voici un éxtrait de se que j’ais eu :

NoThing:/home/softreaver# ping google.fr
PING google.fr (66.249.93.104) 56(84) bytes of data.
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=1 ttl=244 time=66.3 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=2 ttl=244 time=64.8 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=3 ttl=244 time=63.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=4 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=5 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=6 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=7 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=8 ttl=244 time=64.3 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=9 ttl=244 time=65.0 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=10 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=11 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=12 ttl=244 time=63.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=13 ttl=244 time=64.8 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=14 ttl=244 time=65.0 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=15 ttl=244 time=64.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=16 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=17 ttl=244 time=63.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=18 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=19 ttl=244 time=65.0 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=20 ttl=244 time=65.0 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=21 ttl=244 time=65.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=22 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=23 ttl=244 time=63.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=24 ttl=244 time=64.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=25 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=26 ttl=244 time=64.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=27 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=28 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=29 ttl=244 time=64.9 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=30 ttl=244 time=64.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=31 ttl=244 time=63.9 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=32 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=33 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=34 ttl=244 time=64.5 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=35 ttl=244 time=64.8 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=36 ttl=244 time=64.1 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=37 ttl=244 time=64.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=38 ttl=244 time=64.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=39 ttl=244 time=65.4 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=40 ttl=244 time=66.2 ms
64 bytes from ug-in-f104.google.com (66.249.93.104): icmp_seq=41 ttl=244 time=64.4 ms

si la comande s’arrête quand tu fais ctr+Z ^^

cette commande te permet de voir en combien de temps tu attein le site si tu as une réponsse.
tu peut aussi donner a tes pin TTL une durée de vie qui sera décrémenter de 1 a chaque fois que tu traversse un router pratique quand tu administre des réseaux de grande envergure.

tente un ping debian-fr.org/

NoThing:/home/softreaver# ping google.fr
PING google.fr (216.239.59.104) 56(84) bytes of data.
64 bytes from gv-in-f104.google.com (216.239.59.104): icmp_seq=1 ttl=245 time=69.0 ms
64 bytes from gv-in-f104.google.com (216.239.59.104): icmp_seq=2 ttl=245 time=63.6 ms
64 bytes from gv-in-f104.google.com (216.239.59.104): icmp_seq=3 ttl=245 time=68.9 ms
64 bytes from gv-in-f104.google.com (216.239.59.104): icmp_seq=4 ttl=245 time=68.1 ms
64 bytes from gv-in-f104.google.com (216.239.59.104): icmp_seq=5 ttl=245 time=63.6 ms
64 bytes from gv-in-f104.google.com (216.239.59.104): icmp_seq=6 ttl=245 time=64.3 ms

[1]+ Stopped ping google.fr

NoThing:/home/softreaver# ping debian-fr.org
PING debian-fr.org (80.65.234.114) 56(84) bytes of data.
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=1 ttl=52 time=48.2 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=2 ttl=52 time=48.2 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=3 ttl=52 time=48.0 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=4 ttl=52 time=48.1 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=5 ttl=52 time=47.2 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=6 ttl=52 time=48.1 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=7 ttl=52 time=48.1 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=8 ttl=52 time=47.1 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=9 ttl=52 time=47.1 ms
64 bytes from gwyneth.glou.net (80.65.234.114): icmp_seq=10 ttl=52 time=48.1 ms

[2]+ Stopped ping debian-fr.org
NoThing:/home/softreaver#

apparement ca ne vient pas d’un firewall, mais pourtant j’ais testé d’aller sur le site debian-fr.org, et aucun d’eux n’as marchés. en revanche google.fr lui ca a fonctionné :s

c’est quoi glou.net pour toi ?

Penses à vérifier la valeur de ton MTU en fonction des protocoles utilisés sur ta connexion vers Internet. Par exemple, si tu as du pppoe, il faut penser à ajouter une ligne similaire à la suivante à ta configuration réseau dans le fichier interfaces :

Je n’utilise pas ce protocole, mais il me semble qu’il y a des paquets qui gère cela tout seul. La méthode énoncée ci-dessus, n’est pas la seule possible mais la plus simple à mettre en oeuvre pour commencer.

MTU ???
pppoe???

ses quoi une ordonance ???

non mais déjà la rien que sur le ping, il tombe sur un site de “FAI” pour des adresses autres que google, ça ressemble pas mal à une limitation

oui sa j’ai vue ^^ mais MTU ??? pppoe??? je veux bien savoir se que sais

le messages à envoyé est fragmenté par tcp/ip, et bien le MTU c’est la longueur maximum des paquets qui sont générés.
On peut optimiser son réglage suivant les éléments réseau par lequel ça passe
Tu as d’un coté le fait que :
-plus tu fais de fragments plus tu te retrouves avec des données perdu dans des données de controle et des entête donc tu rentabilises moins ta bande passante
-plus tu fais de gros messages si certain sont perdu en route ca coute bcp a tout renvoyer mais aussi tu peux tombé sur le cas ou derrière tu as un élément réseau qui n’accepte pas de si gros paquet et les fragmentes derrière

Enfin bref c’est un juste mieux à trouver mais dans la plus part des cas la valeur par defaut est la meilleur.

pppoe, c’est pour faire une liaison point à point par dessus de l’ethernet en fait, c’est le protocol utilisé pour se connecter à de l’internent adsl via un modem usb surtout

hum je comprend plus rien moi là :s
Glou.net, je ne sais absolument pas se que c’est ^^

En faite, je commence à regrétter windows, au moins sur windows ca marche dés que tu branche le cable.