Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[NET] problèmes avec dhcpcd - impossible d'obtenir une IP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Gnaffron
n00b
n00b


Joined: 27 Mar 2005
Posts: 12

PostPosted: Wed Mar 30, 2005 2:10 pm    Post subject: [NET] problèmes avec dhcpcd - impossible d'obtenir une IP Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Mar 30, 2005 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Wed Mar 30, 2005 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gnaffron
n00b
n00b


Joined: 27 Mar 2005
Posts: 12

PostPosted: Wed Mar 30, 2005 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
bobbix
Apprentice
Apprentice


Joined: 04 Dec 2004
Posts: 173

PostPosted: Wed Mar 30, 2005 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gnaffron
n00b
n00b


Joined: 27 Mar 2005
Posts: 12

PostPosted: Wed Mar 30, 2005 2:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Wed Mar 30, 2005 2:47 pm    Post subject: Reply with quote

et avec pump ?

emerge pump et essaye :

pump -i eth0
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
Tanki
Apprentice
Apprentice


Joined: 29 Mar 2005
Posts: 195
Location: Bordeaux/France

PostPosted: Wed Mar 30, 2005 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gnaffron
n00b
n00b


Joined: 27 Mar 2005
Posts: 12

PostPosted: Wed Mar 30, 2005 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Wed Mar 30, 2005 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Thu Mar 31, 2005 12:30 pm    Post subject: Reply with quote

dhclient eth0 donne quoi ?

T'as quels échanges qui sont effectués ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum