You are not logged in.

#1 2013-04-03 04:13:44

ayushjsh
Member
Registered: 2013-03-21
Posts: 8

Can't get wake on lan to work on Hp n40l microserver

Hello

I installed arch on my HP proliant microserver and I can not get Wake on lan to work. I tested my device with ethtool and it supports and is enabled for WOL with g value set for both.
But whenever I power it off by systemctl poweroff I can no longer see it as a connected device to my router hmm

Before installing arch I tried ubuntu for testing the hardware quickly and I got wake on lan working there. I can not figure out what might be the issue here. Wake on lan is enabled in the BIOS.

Any help would be appreciated

Cheers

Offline

#2 2013-04-03 04:30:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't get wake on lan to work on Hp n40l microserver

I don't think you necessarily need the device to be detected by the router.  With wol you send the magic packet via mac address of the card.

Offline

#3 2013-04-03 04:49:51

ayushjsh
Member
Registered: 2013-03-21
Posts: 8

Re: Can't get wake on lan to work on Hp n40l microserver

As I see in the Archwiki , the wol package would also need the IP address ( though not necessary ) along with the mac address of the server.

I fear that the nic on the server does not obtain an ip in shutdown state, since I can't see it in my attached devices in the router settings( I could be very wrong ! )

Tried using wol on a laptop running arch, but with no luck. hmm

I have seen this workaround in several places
https://bugs.launchpad.net/ubuntu/+sour … bug/981461

I even tried creating a similar script which would first do

ip link set dev enp2s0 down
systemctl poweroff

but that did not work either.




Cheers

Last edited by ayushjsh (2013-04-03 07:00:28)

Offline

#4 2013-05-28 18:10:39

karel
Member
From: Czech republic
Registered: 2007-01-15
Posts: 17

Re: Can't get wake on lan to work on Hp n40l microserver

Resolve this problem? I have some problem.

Offline

#5 2013-10-15 16:07:00

elangelo
Member
Registered: 2013-10-15
Posts: 4

Re: Can't get wake on lan to work on Hp n40l microserver

i can confirm that if i use
ifconfig enp2s0 down
systemctl poweroff

i can wol the server back.

installed ifconfig from the nettools package and it seems to work for me.

so i did this:
made a wol@service in /etc/systemd/system/

[Service]
Type=forking
Requires=netork.target
After=network.target
ExecStart=/usr/bin/ethtool -s %i wol g
ExecStop=/usr/bin/ifconfig %i down
TimeoutSec=0
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

after that just systemctl enable wol@enp2s0.service and now my system is wakeable by wol

Last edited by elangelo (2013-10-15 17:44:38)

Offline

Board footer

Powered by FluxBB