Operating System/Centos

Wake On LAN - Centos 7

5GaNe 2022. 1. 26. 04:27

■ Centos 7 WOL 설정 방법



1. ethtool 유틸리티를 설치 한다.

  # yum install -y ethtool 


2. Ethernet 카드의 WOL 설정 상태 확인

  # ethtool eno1 | grep Wake-on

        Supports Wake-on: pumbg

        Wake-on: d


WOL Option Info

*******************************************************************

p Wake on PHY activity

u Wake on unicast messages

m Wake on multicast messages

b Wake on broadcast messages

a Wake on ARP

g Wake on MagicPacket™

s Enable SecureOn™ password for MagicPacket™

d Disable (wake on nothing). This option clears all previous options.

*******************************************************************


3. Ethernet 카드 WOL 설정 및 확인

  # ethtool -s eno1 wol g

  # ethtool eno1 | grep Wake-on


4. wol 옵션 설정

  # vi /etc/sysconfig/network-scripts/ifcfg-eno1

   ETHTOOL_OPTS = "- s $ {DEVICE} wol g" <-- 추가 후 저정