Difference between revisions of "Modifying existing DHCP server to work with FOG"

From FOG Project
Jump to: navigation, search
m (Modifying existing DHCP server to work with FOG)
(Replaced content with "{{:DHCP_Settings}}")
 
Line 1: Line 1:
* <span style="background-color:RED; color:white;">Legacy page please look at [[DHCP_Settings]] for current information.</span>
+
{{:DHCP_Settings}}
* <span style="background-color:Yellow;">Under construction!</span>
 
 
 
== Modifying existing DHCP server to work with FOG ==
 
 
 
If you already have a DHCP server setup on your network you don't want two.  So if you chose to not install DHCP during FOG installation you will need to set some options in your current DHCP server to point PXE services to the FOG server.
 
 
 
==pfSense==
 
In pfSense enable network booting as follows (192.168.1.1 should be replaced by the ip address of your fog server):
 
 
 
[[File:PfSense_dhcp_network_boot_settings.png]]
 
 
 
== Linux ==
 
=== 0.32 and below ===
 
If you would like to use an existing Linux based DHCPD server you will need to perform the following steps:
 
#Edit your dhcpd.conf file (ie: vim /etc/dhcpd.conf)
 
#In the global section or in a subnet declaration add '''next-server X.X.X.X;''' and '''filename "pxelinux.0"'''; where X.X.X.X is the IP of your FOG server.
 
#Restart your dhcpd server (ie: service dhcpd restart)
 
*For more, see: [[Linux DHCP Server|Can I use my existing linux DHCP Server?]]
 
=== 0.33 and up ===
 
If you would like to use an existing Linux based DHCPD server you will need to perform the following steps:
 
#Edit your dhcpd.conf file (ie: vim /etc/dhcpd.conf)
 
#In the global section or in a subnet declaration add '''next-server X.X.X.X;''' and '''filename "undionly.kpxe"'''; where X.X.X.X is the IP of your FOG server.
 
#Restart your dhcpd server (ie: service dhcpd restart)
 
*For more, see: [[Linux DHCP Server|Can I use my existing linux DHCP Server?]]
 
 
 
= Cisco =
 
If you would like to use a DHCP-enabled Cisco router you will need to perform the following steps:
 
== 0.32 and below ==
 
#Enter priveleged mode ('''enable''').
 
#If you don't know your DHCP pool name, enter '''show running-config''' and look for ''ip dhcp pool'' in the output.
 
#Enter global configuration mode ('''configure terminal''').
 
#Enter DHCP scope configuration mode ('''ip dhcp pool ''<pool name>''''').
 
#Configure the following options:
 
##'''next-server ''<ip address to fog server>'''''
 
##'''bootfile pxelinux.0'''
 
#Exit configuration mode by entering '''exit''' twice.
 
#Save your configuration ('''copy running-config startup-config''').
 
== 0.33 and up ==
 
#Enter priveleged mode ('''enable''').
 
#If you don't know your DHCP pool name, enter '''show running-config''' and look for ''ip dhcp pool'' in the output.
 
#Enter global configuration mode ('''configure terminal''').
 
#Enter DHCP scope configuration mode ('''ip dhcp pool ''<pool name>''''').
 
#Configure the following options:
 
##'''next-server ''<ip address to fog server>'''''
 
##'''bootfile undionly.kpxe'''
 
#Exit configuration mode by entering '''exit''' twice.
 
#Save your configuration ('''copy running-config startup-config''').
 
= DD-WRT & Tomato =
 
== 0.32 and below ==
 
If you would like to use a DD-WRT or Tomato router for DHCP you will need to perform the following steps:
 
#Go to the Services tab
 
#Enable DNSMasq, and Local DNS
 
#Under Additional DNSMasq Options add the following '''dhcp-boot=pxelinux.0,,X.X.X.X'''  where X.X.X.X is the IP of your FOG server
 
#Save/Apply settings
 
Please see our knowledge base article [[FOG with DD-WRT firmware|Can I use my existing DD-WRT enabled routers DHCP Server?]] for more information on this.
 
== 0.33 and up ==
 
If you would like to use a DD-WRT or Tomato router for DHCP you will need to perform the following steps:
 
#Go to the Services tab
 
#Enable DNSMasq, and Local DNS
 
#Under Additional DNSMasq Options add the following '''dhcp-boot=undionly.kpxe,,X.X.X.X'''  where X.X.X.X is the IP of your FOG server
 
#Save/Apply settings
 
Please see our knowledge base article [[FOG with DD-WRT firmware|Can I use my existing DD-WRT enabled routers DHCP Server?]] for more information on this.
 
 
 
=== Extra Information ===
 
The dhcp-boot information from Tomato and DD-WRT is exactly the same information dnsmasq uses.  This is because dnsmasq is the default dhcp server for these routers.
 
 
 
= OpenWRT =
 
== 0.32 and below ==
 
If you would like to use an OpenWRT router for DHCP you will need to perform the following steps:
 
#Edit '''etc/config/dhcp'''
 
#In chapter '''config 'dnsmasq' ''' add this line: '''option 'dhcp_boot' 'pxelinux.0,fog,X.X.X.X' ''' where X.X.X.X is the IP of your FOG server
 
#Save the dhcp file
 
#Restart dnsmasq: '''/etc/init.d/dnsmasq restart'''
 
 
 
This config has been tested on OpenWRT Attitude Adjustment (r28247).
 
== 0.33 and up ==
 
If you would like to use an OpenWRT router for DHCP you will need to perform the following steps:
 
#Edit '''etc/config/dhcp'''
 
#In chapter '''config 'dnsmasq' ''' add this line: '''option 'dhcp_boot' 'undionly.kpxe,fog,X.X.X.X' ''' where X.X.X.X is the IP of your FOG server
 
#Save the dhcp file
 
#Restart dnsmasq: '''/etc/init.d/dnsmasq restart'''
 
 
 
This config has been tested on OpenWRT Attitude Adjustment (r28247).
 
 
 
= Sonicwall =
 
== 0.32 and below ==
 
If your Sonicwall device is acting as the DHCP server, you will need to perform the following steps:
 
 
 
#Login to your Sonicwall web admin interface
 
#Go to '''Network''' > '''DHCP Server'''
 
#Edit the DHCP Range where your client(s) reside
 
#Click the tab labeled '''Advanced'''
 
#Under "Network Boot Settings," configure the following options:
 
##Next Server: '''X.X.X.X'''  where X.X.X.X is the IP of your FOG server
 
##Boot File: '''pxelinux.0'''
 
#Click '''OK''' to save
 
== 0.33 and up ==
 
If your Sonicwall device is acting as the DHCP server, you will need to perform the following steps:
 
 
 
#Login to your Sonicwall web admin interface
 
#Go to '''Network''' > '''DHCP Server'''
 
#Edit the DHCP Range where your client(s) reside
 
#Click the tab labeled '''Advanced'''
 
#Under "Network Boot Settings," configure the following options:
 
##Next Server: '''X.X.X.X'''  where X.X.X.X is the IP of your FOG server
 
##Boot File: '''undionly.kpxe'''
 
#Click '''OK''' to save
 
 
 
Note that the "Windows" DHCP Options 66 and 67 do not work in Sonicwall DHCP Server. You must use the fields provided by Sonicwall - Next Server and Boot File.[http://www.arizona-breast-cancer-specialists.com/brachytherapy/all-about-what-is-brachytherapy.html    Brachytherapy]
 
 
 
= pfSense v1.23 =
 
== 0.32 and below ==
 
If your pfSense device is acting as the DHCP server, you will need to perform the following steps:
 
 
 
#Login to your pfSense web admin interface
 
#Go to '''Services''' > '''DHCP Server'''
 
#Scroll Down to "Enable Network booting" Click the button labeled '''Advanced''' to "Show Network booting" options
 
##Check the box to "Enables network booting"
 
##Enter the IP address from the network boot server: '''X.X.X.X'''  where X.X.X.X is the IP of your FOG server
 
##Enter the filename used for network booting: '''pxelinux.0'''
 
#Click the '''Save''' button
 
== 0.33 and up ==
 
If your pfSense device is acting as the DHCP server, you will need to perform the following steps:
 
 
 
#Login to your pfSense web admin interface
 
#Go to '''Services''' > '''DHCP Server'''
 
#Scroll Down to "Enable Network booting" Click the button labeled '''Advanced''' to "Show Network booting" options
 
##Check the box to "Enables network booting"
 
##Enter the IP address from the network boot server: '''X.X.X.X'''  where X.X.X.X is the IP of your FOG server
 
##Enter the filename used for network booting: '''undionly.kpxe'''
 
#Click the '''Save''' button
 
 
 
Note: You need both a filename and a boot server configured for this to work!
 
 
 
= Other DHCP Servers =
 
*[[Novell DHCP Server|Can I use my existing Novell DHCP Server?]]
 
*[[FOG with M0n0wall|Can I use my existing m0n0wall DHCP Server?]]
 
*[[Smoothwall School Guardian|Can I use my existing Smoothwall School Guardian DHCP Server?]]
 
*[[FOG with ipcop|Can I use my existing ipcop DHCP Server?]]
 

Latest revision as of 13:05, 23 April 2015

DHCP Settings

  • It is important to know that versions 0.32 and below use pxelinux.0 for option 67 in DHCP
  • For all versions 0.33 to current(1.3.0beta) use undionly.kpxe is generally recommended for option 67.
    • Other files that can be used are listed in your directory "/tftpboot"

Linux Based (ISC-DHCP)

Articles related to ISC-DHCP

BIOS and UEFI Co-Existence

ProxyDHCP with dnsmasq

FOG on a MAC

Fedora 21 Server#Verify Fedora DHCP config (if_using_DHCP)

Start/stop/enable/disable

Configure DHCP

FOG dnsmasq (ProxyDHCP)

  • You would use ProxyDHCP if you do not have access to your DHCP server, or are using a device that isn't capable of specifying option 066 and 067 (next server and file name). The most popular ProxyDHCP method with fog is dnsmasq. This article will walk you through that:
  • Not required unless you have an unmodifiable DHCP server/

Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server

Non-Linux DHCP

If you do not use FOG to provide DHCP services, the following sections will give some indication of settings for DHCP servers on various platforms.

Windows Server DHCP

  • Option 66
    • Windows 66.png
  • Option 67
    • Windows 67.png


Novell (Linux) Server DHCP

  • DHCP Overview from DNS/DHCP Console (Netware 6.5)
    • Novelldhcp.gif
  • Option 66
    • Novelloption66.gif
  • Option 67
    • Novelloption67.gif

Here is a link from Novell's website on how to setup their DHCP server: http://www.novell.com/coolsolutions/feature/17719.html

MAC Server DHCP

Use OS X Server app to install and utilize DHCP.

Use DHCP Option Code Utility to generate the code necessary.
https://docs.google.com/uc?id=0BwD4il5Z1G6fTmFFYU91bDNuRmc&export=download

One MUST generate the codes in order for PXE booting to work!
bootpd.plist is located in /etc/bootpd.plist

  • Option 66
    • MACOption66.png
  • Option 67
    • MACOption67.png


  • Sample bootpd.plist
    • This is a sample file DO NOT USE THIS IN YOUR ENVIRONMENT!!!! OS X Server app will generate most of this code for you, this example file is to show you the place where the generated code needs to be placed.
    • For Reference, your generated code should be placed between "dhcp_domain_search" and "dhcp_router"


  • Completed Bootpd.plist
    • MACbootpd.png

Other DHCP Configurations

Other DHCP Configurations