Devian ネットワークインストール
ssh x11vnc 設定済み
wakeonlan 構築
root@flora-debian:~# ifconfig
enp0s12: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.106 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::200:e2ff:fe73:4794 prefixlen 64 scopeid 0x20<link>
inet6 2405:6585:c600:1100:200:e2ff:fe73:4794 prefixlen 64 scopeid 0x0<global>
ether 00:00:e2:73:47:94 txqueuelen 1000 (\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8)
RX packets 112266 bytes 6893626 (6.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 234418 bytes 337150201 (321.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (\u30ed\u30fc\u30ab\u30eb\u30eb\u30fc\u30d7\u30d0\u30c3\u30af)
RX packets 10 bytes 558 (558.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 558 (558.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@flora-debian:~# apt-get install wakeonlan
root@flora-debian:~# apt-get install ethtool
root@flora-debian:~# ethtool -s enp0s12 wol g
確認
root@flora-debian:~# ethtool enp0s12
Settings for enp0s12:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
centos7サーバーPCより、電源投入コマンド有効
[root@falcon21 ~]# ether-wake -i enp0s25 00:00:e2:73:47:94
起動しない
root@flora-debian:~# vi /etc/hosts
127.0.0.1 localhost
192.168.2.106 flora-debian
192.168.1.3 z800
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
固定IP で、ネットワーク接続設定
root@flora-debian:~# vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug enp0s12
#iface enp0s12 inet dhcp
auto enp0s12
iface enp0s12 inet static
address 192.168.2.106
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.2.1
ethtool_opts="wol g"
--------------------
root@flora-debian:~# ethtool -s enp0s12 wol g
再起動すると wakeonlan が無効になる。
再起動しないで、シャットダウンした後にラン内別pcからコマンド
root@flora-debian:~# shutdown now
centos7サーバーPCより、電源投入コマンド
[root@falcon21 ~]# ether-wake -i enp0s25 00:00:e2:73:47:94
起動には3分近く要する。 成功。