← Back to team overview

touch-packages team mailing list archive

[Bug 981461] Re: Network interfaces are not correctly brought down on halt, disrupting Wake-on-LAN

 

** Changed in: ifupdown (Ubuntu)
     Assignee: Stéphane Graber (stgraber) => (unassigned)

** Changed in: ifupdown (Ubuntu Precise)
     Assignee: Stéphane Graber (stgraber) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/981461

Title:
  Network interfaces are not correctly brought down on halt, disrupting
  Wake-on-LAN

Status in ifupdown package in Ubuntu:
  Triaged
Status in upstart package in Ubuntu:
  Confirmed
Status in ifupdown source package in Precise:
  Triaged

Bug description:
  I found the workaround (and proof) for this bug is posted here:
  http://confoundedtech.blogspot.com/2011/06/enable-wol-on-ubuntu-hp-microserver.html

  The relevant info is below
  =====
  To get WOL to work the ethernet interface must be properly brought down as part of the system shutdown. This should be performed as part of run levels rc0 and rc6, noting that Linux typically has 7 different run levels (or operating modes):
  rc0.d - System Halted
  rc1.d - Single User Mode
  rc2.d - Single User Mode with Networking
  rc3.d - Multi-User Mode - boot up in text mode
  rc4.d - Not yet Defined
  rc5.d - Multi-User Mode - boot up in X Windows
  rc6.d - Shutdown & Reboot
  A simple script can be created to bring the ethernet interface down properly at shutdown:
  sudo vi /etc/rc6.d/wol_poweroff.sh

  
  It may contain:
  #!/bin/bash
  ifconfig eth0 down
  poweroff

  
  Change the script's permissions to make it executable:

  sudo chmod 755 /etc/rc6.d/wol_poweroff.sh

  
  Copy the script to work on system halt as well:

  sudo cp /etc/rc6.d/wol_poweroff.sh /etc/rc0.d/wol_poweroff.sh

  
  Change permissions to make it executable:

  sudo chmod 755 /etc/rc0.d/wol_poweroff.sh

  
  Job done. 

  
  To test power down the machine, sudo shutdown now or sudo poweroff , and use your favourite WOL tool to send a magic packet. Thanks to rockafeller and everyone else who have commented with various solutions.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: ifupdown 0.7~beta2ubuntu8
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  ApportVersion: 2.0.1-0ubuntu2
  Architecture: amd64
  Date: Sat Apr 14 05:12:38 2012
  ProcEnviron:
   TERM=xterm
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ifupdown
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/981461/+subscriptions