**Wake on LAN not working for different subnet in fog 0.32**
I am using fog 0.32 for my LAN school which consists of 150 machines running in different subnets. Fog 0.32 doesn’t boots up machines automatically in different subnets.
Anyone please help me out.
I have done the above quoted steps already,but still it is not working.
I came to know that if I give exact broadcast address in wol.php file,its working.
But its not possible to hard code all subnets there.
can u pls help?
Basically, you have to enable directed broadcasts so the broadcast packets coming from the FOG server are not discarded at the router or switch handling your VLAN routing.
We use a DLINK fiber switch to handle VLAN routing because all the remote buildings come back to that switch via fiber. Each location is on its own VLAN and subnet. To enable WOL across the subnets, we have to tell that switch to forward on the WOL broadcast packets to each subnet/VLAN. Actual steps depend on your make, model, and version of networking hardware.
What kind of Switches are you using in your network ?
If you are using Cisco switches you have to enable broadcast on the subnets you would want the WOL to pass through. In order to do this :
FOG server on vlan 50 with IP address 10.2.50.70
PC on vlan 130 with IP address lease from DHCP running on FOG server
ip forward-protocol udp discard
access-list 101 permit udp host 10.2.50.70 any eq 9
ip address 10.2.50.1 255.255.255.0
ip helper-address 10.2.130.255
ip address 10.2.130.1 255.255.255.0
ip helper-address 10.2.50.35
ip directed-broadcast 101