Wake on LAN

Status
Not open for further replies.

emiliow

Cadet
Joined
Jan 26, 2014
Messages
2
Hi everyone,
I've set up a freenas system and i like it.
So var all my plans for using the nas have worked out, i'm pretty much a noob with freenas.

But now i would like to be able to boot my nas with wol.
My networking card supports wol_magic, freenas says so, but it is not working.
I tried enabling wol manually but no luck.

Also i've got a windows xp system drive from which i can boot, when i set up windows xp for wol and then try to boot with wake on lan it does work.
Then when i let the system boot freenas and shut it down wake on lan doesn't work anymore.

The Networking controller is a Marvell 88E1116 Gigabit Ethernet controller integrated on a Gigabyte Ga-M59SLI-S5

Hope somebody can help me out.
Thanks
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Have you even searched the forums? I just posted to a wake on lan thread not even 5 hours ago.
 

Michael Wulff Nielsen

Contributor
Joined
Oct 3, 2013
Messages
182
I have been working on this exact same problem. It seems that you should enable it on the network interface before shutdown.

What does "ifconfig -m" give you?
 

N00b

Explorer
Joined
May 31, 2013
Messages
83
This is what I get (to compare since WOL works for me at the moment!). I don't remember if I made changes to FreeNAS (inet) or just enabled it in the BIOS.
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        capabilities=5399b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO>
        ether XX:XX:XX:XX:XX:XX
        inet 192.168.x.xx netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.x.xxx netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.x.xxx netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.x.xxx netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        supported media:
                media autoselect
                media 1000baseT
                media 1000baseT mediaopt full-duplex
                media 100baseTX mediaopt full-duplex
                media 100baseTX
                media 10baseT/UTP mediaopt full-duplex
                media 10baseT/UTP
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        capabilities=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
 

Michael Wulff Nielsen

Contributor
Joined
Oct 3, 2013
Messages
182
I think you may have set the "WOL_MAGIC" option manually. probably with "ifconfig em0 magic". But what is your nic? My Intel nic does not have the WOL_MAGIC capability.
 

N00b

Explorer
Joined
May 31, 2013
Messages
83
Now that you mention it I vaguely remember that I probably did something as the WOL was not working out of the box and I got the same issue as reported by you. But I couldn't be sure. I have an Intel DH55TC desktop board that I am using but it has an Intel NIC. Googling the specs it says it is using the Intel® 82578DC Gigabit Ethernet Controller and dmesg.boot out shows:
"em0: <Intel(R) PRO/1000 Network Connection 7.3.8> port 0xf040-0xf05f mem 0xfe400000-0xfe41ffff,0xfe428000-0xfe428fff irq 20 at device 25.0 on pci0"

Hope that helps.
 

Michael Wulff Nielsen

Contributor
Joined
Oct 3, 2013
Messages
182
Actually that helps a lot. Intel shipped a series of server/desktop nics with that chip. The Intel Pro 1000/PT among others ships with this controller chip. I think I will buy one and see if it works with FreeNas.
 

emiliow

Cadet
Joined
Jan 26, 2014
Messages
2
Thanks for the replies.

I can't get to my computer right now but i think i see a difference in the "ifconfig -m" output.
If i remember correctly WOL_MAGIC is listed under "capabilities=" but not under "options=".
So i guess it has to be enabled. I tried this already several ways:
  • I put wol and wol_magic under network->interfaces->options in freenas webgui.
  • Via the shell "ifconfig nfe1 wol wol_magic"
My NIC is a nvidia nForce networking controller.
nfe1: <NVIDIA nForce MCP55 Networking Adapter>
nfe1: <NVIDIA nForce MCP55 Networking Adapter>
 

R.G.

Explorer
Joined
Sep 11, 2011
Messages
96
I just got my FreeNAS to do a WOL by removing the Intel PRO/1000 GT that I had bought specifically because there were reported problems with the RT8111F that the motherboard uses, and then re-enabling the Realtek.

This really is like a video game - to be successful, you have to have performed/set the right tasks/settings in many apparently unrelated places.

For reference, what is working now is an Asus M5A97 R2.0 with 16G of memory, with wake on PME set and the onboard network interface set enabled in the BIOS.
 
Status
Not open for further replies.
Top