[OpenWrt] Wake on LAN configuration

Wake on LAN configuration

The configuration file /etc/config/wol is >wol package and defines hosts to wake when starting the /etc/init.d/wol init script. An alternative opkg-package is etherwake

Please see /etc/crontabs/root to configure crond.

Sections

There is only one section type wol-target defined for the configuration. Multiple wake on lan targets may exist in the file.

Wake on LAN targets

wol-target section defines the parameters the wol utility is started with. The init script will start one instance of wol for each sectionof this type.

Below is a listing of the parameters defined for this section.

Name Type Required Default Description
mac MAC address yes (none) Specifies the MAC address of the host to wake
broadcast IPv4 address or hostname no 255.255.255.255 Specifies the target address magic packets are broadcasted to
port integer no 40000 Specifies the UDP destination port for magic packets
password string no (none) Send given SecureON password when waking the host
enabled boolean no 1 Don't start wol for this section if set to 0

Example

Example entry to wake a host with the MAC address 00:06:29:4f:e4:b6 in the 192.168.0.0/24 subnet:

config wol-targetoption mac 00:06:29:4f:e4:b6option broadcast 192.168.0.255option enabled 1

Notes

If wol does not work, the etherwake package can be used instead. To wake a host on boot, and put the following command into /etc/rc.local:

etherwake 00:0f:3d:ce:ef:ee

This would wake the host with the MAC address 00:0f:3d:ce:ef:ee.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值