Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218184

Summary: net-misc/dhcp-3.1.0 - dhclient assigns IP for unconnected devices
Product: Gentoo Linux Reporter: Sebastian Roschke <s.roschke>
Component: [OLD] UnspecifiedAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: mmokrejs
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Roschke 2008-04-17 22:32:22 UTC
My dhclient software assigns an IP address for my unconnected device, if I can access the network with another device. Example: connected to WLAN and executing "dhclient" (without parameters) my WLAN device (eth1) gets an IP. After some minutes also the ethernet device (eth0) gets an IP and the routes are adjusted in a false way. (same problem vice-versa)

The effect is that I can't access the internet as routing table is messed up. Manual correcting of the routing table is possible. 

A simple workaround is the execution of dhclient with device parameter; e.g. "dhclient eth1". 

Reproducible: Always

Steps to Reproduce:
1.connect to LAN
2.call dhclient - get IP
3.wait - IP assigned to WLAN device and routes are rearranged (default gw is added)

Actual Results:  
Connection to internet is not possible, as routes are wrong and no connection with unconnected interface is possible.

Expected Results:  
only assign an IP for the connected device, as the other device could not receive any DHCP packets.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-10-15 05:15:44 UTC
Please retest w/ 3.1.3_p1.