Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289193 - net-misc/dhcp-3.1.2_p1 with 2.6.30-gentoo-r5 kernel - ignores interface parameters
Summary: net-misc/dhcp-3.1.2_p1 with 2.6.30-gentoo-r5 kernel - ignores interface param...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 10:14 UTC by NiTr0
Modified: 2010-10-15 05:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NiTr0 2009-10-15 10:14:17 UTC
net-misc/dhcp-3.1.2_p1 binds on all interfaces during startup, even if some specified in command line. I didn't seen this earlier, possibly it's related to kernel update

# ps ax
30167 ?        Ss     0:00 /usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid -user dhcp -group dhcp eth1 wlan0

# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
(..........................)
udp        0      0 *:bootps                *:*
(..........................)

# tcpdump -i eth0 port 67 or 68
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
12:49:58.849722 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:e0:4d:3c:3e:bf (oui Unknown), length 300
12:49:58.864202 IP u192.158.seti.kr.ua.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 327
12:49:58.864668 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:e0:4d:3c:3e:bf (oui Unknown), length 305
12:49:58.879786 IP u192.158.seti.kr.ua.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 327
12:49:59.000392 IP 172.19.32.254.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300

(u192.158.seti.kr.ua - DHCP in LAN where I connected, 172.19.32.254 - IP of eth1)

Reproducible: Always

Steps to Reproduce:
1. Make a PC with 2 LAN cards and up both of them
2. Install net-misc/dhcp-3.1.2_p1, configure it to use only eth1
3. Connect DHCP client device to eth0

Actual Results:  
System got IP by DHCP 

Expected Results:  
No DHCP reply

# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Sempron-tm-_Processor_3000+-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 09 Oct 2009 00:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://files.seti.kr.ua/mirrors/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage"
SYNC="rsync://files.seti.kr.ua/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 apache2 apm berkdb bzip2 cdr cgi cli cracklib crypt cups dri encode fat fortran gd gdbm gif gpm gtk hal iconv ipv6 isdnlog java jpeg jpeg2k mmx modules mp3 mudflap multilib mysql mysqli ncurses nls nptl nptlonly opengl openmp pam pcre perl php png posix pppd python qt readline reflection reiser4 reiserfs samba session slang spl sqlite sse sse2 sse3 ssl svg symlink sysfs taglib tcpd theora threads tiff unicode usb vnc wifi xfce xml xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-10-15 05:34:14 UTC
I can't reproduce your problem with the DHCPd server returning addresses on eth0.
(I run my dhcpd on bond0, comprising eth1,eth2. eth0 is external, eth3 is a non-routed private subnet).

Can you go to your old version and see if it listens on an explicit IP? I've never seen that myself.