Wake On LAN

15 Jan

#######################################
sisi client yang akan di Wake On LAN
#######################################
1. catat mac adress
root@ubs-desktop:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:76:9a:37:3c
inet addr:172.20.77.77 Bcast:172.20.255.255 Mask:255.255.0.0
inet6 addr: fe80::216:76ff:fe9a:373c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2810 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:265917 (265.9 KB) TX bytes:20607 (20.6 KB)
Interrupt:21 Base address:0xde00

2. apakah eth0 sudah diset WOL [Wake-on: g]


root@ubs-desktop:~# 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 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

3. jika belum [Wake-on: g]
root@ubs-desktop:~# ethtool -s eth0 wol g

4. supaya setiap kali boot diset [Wake-on: g]
a. create script
root@ubs-desktop:~# nano /etc/init.d/wol.sh
#!/bin/bash
ethtool -s eth0 wol g

b. chmod script
root@ubs-desktop:~# chmod +x /etc/init.d/wol.sh

c. update rc.d
root@ubs-desktop:~# update-rc.d -f wol.sh defaults
update-rc.d: warning: /etc/init.d/wol.sh missing LSB information
update-rc.d: see
Adding system startup for /etc/init.d/wol.sh …
/etc/rc0.d/K20wol.sh -> ../init.d/wol.sh
/etc/rc1.d/K20wol.sh -> ../init.d/wol.sh
/etc/rc6.d/K20wol.sh -> ../init.d/wol.sh
/etc/rc2.d/S20wol.sh -> ../init.d/wol.sh
/etc/rc3.d/S20wol.sh -> ../init.d/wol.sh
/etc/rc4.d/S20wol.sh -> ../init.d/wol.sh
/etc/rc5.d/S20wol.sh -> ../init.d/wol.sh

#######################################
sisi server yang men-triger client
#######################################
5. download rpm wol
http://dag.wieers.com/rpm/packages/wol/wol-0.7.1-2.2.el5.rf.x86_64.rpm

6. install
[root@linux34 ~]# rpm -ivh wol-0.7.1-2.2.el5.rf.x86_64.rpm
warning: wol-0.7.1-2.2.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing… ########################################### [100%]
1:wol ########################################### [100%]

7. running
172.20.77.77
[root@linux34 ~]# wol 00:16:76:9a:37:3c
Waking up 00:16:76:9a:37:3c…
[root@linux34 ~]# wol 00:16:76:9a:37:3c
Waking up 00:16:76:9a:37:3c…

Kesimpulan :
1. penggunaan WOL sangat praktis, tinggal menjalankan sebuah command.
2. ada beberapa motherboard / bios yang tidak support untuk WOL.
3. WOL juga dikenal di o/s lain selain linux, misalnya windows.
4. perintah WOL kadang perlu dijalankan lebih dari 1 kali agar dapat komputer client startup.
5. WOL, sebagai solusi startup komputer masih perlu dipertimbangkan, apalagi jika catu daya PLN benar – benar mati

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: