Fog 1.1.1 no WOL with vlan



  • Hello there

    we have a problem of wakeonlan with FOG server 1.1.1 on ubuntu 12.04 server day.

    if below the core configuration of cisco 6570 network and file wol.php change.

    the wakeonlan-i 172.17.127.255 @ mac command works.

    but when I run a command from the interface of the server nothing works.

    thank you in advance if you see a problem of configuration.

    config vlan eleve :

    interface Vlan10
    description VLAN-ELEVES 172.17.64.0/18
    ip address 172.17.127.254 255.255.192.0
    ip helper-address 172.17.212.65
    ip helper-address 172.17.212.67
    ip directed-broadcast
    ip pim sparse-dense-mode
    ip igmp version 3
    ip igmp proxy-service
    ip igmp snooping fast-leave

    fichier wol.php

    root@SRV-IMAGE:~# cat /var/www/fog/wol/wol.php
    <?php
    // Require FOG Base
    require(’…/commons/base.inc.php’);
    try
    {
    $MACAddress = new MACAddress($REQUEST[‘wakeonlan’]);
    if ($MACAddress->isValid())
    {
    $wol = new WakeOnLan($MACAddress->getMACWithColon());
    $wol->send();
    exec ("/usr/bin/wakeonlan -i 172.17.127.255"."".$mac);
    exec ("/usr/bin/wakeonlan -i 172.17.211.255"."".$mac);
    }
    else
    throw new Exception(
    (‘Invalid MAC Address!’));
    }
    catch (Exception $e){print $e->getMessage();}



  • I took the info here

    [url]http://www.fogproject.org/wiki/index.php?title=WOL_Forwarding[/url] # WoL_Forwarding


  • Senior Developer

    [quote=“slybreiz, post: 31839, member: 2972”][code]<?php
    // Require FOG Base
    require(’…/commons/base.inc.php’);
    try
    {
    $MACAddress = new MACAddress($REQUEST[‘wakeonlan’]);
    if ($MACAddress->isValid())
    {
    $wol = new WakeOnLan($MACAddress->getMACWithColon());
    $wol->send();
    [b]exec ("/usr/bin/wakeonlan -i 172.17.127.255"."".$mac);
    exec ("/usr/bin/wakeonlan -i 172.17.211.255"."".$mac);[/b]
    }
    else
    throw new Exception(
    (‘Invalid MAC Address!’));
    }
    catch (Exception $e){print $e->getMessage();}[/code][/quote]

    Why are the exec lines there?

    It’s most likely a switch configuration issue. WOL is strictly a layer 2 item, so you need to pass all of the data to broadcast across the entirety of your network, or at the least directly to the places you need to WOL.


Log in to reply
 

378
Online

39.5k
Users

11.1k
Topics

105.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.