[Ubuntu] Enable Ubuntu WOL function

Ubuntu 18.04

$ sudo apt install net-tools
$ sudo atp-get install ethtool

使用 ipconfig 查看 LAN 卡名稱:

$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:c8:22:33:44 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::28db:9357:aa77:f13 prefixlen 64 scopeid 0x20<link>
ether 33:9c:52:07:66:88 txqueuelen 1000 (Ethernet)
RX packets 25517 bytes 2338698 (2.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46529 bytes 14797516 (14.7 MB)
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 1000 (Local Loopback)
RX packets 328 bytes 23053 (23.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 328 bytes 23053 (23.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

繼續閱讀 “[Ubuntu] Enable Ubuntu WOL function”

[RouterOS] 讓 RouterBoard 支援從 Internet 喚醒 (WOL) 區網內的電腦

RouterOS version: 6.39.2

要從 Internet 喚醒區網內的電腦有三個部份要設對,分別是電腦要啟動 WOL,RouterOS 要建立相關規則,WOL clinet 軟體要設定正確。

RouterOS 部份只需建立兩條規則即可,以下是可以喚醒區網中兩台電腦的範例。

規則1: 防火牆設定

繼續閱讀 “[RouterOS] 讓 RouterBoard 支援從 Internet 喚醒 (WOL) 區網內的電腦”