Persistent Wake-On-LAN option?

funnystone64

New Member
Aug 8, 2018
1
0
1
27
Hello all,

I recently installed proxmox 5.2-1 on my Dell poweredge r210 ii. I am using the built in NIC thats on the motherboard. I am able to manually enable WOL by using the command ethtool -s eno1 wol g where eno1 is the network interface. How can I make this permanent? Anytime I reboot or shutdown the server, the setting goes away and WOL becomes disabled so I cannot turn it on via WOL after the next shutdown. I tried using crontab -e and entered @reboot /usr/bin/ethtool -s eno1 wol g but that has not seemed to do anything. I tried some of the suggestions on the debian wiki for WakeOnLan but had no luck. Any ideas?
 
@funnystone64 do you have find any solution?

Solution i do by myself:

Code:
apt-get update && apt-get install ethtool
nano /etc/systemd/system/wol.service

[Unit]
Description=Wake-on-LAN for <interface id>
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/sbin/ethtool -s <interface id> wol g
ExecStop=/usr/sbin/ethtool -s <interface id> wol g

[Install]
WantedBy=multi-user.target


Code:
systemctl start wol.service
systemctl enable wol.service
systemctl is-enabled wol.service
systemctl daemon-reload
 
Last edited:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp34s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000 link/ether 2c:f0:5d:56:df:21 brd ff:ff:ff:ff:ff:ff 3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether ee:96:dc:77:2f:84 brd ff:ff:ff:ff:ff:ff inet 192.168.1.11/24 scope global vmbr0 valid_lft forever preferred_lft forever inet6 fe80::ec96:dcff:fe77:2f84/64 scope link valid_lft forever preferred_lft forever 4: tap105i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr105i0 state UNKNOWN group default qlen 1000 link/ether 96:78:0c:60:f3:c9 brd ff:ff:ff:ff:ff:ff 5: fwbr105i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 46:c4:5c:40:9f:33 brd ff:ff:ff:ff:ff:ff 6: fwpr105p0@fwln105i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000 link/ether da:b3:1e:9d:fa:72 brd ff:ff:ff:ff:ff:ff 7: fwln105i0@fwpr105p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr105i0 state UP group default qlen 1000 link/ether 96:dc:ad:b3:d3:55 brd ff:ff:ff:ff:ff:ff 8: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr100i0 state UNKNOWN group default qlen 1000 link/ether a6:87:cc:90:a8:64 brd ff:ff:ff:ff:ff:ff 9: fwbr100i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether f2:e2:40:8c:24:98 brd ff:ff:ff:ff:ff:ff 10: fwpr100p0@fwln100i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000 link/ether 1e:47:07:1d:64:aa brd ff:ff:ff:ff:ff:ff 11: fwln100i0@fwpr100p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr100i0 state UP group default qlen 1000 link/ether a2:ed:d9:7a:22:fd brd ff:ff:ff:ff:ff:ff

I can't recognize any devices related to a WoL or ethtool.
 
@funnystone64 do you have find any solution?

Solution i do by myself:

Code:
apt-get update && apt-get install ethtool
nano /etc/systemd/system/wol.service




Code:
systemctl start wol.service
systemctl enable wol.service
systemctl is-enabled wol.service
systemctl daemon-reload
thank you sir, something written 5 years ago just works on the latest version while countless documents fail to describe properly how to have this set persistently. That is that the output of ethtool eno1 should show Wake-on: g and not d.
Enable WOL in BIOS and do the above and it works for me.
Couldn´t find how to set this as an /etc/network/interfaces line, which may be better.

cheers
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!