<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>130670</bug_id>
          
          <creation_ts>2006-04-20 16:03 0000</creation_ts>
          <short_desc>baselayout-1.12 requires dhcp-3.0.3-r7 when requesting dhclient</short_desc>
          <delta_ts>2006-08-13 23:51:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>baselayout</component>
          <version>2006.0</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>137689</dependson>
          <blocked>143820</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>wts42@yahoo.com</reporter>
          <assigned_to>uberlord@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>wts42@yahoo.com</who>
            <bug_when>2006-04-20 16:03:26 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-04-20 16:22:28 0000</bug_when>
            <thetext>post your /etc/conf.d/net file

also, are you using hot or cold plugging ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gregkh@gentoo.org</who>
            <bug_when>2006-04-20 16:33:32 0000</bug_when>
            <thetext>Why would udev matter in this?

If you go back to 089 version of udev, does this get fixed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wts42@yahoo.com</who>
            <bug_when>2006-04-20 16:49:37 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Why would udev matter in this?
&gt; 
&gt; If you go back to 089 version of udev, does this get fixed?
&gt; 

I only mentioned this because it changed at the same time. Also this is the first time I&apos;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=( &quot;192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255&quot; )
config_eth2=( &quot;dhcp&quot; )
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wts42@yahoo.com</who>
            <bug_when>2006-04-20 17:06:21 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; post your /etc/conf.d/net file
&gt; 
&gt; also, are you using hot or cold plugging ?
&gt; 

Neither for the ethernet devices. I changed /etc/conf.d/rc to not allow coldplugging of net.*
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-04-21 00:29:13 0000</bug_when>
            <thetext>What version of dhcp have you got installed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wts42@yahoo.com</who>
            <bug_when>2006-04-21 17:01:54 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; What version of dhcp have you got installed?
&gt; 

3.0.3-r4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-04-21 17:05:52 0000</bug_when>
            <thetext>Try 3.0.3-r7</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wts42@yahoo.com</who>
            <bug_when>2006-04-21 17:25:47 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; Try 3.0.3-r7
&gt; 

This corrects the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>psvo@atlas.cz</who>
            <bug_when>2006-08-13 13:29:29 0000</bug_when>
            <thetext>I&apos;m having similar problem. I have 2 interfaces: eth_wan0 configured using ISP&apos;s dhcp and eth_lan0 with static IP. I&apos;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 &quot;${iface}&quot; to dhclient commandline in /lib/rcscripts/net/dhclient.sh on line 109 fixed the problem. But it&apos;s probably only hack, not a bugfix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-13 14:04:26 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; Appending &quot;${iface}&quot; to dhclient commandline in /lib/rcscripts/net/dhclient.sh
&gt; on line 109 fixed the problem. But it&apos;s probably only hack, not a bugfix.

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

Will be in the next baselayout release.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-13 16:16:31 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; Will be in the next baselayout release.

Fixed in baselayout-1.12.4-r3
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-08-13 23:51:44 0000</bug_when>
            <thetext>Fixored</thetext>
          </long_desc>
      
    </bug>

</bugzilla>