TOP
Wake on Lan
or on server
linux - How to get MAC address of your machine using a C program ...
VAIO-S(xubuntu14.04)
Wake on Lan
etherwake - send a Wake-On-LAN Magic Packet
HowTo: Wake Up Computers Using Linux Command [ Wake-on-LAN ( WOL ) ]
HowTo: Wake Up Computers Using Linux Command [ Wake-on-LAN ( WOL ) ]
$ apt-cache search etherwake wakeonlan - Sends 'magic packets' to wake-on-LAN enabled ethernet adapters etherwake - tool to send magic Wake-on-LAN packets
# wakeonlan aa:bb:cc:dd:ee::ffor
# etherwake aa:bb:cc:dd:ee::ff # etherwake -D aa:bb:cc:dd:ee::ff
ping -c 4 server_name_or_ip_addres && arp -nor
arp -a server_name_or_ip_addres
or on server
$ cat /sys/class/net/eth0/address
linux - How to get MAC address of your machine using a C program ...
- BIOS - Power Management - “Wake On LAN”
- configure eth0 to respond to the magic packet using ethtool
$ sudo ethtool -s eth0 wol g $ sudo ethtool eth0 : Supports Wake-on: g Wake-on: g :
- on Ubuntu, edit /etc/network/interfaces:
# vi /etc/network/interfaces Append the following to eth0: auto eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 post-up /sbin/ethtool -s eth0 wol g post-down /sbin/ethtool -s eth0 wol g
knoppix@Microknoppix:~$ sudo ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 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: d Current message level: 0x00000007 (7) Link detected: yes knoppix@Microknoppix:~$
VAIO-S(xubuntu14.04)
$ sudo ethtool eth0 [sudo] password for smnb: Settings for eth0: 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: Symmetric 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: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: g Current message level: 0x00000007 (7) drv probe link Link detected: yes $
最新コメント