Talha Ahmad
Dabbler
- Joined
- Aug 27, 2014
- Messages
- 19
**Parts List + Relevant command outputs at the end of post**
Problem:
My (and many others) network interface (mine=Intel embedded gigabyte LAN) turns off (LED Ethernet turn off), when the shutdown command from the webgui is executed. Because my network interface turns off when I shutdown freenas from the webgui, the magic packet for WOL doesn't get executed.
The Strange Part:
- All bios settings related to WOL (and PME) are already properly configured
- I know they are b/c WOL doesn't work **only** if I use the GUI to shutdown, however if I force shutdown using the power button right after bios post, the computer WILL wake on lan.
--> Because of this, I suspect freenas is the reason why this is occurring
Why WOL does not work **only** when FreeNAS shutdowns PC:
The LEDs on the Ethernet(network interface offline) seem only turn off when I execute the shutdown command from the WebGUI, however LED's do remain on when I force Shut down (pressing PW once) the PC right after BIOS Posts (before FreeNAS loads) and therefore WOL works.
Essentially FreeNAS is shutting down my network interface upon webGUI shutdown command which consequently mean WOL doesn't work.
Methods I (and several others) have tried in order to get the N.I to remain on:
1) Placing the network drivers, if_bge.ko, from the lasted release of NAS4Free onto the boot kernel directory and then setting up a turntable to load upon boot (if_bge_load="YES")
Doesn't Work B/C that driver is not for Intel N.I's
Reference (see HP Proliant N54L section) --> http://tinyurl.com/nfeb53v
2) Commenting out the line:
#/sbin/ifconfig -l | /usr/bin/xargs -n 1 -J % /sbin/ifconfig % down
in the /conf/base/etc/rc.shutdown file
Then rebooting twice to apply chances (b/c modified scripts are copied to the in-memory-filesystem)
Didn't work --> Not sure why?
Reference (see #16 post) --> https://bugs.pcbsd.org/issues/3764 (unsolved)
3) Adding the option for "wol_magic" in the network interface settings:
Reference (see #21 post) --> https://bugs.pcbsd.org/issues/3764 (unsolved)
Didn't work --> Not sure why?
4) Adding a sysctl variable for "dev.em.0.wake=1"
Reference (see #21 post) --> https://bugs.pcbsd.org/issues/3764 (unsolved)
Didn't work --> Not sure why?
Speaking on behalf of several users bug reports:
https://bugs.pcbsd.org/issues/3764
https://bugs.pcbsd.org/issues/4212
In both tickets, you will notice that the methods above have worked for a few, however the number of people still facing this issue far out way the few that have this issues resolved.
Please take a look at both tickets as they show this a deep analysis of the issue at hand, I do understand however that each person may have a different config problem.
Parts and commands outputs for my machine:
Parts:
Mobo: Gigabyte B-85
RAM: Crucial Ballistix 1600 DDR3 (non-ecc ram, please don't nag, I understand the consequences, this does not relate to the problem at hand)
CPU: Intel Pentium G3220 Haswell Dual-Core 3.0GHz
PSU: Corsair Builder Series CX 430 Watt
OS: FreeNAS 9.3 64-bit (updated to the lasted)
Several Diagnostic Command Outputs (after applying all the methods):
[root@NAS ~]# pciconf -l | grep ^em
em0@pci0:0:25:0: class=0x020000 card=0xe0001458 chip=0x153b8086 rev=0x05 hdr=0x00
[root@NAS ~]# ifconfig em0
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 150
0
options=40098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO>
ether 74:d4:35:81:eb:48
inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Thank for reading, I appreciate the smallest bit of contribution that anyone can provide to help at least come a bit closer to solving the issue.
Problem:
My (and many others) network interface (mine=Intel embedded gigabyte LAN) turns off (LED Ethernet turn off), when the shutdown command from the webgui is executed. Because my network interface turns off when I shutdown freenas from the webgui, the magic packet for WOL doesn't get executed.
The Strange Part:
- All bios settings related to WOL (and PME) are already properly configured
- I know they are b/c WOL doesn't work **only** if I use the GUI to shutdown, however if I force shutdown using the power button right after bios post, the computer WILL wake on lan.
--> Because of this, I suspect freenas is the reason why this is occurring
Why WOL does not work **only** when FreeNAS shutdowns PC:
The LEDs on the Ethernet(network interface offline) seem only turn off when I execute the shutdown command from the WebGUI, however LED's do remain on when I force Shut down (pressing PW once) the PC right after BIOS Posts (before FreeNAS loads) and therefore WOL works.
Essentially FreeNAS is shutting down my network interface upon webGUI shutdown command which consequently mean WOL doesn't work.
Methods I (and several others) have tried in order to get the N.I to remain on:
1) Placing the network drivers, if_bge.ko, from the lasted release of NAS4Free onto the boot kernel directory and then setting up a turntable to load upon boot (if_bge_load="YES")
Doesn't Work B/C that driver is not for Intel N.I's
Reference (see HP Proliant N54L section) --> http://tinyurl.com/nfeb53v
2) Commenting out the line:
#/sbin/ifconfig -l | /usr/bin/xargs -n 1 -J % /sbin/ifconfig % down
in the /conf/base/etc/rc.shutdown file
Then rebooting twice to apply chances (b/c modified scripts are copied to the in-memory-filesystem)
Didn't work --> Not sure why?
Reference (see #16 post) --> https://bugs.pcbsd.org/issues/3764 (unsolved)
3) Adding the option for "wol_magic" in the network interface settings:
Reference (see #21 post) --> https://bugs.pcbsd.org/issues/3764 (unsolved)
Didn't work --> Not sure why?
4) Adding a sysctl variable for "dev.em.0.wake=1"
Reference (see #21 post) --> https://bugs.pcbsd.org/issues/3764 (unsolved)
Didn't work --> Not sure why?
Speaking on behalf of several users bug reports:
https://bugs.pcbsd.org/issues/3764
https://bugs.pcbsd.org/issues/4212
In both tickets, you will notice that the methods above have worked for a few, however the number of people still facing this issue far out way the few that have this issues resolved.
Please take a look at both tickets as they show this a deep analysis of the issue at hand, I do understand however that each person may have a different config problem.
Parts and commands outputs for my machine:
Parts:
Mobo: Gigabyte B-85
RAM: Crucial Ballistix 1600 DDR3 (non-ecc ram, please don't nag, I understand the consequences, this does not relate to the problem at hand)
CPU: Intel Pentium G3220 Haswell Dual-Core 3.0GHz
PSU: Corsair Builder Series CX 430 Watt
OS: FreeNAS 9.3 64-bit (updated to the lasted)
Several Diagnostic Command Outputs (after applying all the methods):
[root@NAS ~]# pciconf -l | grep ^em
em0@pci0:0:25:0: class=0x020000 card=0xe0001458 chip=0x153b8086 rev=0x05 hdr=0x00
[root@NAS ~]# ifconfig em0
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 150
0
options=40098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO>
ether 74:d4:35:81:eb:48
inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Thank for reading, I appreciate the smallest bit of contribution that anyone can provide to help at least come a bit closer to solving the issue.
Last edited: