Wakeonlan nforce and Ubuntu


So with my new Ubuntu server, I thought that I would shut it down everynight to save electricity, as it is taking about 100W constantly with all the harddrives spinning.

I am using an NForce motherboard, and using wakeonlan to start it up remotely, or when needed. So heres how I did it:

First I went into the motherboards BIOS and enabled all the power on lan settings, then I checked to see what the settings are on the box once it was booted.

sudo ethtool eth0

WOL was set to ‘D’ (disabled) so to enable it:

sudo ethtool -s eth0 wol g

Then I wanted it enabled everytime at boot so I edit:

sudo vi /etc/network/interfaces

And put in this line after telling the box to get its DHCP:

up ethtool -s eth0 wol g

Then I edit these to files and remove -i

vi /etc/init.d/reboot /etc/init.d/halt

Then shutdown the machine:

shutdown -h nowAnd from another (Debian Linux) machine I used wakeonlan to wake it, but the crucial thing is to put the MAC address in in reverse. This is a bug on NForce motherboards so you probably won’t have to do it with others.

comments powered by Disqus