Problem with dhcp options configuration



  • Hello i instaled the fog version 1.0.1 yesterday and tried to configure it with my existing mikrotik dhcp server.

    The fog is on the same netowork as my host machines, in the dhcp server i created the 66 and 67 options as follows:

    Name Code Value
    next-server 66 172.16.8.2
    bootfile 67 pxelinux.0

    but my host machines give me a message that no configuration are recieved from dhcp, is there any other option that i have to create?
    When i installed fog i choose no when it prompt for it to be the dhcp server.



  • Hello .

    This setting works IF you disable "Allways Broadcast " in DHCP setings .
    Thank for sharing . It helped me a lot.



  • Helo i solved my problem following this awesome tutorial:

    [url]http://fogproject.org/forum/threads/how-to-setup-ubuntu-server-fog-1-2-0-create-univeral-windows-7-image-using-sysprep-step-by-step.11245/[/url]

    I had many problems becouse of i tried to use ubuntu 14.04 now i’m using ubuntu 10.04 and it is working well.

    I had problems configuring my mikrotik dhcp server, becouse i was trying to configure the options 66 and 67 manualy, there are specifc filds in it to configure these options, in the picture below i show the right filds:

    [IMG]https://dl.dropboxusercontent.com/u/70915108/dhcp_fog_mikrotik.jpg[/IMG]


  • Moderator

    I use a 10.x.x.x with 255.255.248.0 subnet mask, works fine for me.



  • sorry subnetting, bad english



  • Now something came to my mind, i’m using supernetting in this network, my network is 172.16.8.0/21, the pxe protocol supports supernetting?


  • Developer

    [quote=“Leandro Silva, post: 29427, member: 24513”]i’m using a mikrotik as router and dhcp server for this network segment and my fog server and host machines are geting dhcp from it.[/quote]

    Another possibility is to install the dnsmasq service to help alleviate the issues of trying resolve your dhcp information.

    [url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url]



  • [quote=“Jaymes Driver, post: 29423, member: 3582”]Is this a type-o or did you really enter your ip address as 172.16. 8.1 because there is a space in there.[/quote]

    It was entered correctly in the configuration the space appered when i copied it in the terminal



  • i’m using a mikrotik as router and dhcp server for this network segment and my fog server and host machines are geting dhcp from it.


  • Developer

    Is this a type-o or did you really enter your ip address as 172.16. 8.1 because there is a space in there.


  • Moderator

    it’s complaining it can’t get an IP address.

    what is your DHCP server running on?

    I’ve had this a small amount at my current place of work, but it is only laptops plugged in via their Ethernet ports…




  • Developer

    Can you upload a picture of your exact error message?



  • I already tried: undionly.kpxe and have the same problem

    here follows my instalation process

      ..#######:.    ..,#,..     .::##::.
    

    .:###### .:;####:…;#;…
    …##… …##;,;##::::.##…
    ,# …##…##:::## …::
    ## .::###,##. . ##.::#.:######::.
    …##:::###::…#. … .#…#. #…#:::.
    …:####:… …##…##::## … #
    # . …##:,;##;:::#: … ##…
    .# . .:;####;::::.##:::;#:…
    # …:;###…

    ###########################################

    FOG

    Free Computer Imaging Solution

    [url]http://www.fogproject.org/[/url]

    Developers:

    Chuck Syperski

    Jian Zhang

    Peter Gilchrist

    Tom Elliott

    GNU GPL Version 3

    ###########################################

    Version: 1.0.1 Installer/Updater

    What version of Linux would you like to run the installation for?

          1) Redhat Based Linux (Redhat, CentOS)
          2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
    

    Choice: [2]

    Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

    FOG Server installation modes:
    * Normal Server: (Choice N)
    This is the typical installation type and
    will install all FOG components for you on this
    machine. Pick this option if you are unsure what to pick.

      * Storage Node: (Choice S)
          This install mode will only install the software required
          to make this server act as a node in a storage group
    

    More information:
    [url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]

    What type of installation would you like to do? [N]

    What is the IP address to be used by this FOG Server? [end.:]172.16.8.2

    Would you like to setup a router address for the DHCP server? [Y/n] 172.16.8.1
    Invalid input, please try again.

    Would you like to setup a router address for the DHCP server? [Y/n] y
    What is the IP address to be used for the router on the DHCP server? []172.16. 8.1

    Would you like to setup a DNS address for the DHCP server and client boot imag e? [Y/n] y
    What is the IP address to be used for DNS on the DHCP server and client boot i mage? [172.16.0.106]

    Would you like to change the default network interface from eth0?
    If you are not sure, select No. [y/N]y
    What network interface would you like to use? p4p1

    Would you like to use the FOG server for DHCP service? [Y/n] n

    This version of FOG has internationalization support, would
    you like to install the additional language packs? [y/N] n

    Would you like to donate computer resources to the FOG Project
    to mine cryptocurrency? This will only take place during active
    tasks and should NOT have any impact on performance of your
    imaging or other tasks. The currency will be used to pay for
    FOG Project expenses and to support the core developers working
    on the project. For more information see:

    [url]http://fogproject.org/?q=cryptocurrency[/url]

    Would you like to donate computer resources to the FOG Project? [y/N] n

    #####################################################################

    FOG now has everything it needs to setup your server, but please
    understand that this script will overwrite any setting you may
    have setup for services like DHCP, apache, pxe, tftp, and NFS.

    It is not recommended that you install this on a production system
    as this script modifies many of your system settings.

    This script should be run by the root user on Redhat or with sudo on Ubuntu.

    ** Notice ** Redhat users will need to disable SELinux and iptables in
    order to use FOG
    Please see our wiki for more information at [url]http://www.fogproject.org/wiki[/url]

    Here are the settings FOG will use:
    Base Linux: Debian
    Detected Linux Distribution: Ubuntu
    Installation Type: Normal Server
    Server IP Address: 172.16.8.2
    DHCP router Address: 172.16.8.1
    DHCP DNS Address: 172.16.0.106
    Interface: p4p1
    Using FOG DHCP: 0
    Internationalization: 0
    Donate: 0

         DHCP will NOT be setup but you must setup your
         current DHCP server to use FOG for PXE services.
    
         On a Linux DHCP server you must set:
             next-server
    
         On a Windows DHCP server you must set:
             option 066 & 067
    
                   Option 066 is the IP of the FOG Server: (e.g.
                   Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
    

    Are you sure you wish to continue (Y/N) y


  • Senior Developer

    [quote=“Leandro Silva, post: 29351, member: 24513”]Hello i instaled the fog version 1.0.1 yesterday and tried to configure it with my existing mikrotik dhcp server.

    The fog is on the same netowork as my host machines, in the dhcp server i created the 66 and 67 options as follows:

    Name Code Value
    next-server 66 172.16.8.2
    bootfile 67 pxelinux.0

    but my host machines give me a message that no configuration are recieved from dhcp, is there any other option that i have to create?
    When i installed fog i choose no when it prompt for it to be the dhcp server.[/quote]

    When you performed the install, did you pay attention to the output being displayed to you?


  • Developer

    [B]Fog v1.0.1 bootfile should be undionly.kpxe[/B]


Log in to reply
 

415
Online

39210
Users

10856
Topics

103343
Posts

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