Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244629 - >net-misc/dhcpcd-3.0.16 is not getting IP
Summary: >net-misc/dhcpcd-3.0.16 is not getting IP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-27 12:18 UTC by ProTech
Modified: 2010-11-30 10:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
working 3.0 capture file (working.pcap,11.02 KB, application/octet-stream)
2008-10-28 09:20 UTC, ProTech
Details
not working 4.0 capture file (notworking.pcap,18.59 KB, application/octet-stream)
2008-10-28 09:21 UTC, ProTech
Details
2nd not working 4.0 capture file (2ndtest40.pcap,24.64 KB, application/octet-stream)
2008-10-28 15:29 UTC, ProTech
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ProTech 2008-10-27 12:18:59 UTC
The last version of dhcpcd which is working is: 3.0.16-r1. Any newer version is not able to get an IP adress at the company network. At home it's working with the same laptop, but at the company I have this problem. I have no control over the company network, and I have no idea about the dhcp server, my guess it's some kind of Windows. All Windows clients are working fine.

Reproducible: Always

Steps to Reproduce:

Actual Results:  

Oct 27 09:38:26 hu3cs41c dhcpcd[4281]: eth0: dhcpcd 4.0.2 starting
Oct 27 09:38:26 hu3cs41c dhcpcd[4281]: eth0: waiting for carrier
Oct 27 09:38:27 hu3cs41c tg3: eth0: Link is up at 100 Mbps, full duplex.
Oct 27 09:38:27 hu3cs41c tg3: eth0: Flow control is off for TX and off for RX.
Oct 27 09:38:27 hu3cs41c dhcpcd[4281]: eth0: carrier acquired
Oct 27 09:38:27 hu3cs41c dhcpcd[4281]: eth0: broadcasting for a lease
Oct 27 09:39:06 hu3cs41c dhcpcd[4281]: eth0: timed out
Oct 27 09:39:06 hu3cs41c dhcpcd[4281]: eth0: probing for an IPV4LL address
Oct 27 09:39:06 hu3cs41c dhcpcd[4281]: eth0: checking 169.254.53.183 is available on attached networks
Oct 27 09:39:11 hu3cs41c dhcpcd[4281]: eth0: using IPv4LL address 169.254.53.183


Expected Results:  
Changed the external IPs to 1.1.1.1, for safety :D

Oct 27 09:47:43 hu3cs41c dhcpcd[7668]: eth0: dhcpcd 3.0.16 starting
Oct 27 09:47:43 hu3cs41c dhcpcd[7668]: eth0: hardware address = 00:0b:5d:81:63:67
Oct 27 09:47:43 hu3cs41c dhcpcd[7668]: eth0: broadcasting for a lease
Oct 27 09:47:45 hu3cs41c tg3: eth0: Link is up at 100 Mbps, full duplex.
Oct 27 09:47:45 hu3cs41c tg3: eth0: Flow control is off for TX and off for RX.
Oct 27 09:47:45 hu3cs41c ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Oct 27 09:47:46 hu3cs41c dhcpcd[7668]: eth0: offered 1.1.1.1 from 1.1.1.2
Oct 27 09:47:46 hu3cs41c dhcpcd[7668]: eth0: leased 1.1.1.1 for 43200 seconds
Oct 27 09:47:46 hu3cs41c dhcpcd[7668]: eth0: adding IP address 1.1.1.1/24
Oct 27 09:47:46 hu3cs41c dhcpcd[7668]: eth0: adding default route via 1.1.1.2 metric 0
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-27 17:56:16 UTC
1) Please post your `emerge --info' too.
2) What brand/model/vendor etc DHCP server does your company network run?
Comment 2 Roy Marples 2008-10-27 19:43:54 UTC
Did you emerge dhcpcd-4 with the compat USE flag?
If not you need to explicitly enable duid to get the same behaviour as dhcpcd-3.
man dhcpcd or dhcpcd.conf to see how to do this.
Comment 3 ProTech 2008-10-28 08:38:59 UTC
The compat flag was enabled.
[ebuild     U ] net-misc/dhcpcd-4.0.2 [3.0.16-r1] USE="compat%* zeroconf%*" 0 kB

emerge --info:
Portage 2.1.4.5 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.70GHz
Timestamp of tree: Sun, 26 Oct 2008 10:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fech sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.fsn.hu/pub/linux/distributions/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="hu en de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/protech"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dts dv dvd dvdr dvdread eds emboss encode evo fam ffmpeg flac freetype gdbm gif glitz gnome gphoto2 gpm gstreamer gtk hal iconv ipv6 isdnlog java javamail javascript jce jpeg kerberos libnotify mad matroska midi mikmod mmx mono mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection rtc samba sdl session source spell spl sse sse2 ssl startup-notification svg symlink sysfs tcpd theora tiff truetype unicode usb vorbis win32codecs x264 x86 xinerama xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu en de" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Roy Marples 2008-10-28 08:44:23 UTC
Could you attach wireshark dumps of dhcpcd-3 working and dhcpcd-4 failing please?
Comment 5 ProTech 2008-10-28 09:19:32 UTC
I put duid to the /etc/dhcpcd.conf, and nothing changed. Still not working.

I don't know what kind of dhcp server the company have, and it's not easy to find out, because none of the IT guys in this site know about it. It's administered from another city, the burocracy is really big here, so probably I have to go through a lot of phone calls to get to someone who has any idea.
Comment 6 ProTech 2008-10-28 09:20:53 UTC
Created attachment 170072 [details]
working 3.0 capture file
Comment 7 ProTech 2008-10-28 09:21:19 UTC
Created attachment 170074 [details]
not working 4.0 capture file
Comment 8 Roy Marples 2008-10-28 09:40:02 UTC
(In reply to comment #7)
> Created an attachment (id=170074) [edit]
> not working 4.0 capture file

The working one is sending a MAC address, the non working one not.
Remove /etc/dhcpcd.duid and try again. If fails, please attach new failure.
Comment 9 ProTech 2008-10-28 15:29:50 UTC
Created attachment 170121 [details]
2nd not working 4.0 capture file

I emerged 4.0.2, with compat use flag. The duid config option is in the dhcpd.conf. I deleted /etc/dhcpcd.duid, this file is recreated every time. Still not working. The capture file is attached.
Comment 10 Roy Marples 2008-10-28 16:12:44 UTC
Remove /etc/dhcpcd.conf, /etc/dhcpcd.duid and try again please.
Comment 11 ProTech 2008-10-29 09:08:28 UTC
Thanks! Now it's works.

After I removed both it worked. Then I copied back the dhcpcd.conf (the original one, without duid) and it worked too.