Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130670 - baselayout-1.12 requires dhcp-3.0.3-r7 when requesting dhclient
Summary: baselayout-1.12 requires dhcp-3.0.3-r7 when requesting dhclient
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 137689
Blocks: 143820
  Show dependency tree
 
Reported: 2006-04-20 16:03 UTC by Justus Ranvier
Modified: 2006-08-13 23:51 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 Justus Ranvier 2006-04-20 16:03:26 UTC
After upgrading baselayout (1.12.0_pre17-r3) and udev (090), the network scripts no longer work correctly.

My computer has three onboard ethernet ports. I use eth0 for the connection to the LAN and eth2 for the cable modem. eth0 has a static configuration and eth2 uses dhcp.

The problem occurs when bringing up net.eth2. The dhcp-client program tries to setup _all_ interfaces, not just eth2. This destroys the configuration on eth0. 

If I bring up eth2 first then eth0, both interfaces work but I lose the resolv.conf from dhcp.

Apr 20 17:51:39 [kernel] e100: eth2: e100_watchdog: link up, 10Mbps, half-duplex
Apr 20 17:51:45 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
Apr 20 17:51:45 [dhclient] DHCPREQUEST on eth2 to 255.255.255.255 port 67
Apr 20 17:51:45 [dhclient] DHCPREQUEST on eth0 to 255.255.255.255 port 67
Apr 20 17:51:46 [dhclient] DHCPACK from 10.178.112.1
Apr 20 17:51:46 [dhclient] bound to 67.187.84.119 -- renewal in 120069 seconds.
Apr 20 17:51:50 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
Apr 20 17:51:54 [dhclient] DHCPREQUEST on eth0 to 255.255.255.255 port 67
Apr 20 17:51:56 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
Apr 20 17:52:10 [dhclient] DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Apr 20 17:52:10 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
Apr 20 17:52:15 [dhclient] DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Apr 20 17:52:18 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
Apr 20 17:52:27 [dhclient] DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
Apr 20 17:52:31 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
Apr 20 17:52:46 [dhclient] No DHCPOFFERS received.
Comment 1 SpanKY gentoo-dev 2006-04-20 16:22:28 UTC
post your /etc/conf.d/net file

also, are you using hot or cold plugging ?
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-20 16:33:32 UTC
Why would udev matter in this?

If you go back to 089 version of udev, does this get fixed?
Comment 3 Justus Ranvier 2006-04-20 16:49:37 UTC
(In reply to comment #2)
> Why would udev matter in this?
> 
> If you go back to 089 version of udev, does this get fixed?
> 

I only mentioned this because it changed at the same time. Also this is the first time I've used the new scripts that use udev for coldplug. udev was trying to bring up net.eth1 when the system booted, but I figured out how to fix that.

my /etc/conf.d/net:

config_eth0=( "192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255" )
config_eth2=( "dhcp" )
Comment 4 Justus Ranvier 2006-04-20 17:06:21 UTC
(In reply to comment #1)
> post your /etc/conf.d/net file
> 
> also, are you using hot or cold plugging ?
> 

Neither for the ethernet devices. I changed /etc/conf.d/rc to not allow coldplugging of net.*
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-04-21 00:29:13 UTC
What version of dhcp have you got installed?
Comment 6 Justus Ranvier 2006-04-21 17:01:54 UTC
(In reply to comment #5)
> What version of dhcp have you got installed?
> 

3.0.3-r4
Comment 7 Roy Marples (RETIRED) gentoo-dev 2006-04-21 17:05:52 UTC
Try 3.0.3-r7
Comment 8 Justus Ranvier 2006-04-21 17:25:47 UTC
(In reply to comment #7)
> Try 3.0.3-r7
> 

This corrects the problem.
Comment 9 Petr Svoboda 2006-08-13 13:29:29 UTC
I'm having similar problem. I have 2 interfaces: eth_wan0 configured using ISP's dhcp and eth_lan0 with static IP. I'm running local dhcpd for subnet on eth_lan0 too. When net.eth_wan0 is started, dhclient is run and it reconfigures eth_lan0 using local dhcpd server provided IP. I got this problem after upgrading baselayout from 1.11.15 to 1.12.4-r2. I have installed dhcp-3.0.3-r9.

Appending "${iface}" to dhclient commandline in /lib/rcscripts/net/dhclient.sh on line 109 fixed the problem. But it's probably only hack, not a bugfix.
Comment 10 Roy Marples (RETIRED) gentoo-dev 2006-08-13 14:04:26 UTC
(In reply to comment #9)
> Appending "${iface}" to dhclient commandline in /lib/rcscripts/net/dhclient.sh
> on line 109 fixed the problem. But it's probably only hack, not a bugfix.

No, that's the correct fix. I cannot believe that no-one has spotted that! Including me!

Will be in the next baselayout release.
Comment 11 Roy Marples (RETIRED) gentoo-dev 2006-08-13 16:16:31 UTC
(In reply to comment #10)
> Will be in the next baselayout release.

Fixed in baselayout-1.12.4-r3
Comment 12 Roy Marples (RETIRED) gentoo-dev 2006-08-13 23:51:44 UTC
Fixored