Wake on Lan is a useful technology to be able to start a machine from a remote computer (on the same network)
This tutorial assumes your network interface is running on eth0, if your interface isn’t eth0, replace this with your network interface. You can determine this by running an ifconfig.
Firstly, we’ll install “ethtool” using yum.
yum -y install ethtool
Now, we’ll configure the application.
ethtool -s eth0 wol g
We need to add “ETHTOOL_OPTS=”wol g”” to the last line of the ifcfg file.
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Take note of the MAC address of this machine. You’ll need this to boot the server.
ifconfig eth0 | grep HWaddr | awk ‘{print $5}'
At the remote computer (which will boot the machine you’ve just installed Wake on Lan on, we’ll need to install net-tools.
yum -y install net-tools
We can now boot the machine from the remote computer using this command.
ether-wake [MAC Address]