Network interfaces are not correctly brought down on halt, disrupting Wake-on-LAN
I found the workaround (and proof) for this bug is posted here:
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.
It may contain:
ifconfig eth0 down
Change the script's permissions to make it executable:
sudo chmod 755 /etc/rc6.
Copy the script to work on system halt as well:
sudo cp /etc/rc6.
Change permissions to make it executable:
sudo chmod 755 /etc/rc0.
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.
DistroRelease: Ubuntu 12.04
Package: ifupdown 0.7~beta2ubuntu8
Uname: Linux 3.2.0-23-generic x86_64
Date: Sat Apr 14 05:12:38 2012
UpgradeStatus: No upgrade log present (probably fresh install)
|Changed in ifupdown (Ubuntu):|
|status:||New → Incomplete|
|status:||Incomplete → Confirmed|
|importance:||Undecided → High|
|assignee:||nobody → Canonical Foundations Team (canonical-foundations)|
|Changed in ifupdown (Ubuntu Precise):|
|milestone:||none → precise-updates|
|assignee:||Canonical Foundations Team (canonical-foundations) → Stéphane Graber (stgraber)|
|status:||Confirmed → Triaged|
|no longer affects:||upstart (Ubuntu Precise)|
- wol broken on HP ProLiant N40L (Broadcom tg3 driver)
+ Network interfaces are not correctly brought down on halt, disrupting