<?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>48482</bug_id>
          
          <creation_ts>2004-04-20 10:04 0000</creation_ts>
          <short_desc>ifplugd does not down interface on startup if its unplugged</short_desc>
          <delta_ts>2005-09-01 08:39:07 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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://forums.gentoo.org/viewtopic.php?t=162916&amp;highlight=ifplugd</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kl@vsen.dk</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>config@gentoo.org</cc>
    
    <cc>uberlord@gentoo.org</cc>
    
    <cc>wmertens@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>kl@vsen.dk</who>
            <bug_when>2004-04-20 10:04:19 0000</bug_when>
            <thetext>Hi guys,

using ifplugd - unfortunately it does not down the interface at startup  -even thought it does detect that it is actually down.

see http://forums.gentoo.org/viewtopic.php?t=162916&amp;highlight=ifplugd for details.

I&apos;ve looked high and low for a config option to make it do this - but there is none.

it works fine, if I plug in the cable, and then unplug it.

ifplugd does not take care of setting routes correctly - but it is fair to say, that the corresponding stop/start network-scripts should handle that - which I made them to, via the wireless-config ebuild (not in portage - written by UberLord) :)

Reproducible: Always
Steps to Reproduce:
1. up your eth0 without cable being plugged in
2. start ifplugd
3. watch the logs and see it detects the if being unplugged.. but does not down it.



Expected Results:  
It should down the interface.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2004-05-18 08:18:39 0000</bug_when>
            <thetext>is this still an issue wiht ifplugd-0.25 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kl@vsen.dk</who>
            <bug_when>2004-05-19 10:40:52 0000</bug_when>
            <thetext>I just upgraded 0.25 - and it still does not take care of downing the interface at boot :(

Perhaps thats how its supposed to work - which would IMHO be a failure by design.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>config@gentoo.org</who>
            <bug_when>2004-12-25 05:27:20 0000</bug_when>
            <thetext>I have similar problems. To show my problems: 
/etc/init.d/ifplugd stop
/etc/init.d/ifplugd start

My link-cable is plugged in, and starting net.eth0 by hand works flawlessly, however, net.eth0 wouldn&apos;t start.

I tried out plugging-out the cable, and it would shut down the interface. However, plugging it back in wouldn&apos;t start it.
I&apos;m not sure, whether we&apos;re talking about the same/similar bug, but at least, it has been working with the oder version, being 0.13x afaik.

I just noted a very funny thing: When I do then manually /etc/init.d/net.eth0 start, ifplugd would detect the link beat. Could it be that net.eth0 shuts down the interface, which doesn&apos;t, in turn, allow ifplugd detect the link-beat? 

Dec 25 14:22:45 [ifplugd(eth0)] Link beat lost.
Dec 25 14:22:47 [ifplugd(eth0)] Executing &apos;/usr/sbin/ifplugd.action eth0 down&apos;.
Dec 25 14:22:47 [ifplugd(eth0)] Program executed successfully.
Dec 25 14:25:07 [kernel] e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Half Duplex
##-- Now I started the net.eth0 interface --##
Dec 25 14:25:07 [rc-scripts] Configuration not set for eth0 - assuming dhcp
Dec 25 14:25:09 [kernel] e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Half Duplex
Dec 25 14:25:10 [ifplugd(eth0)] Link beat detected.
Dec 25 14:25:11 [ifplugd(eth0)] Executing &apos;/usr/sbin/ifplugd.action eth0 up&apos;.
Dec 25 14:25:11 [ifplugd(eth0)] Program executed successfully.
Dec 25 14:25:12 [dhcpcd] infinite IP address lease time. Exiting_
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>config@gentoo.org</who>
            <bug_when>2004-12-28 11:31:53 0000</bug_when>
            <thetext>I can confirm: 

I boot my computer - sometimes, eth0 starts, this time it didn&apos;t. I did ifconfig eth0 up, and ifplugd would start the device.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2005-09-01 08:39:07 0000</bug_when>
            <thetext>Should be fixed with a combination of ifplugd-0.28-r1 and baselayout-1.12.0_pre7-r1</thetext>
          </long_desc>
      
    </bug>

</bugzilla>