View previous topic :: View next topic |
Author |
Message |
Gnaffron n00b
Joined: 27 Mar 2005 Posts: 12
|
Posted: Wed Mar 30, 2005 2:10 pm Post subject: [NET] problèmes avec dhcpcd - impossible d'obtenir une IP |
|
|
Après mon install et voulant toutheureux lancer ma machine dans un petit emerge kde je remarque à mon grand désarroi qu'il m'est impossible de me connecter au net depuis mon bel environnement tout neuf. Vérifiant immédatement l'état de ma carte réseau (ifconfig), je constate avec soulagement qu'elle est bien reconnue par le kernel. Un lspci me le confirmera.
Par contre je constate que ma carte n'a pas réussi à obtenir une adresse IP (rien dans l'affichage du ifconfig ).
Tentant un dhcpcd -d eth0 je n'obtiens que mon adresse mac, et une douloureuse attente qui se terminera sur un echec. (et le shutdown de ma carte ethernet)
Pour préciser:
Kernel: 2.6.11-gentoo-r4
Carte: Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
Infos connexion (récupérées depuis windows. Oui je sais : Baaah...)
Quote: |
Adresse IP obtenue par DHCP
Adr IP : 80.238.28.xx
Masque de sous-réseau: 255.255.252.0
Passerelle par defaut: 80.238.28.1
Serveur DHCP 195.202.193.103
Serveurs DNS 195.202.193.109
195.202.251.149 |
voilà enfin mes fichiers /etc/conf.d/net:
Quote: | # /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.252.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="-HDN"
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
gateway="eth0/80.238.28.1" |
Et /etc/hosts:
Quote: | # /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1 localhost becane
# IPV6 versions of localhost and co
::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
|
Voilà. Est-ce que quelqu'un a une idée? |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Wed Mar 30, 2005 2:32 pm Post subject: |
|
|
Subnet mask : Masque de sous-réseau: 255.255.252.0
Heuuuuu ? En general c'est 255.255.255.0 ... _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Mar 30, 2005 2:34 pm Post subject: |
|
|
Trevoke wrote: | Subnet mask : Masque de sous-réseau: 255.255.252.0
Heuuuuu ? En general c'est 255.255.255.0 ... |
bah, pas forcement, ca c'est toi qui choisis .. _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
Gnaffron n00b
Joined: 27 Mar 2005 Posts: 12
|
Posted: Wed Mar 30, 2005 2:40 pm Post subject: |
|
|
Je confirme, le masque de sous-réseau est bien 255.255.252.0
Voilà le résultat d'un ifconfig depuis KNOPPIX:
Quote: | eth0 Link encap:Ethernet HWaddr 00:E0:18:B3:A4:1E
inet addr:80.238.28.221 Bcast:80.238.31.255 Mask:255.255.252.0
inet6 addr: fe80::2e0:18ff:feb3:a41e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9821 errors:0 dropped:0 overruns:0 frame:0
TX packets:4965 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:2527850 (2.4 MiB) TX bytes:522328 (510.0 KiB)
Interrupt:18 |
|
|
Back to top |
|
|
bobbix Apprentice
Joined: 04 Dec 2004 Posts: 173
|
Posted: Wed Mar 30, 2005 2:41 pm Post subject: |
|
|
Le subnet n'est pas un soucis ici, c'est certain.
Je ne suis pas sous linux là (j'suis au taf, dsl), mais à quoi sert l'option de dhcpcd? essaye dhcpcd eth0.
Est-ce que ton PC envoie bien un paquet discover? Est-ce que tu recois une offre?
Bobbix |
|
Back to top |
|
|
Gnaffron n00b
Joined: 27 Mar 2005 Posts: 12
|
Posted: Wed Mar 30, 2005 2:45 pm Post subject: |
|
|
phcpcd -d : --debug : Verbose mode. J'utilise aussi -t 120, pour qu'il attende une nute que le serveur DHCP réponde (dans le cas ou il serait spéctaculairement lent.) et -o pour éviter qu'il ne kick ma carte en cas d'échec (vive les manpages)
.
Maintentant comment je sais quels sont les paquets envoyés ou reçus? |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Mar 30, 2005 2:47 pm Post subject: |
|
|
et avec pump ?
emerge pump et essaye :
pump -i eth0 _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
Tanki Apprentice
Joined: 29 Mar 2005 Posts: 195 Location: Bordeaux/France
|
Posted: Wed Mar 30, 2005 3:08 pm Post subject: |
|
|
il m'est arrivé exactement le même problème lorsque j'ai construit mon routeur
en fait il s'averait qu'il me manquait le packet PACKET_SOCKET dans mon kernel dans les network options il me semble, donc je l'ai recompilé en fonction
un changement de /etc/conf.d/net et un reboot plus tard et dhcpcd fonctionnait à merveille
peut etre une piste |
|
Back to top |
|
|
Gnaffron n00b
Joined: 27 Mar 2005 Posts: 12
|
Posted: Wed Mar 30, 2005 3:26 pm Post subject: |
|
|
Ca me surprendrait, j'ai construit mon noyau avec Genkernel...
Par ailleurs, je crois qu'il broadcast le paquet DISCOVER, mais qu'il ne reçoit rien... |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Mar 30, 2005 3:35 pm Post subject: |
|
|
Tanki, oui, mais normalement si il essaye avec pump il ne devrait pas en avoir besoin (il me semble) , mais bien vu _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
Pachacamac Veteran
Joined: 22 Nov 2003 Posts: 1264 Location: Paris - France
|
Posted: Thu Mar 31, 2005 12:30 pm Post subject: |
|
|
dhclient eth0 donne quoi ?
T'as quels échanges qui sont effectués ? |
|
Back to top |
|
|
|