**Wake on LAN not working for different subnet in fog 0.32**

  • HI,

    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.


  • Hi,

    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?



  • Moderator

    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 :

    Lets say:
    FOG server on vlan 50 with IP address
    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 any eq 9
    interface Vlan50
    ip address
    ip helper-address

    interface Vlan130
    ip address
    ip helper-address
    ip directed-broadcast 101