Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194406 - net-misc/dhcpcd-3.1.5: gives an ip address w/o an dhcp server
Summary: net-misc/dhcpcd-3.1.5: gives an ip address w/o an dhcp server
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 195831 196067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-01 16:14 UTC by Toralf Förster
Modified: 2007-10-16 16:36 UTC (History)
2 users (show)

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


Attachments
pcap stream (dhcpcd.pcap,630.48 KB, application/octet-stream)
2007-10-01 16:15 UTC, Toralf Förster
Details
dhcpcd-3.0.16-r1 timed out as expected (dhcpcd_ok.pcap,2.58 KB, application/octet-stream)
2007-10-01 16:18 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2007-10-01 16:14:25 UTC
Since today (1st of October, until yesterday dhcpcd worked fine) the dhcpcd shows an obscure bahaviour at home where my ThinkPad T41 is connected via a straight DSL modem to my provider, BTW 3.0.16-r1 works fine.

Here's the output and the relevant files:

n22 ~ # rm /var/lib/dhcpcd/*
n22 ~ # ifconfig eth0 down
n22 ~ # ifconfig eth0 up
n22 ~ # /etc/init.d/net.eth0 start
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...
Error, eth0: timed out
Error, eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exis  [ ok ]
 *       eth0 received address 169.254.104.66/16
 *     192.168.0.254/24                                                               [ ok ]


n22 ~ # cat /var/lib/dhcpcd/dhcpcd.*
000100010E937E45000D607B2D9B
n22 ~ # cat /var/lib/dhcpcd/dhcpcd.duid
000100010E937E45000D607B2D9B
n22 ~ # cat /var/lib/dhcpcd/dhcpcd
dhcpcd-eth0.info  dhcpcd.duid
n22 ~ # cat /var/lib/dhcpcd/dhcpcd-eth0.info
IPADDR='169.254.104.66'
NETMASK='255.255.0.0'
BROADCAST='169.254.255.255'
LEASEDFROM='0'
LEASETIME='10'
RENEWALTIME='5'
REBINDTIME='8'
INTERFACE='eth0'
CLASSID='dhcpcd 3.1.5'
CLIENTID='ff:65:74:68:30:00:01:00:01:0e:93:7e:45:00:0d:60:7b:2d:9b'
DHCPCHADDR='00:0d:60:7b:2d:9b'

Here's my net configuration:

n22 ~ # cat /etc/conf.d/net
# /etc/conf.d/net
#

#       LAN
#
config_eth0=(
        "dhcp"
        "192.168.0.254/24"
        )
dhcp_eth0="nontp nosendhost"
dhcpcd_eth0="-t 20"

#       DSL
#
config_ppp0=( "ppp" )
link_ppp0=( "eth0" )
plugins_ppp0=( "pppoe" )
username_ppp0="04021981580"
password_ppp0=
pppd_ppp0=(
        "defaultroute"          # Make this PPP interface the default route
        "usepeerdns"            # Use the DNS settings provided by PPP
        "maxfail 1"
)


#       WLAN
#
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dmadwifi"
config_ath0=( "dhcp" )

dhcp_ath0="nontp nosendhost"


I killed dhcpcd and will attach the wireshark stream sniffed at eth0 at comment #1.


Reproducible: Always

Actual Results:  
DHCP never stops and gives an ip address although there's no DHCP server.

Expected Results:  
DHCP should timeout w/o an ip address at home.

n22 ~ # emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8-pppoe i686)
=================================================================
System uname: 2.6.22-gentoo-r8-pppoe i686 Intel(R) Pentium(R) M processor 1700MHz
Timestamp of tree: Mon, 01 Oct 2007 13:50:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://gentoo.mneisen.org/ http://213.186.33.37/gentoo-distfiles/ http://212.219.56.139/sites/www.ibiblio.org/gentoo/"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arts asf berkdb bitmap-fonts bzip2 cairo cddb clamav cli cracklib crypt css cups dri dvd dvdr dvdread dynamicplugin encode exif fam fastbuild fortran gdbm gif gpm gtk i8x0 iconv ipv6 isdnlog jai java javascript jimi jpeg kde logrotate madwifi mbox midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap mysql ncurses nls nntp no-seamonkey nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png pppd python readline real reflection samba session spl sse sse2 ssl subversion svg tcpd tiff tk truetype truetype-fonts type1-fonts unicode userlocales wifi win32codecs workbench x86 xml xorg xpm zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vga radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Toralf Förster gentoo-dev 2007-10-01 16:15:10 UTC
Created attachment 132324 [details]
pcap stream
Comment 2 Toralf Förster gentoo-dev 2007-10-01 16:18:41 UTC
Created attachment 132326 [details]
dhcpcd-3.0.16-r1 timed out as expected

n22 ~ # /etc/init.d/net.eth0 start
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...
Error, eth0: timed out                                                                         [ !! ]
 *     192.168.0.254/24                                                                        [ ok ]
n22 ~ # ps -ef | grep dhcp
root     30065  9114  0 18:16 pts/0    00:00:00 grep --colour=auto dhcp
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-01 16:19:24 UTC
man dhcpcd:
<snip>
-L     Prevents dhcpcd from probing for IPV4LL addresses. IPV4LL is otherwise known as ZeroConf or APIPA and is RFC 3927.
</snip>
Comment 4 Toralf Förster gentoo-dev 2007-10-01 16:39:06 UTC
Ok, thanks - next time I should _really_ read the doc.
I added"-L" to the line dhcpcd_eth0="-L -t 20" - OTOH what's about adding an ewarn to the ebuild of dhcpcd for this (new) behaviour ?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-14 12:37:43 UTC
*** Bug 195831 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-10-16 16:36:54 UTC
*** Bug 196067 has been marked as a duplicate of this bug. ***