Linux远程开机
0博主Linux系统型号
uname -a
型号为:Linux lzf-W580-G20 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
1安装包
sudo apt-get install wakeonlan
sudo apt-get install ethtool
wakeonlan用于远程唤醒:https://blog.csdn.net/yu132563/article/details/97705307
ethtool是用于查询及设置网卡参数的命令:https://www.cnblogs.com/zhongguiyao/p/13942778.html
2查看网卡
ifconfig
找到网卡的名字,和mac码,ether后的为mac码
3查看是否支持远程唤醒
sudo ethtool enol

Wake-on:g表示开启远程唤醒,否则为未开启,使用ethtool -s eth1 wol g开启
4唤醒
使用在同一局域网内的电脑
wol 目标mac地址

浙公网安备 33010602011771号