• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Fog 1.1.1 no WOL with vlan

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      slybreiz
      last edited by

      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();}

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        [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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          slybreiz
          last edited by

          I took the info here

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

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          217

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project