I have chased WOL on my FreeNAS server into another brick wall. Along the way, I debugged through the layers I documented in http://forums.freenas.org/index.php...it-works-why-it-doesnt-and-frustration.18354/.
For others trying to chase this down, the two commands you'll need to find out if your FreeNAS is set up to receive WOL and if the packet is getting there are:
ifconfig [name of your NIC driver here]
and
tcpdump -i (name of your NIC driver here) -v -x port (7 or 9)
I have an Intel PRO/1000 GT PCI bus NIC inserted to sidestep the issues with the Realtek 8111F onboard NI on my ASUS m5A97 R2 motherboard. Running these on my system in the shell and sending a WOL packet from another machine gets the following:
So - do I interpret this correctly? WOL with magic packet receipt is set up in the em0 driver, so it should receive the packet??
And the magic packet I see has the magic packet format with six bytes of FF, followed by the MAC address sixteen times.
Does this indicate that the MP is getting to the machine correctly, it's just not waking on the packet?
[EDIT: I realized I'd pasted the wrong saved output from the ifconfig. I've corrected that and I think it does show WOL_MAGIC enabled.]
For others trying to chase this down, the two commands you'll need to find out if your FreeNAS is set up to receive WOL and if the packet is getting there are:
ifconfig [name of your NIC driver here]
and
tcpdump -i (name of your NIC driver here) -v -x port (7 or 9)
I have an Intel PRO/1000 GT PCI bus NIC inserted to sidestep the issues with the Realtek 8111F onboard NI on my ASUS m5A97 R2 motherboard. Running these on my system in the shell and sending a WOL packet from another machine gets the following:
Code:
[root@freenas ~]# ifconfig em0 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:1b:21:48:26:b3 inet 192.168.0.6 netmask 0xffffff80 broadcast 192.168.0.127 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active [root@freenas ~]# tcpdump -i em0 -x port 9 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes 11:20:35.056823 IP 192.168.0.3.62834 > 255.255.255.255.discard: UDP, length 102 0x0000: 4500 0082 57db 0000 8011 21e5 c0a8 0003 0x0010: ffff ffff f572 0009 006e c886 ffff ffff 0x0020: ffff 001b 2148 26b3 001b 2148 26b3 001b 0x0030: 2148 26b3 001b 2148 26b3 001b 2148 26b3 0x0040: 001b 2148 26b3 001b 2148 26b3 001b 2148 0x0050: 26b3 001b 2148 26b3 001b 2148 26b3 001b 0x0060: 2148 26b3 001b 2148 26b3 001b 2148 26b3 0x0070: 001b 2148 26b3 001b 2148 26b3 001b 2148 0x0080: 26b3 ^C 1 packet captured 374 packets received by filter 0 packets dropped by kernel [root@freenas ~]#
So - do I interpret this correctly? WOL with magic packet receipt is set up in the em0 driver, so it should receive the packet??
And the magic packet I see has the magic packet format with six bytes of FF, followed by the MAC address sixteen times.
Does this indicate that the MP is getting to the machine correctly, it's just not waking on the packet?
[EDIT: I realized I'd pasted the wrong saved output from the ifconfig. I've corrected that and I think it does show WOL_MAGIC enabled.]