greetings,
some update, following your instruction, thanks againโฆ
1.FGT configuration
config system dhcp server
edit 1
set dns-service default
set default-gateway 10.0.0.136
set next-server 10.0.0.140
set netmask 255.255.255.0
set interface "internal"
config ip-range
edit 1
set start-ip 10.0.0.110
set end-ip 10.0.0.190
next
end
set filename "undionly.kpxe" /* been tested with the value of undionly.kpxe or ipxe.kpxe or ipxe.efi */
set option1 67 '0A00008C'
set option2 66
config reserved-address
edit 1
set ip 10.0.0.140
set mac 00:00:00:00:00:00
next
end
next
end
- FGT is functioning well as DHCP server all hosts are receiving the correct IP and able access to the internet
- FOG DHCP server role has been uninstalled (without dependent packages)
sudo apt-get remove isc-dhcp-server
- DNSMasq is been installed
sudo apt-get install dnsmasq
- chekconfig command is no longer in use under Ubuntu 16.04.2 LTS
the equivalent command is update-rc.d
fogadmin@fog-srv:~$ sudo update-rc.d dnsmasq on
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
fogadmin@fog-srv:~$ sudo update-rc.d dnsmasq on^C
fogadmin@fog-srv:~$ /etc/init.d/dnsmasq start
[....] Starting dnsmasq (via systemctl): dnsmasq.service==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'dnsmasq.service'.
Authenticating as: fogadmin,,, (fogadmin)
Password:
==== AUTHENTICATION COMPLETE ===
. ok
fogadmin@fog-srv:~$
- ltsp.conf file wasnt exsist on that directory to i just create and paste the content with the change of IP_ADDRESS
drwxr-xr-x 2 root root 4096 ืืื 13 05:20 .
drwxr-xr-x 133 root root 12288 ืืื 11 19:26 ..
-rw-r--r-- 1 root root 1429 ืืื 11 19:41 ltsp.conf
-rw-r--r-- 1 root root 202 ืกืคื 27 2016 network-manager
-rw-r--r-- 1 root root 211 ืืจืฅ 28 03:22 README
# Don't function as a DNS server:
port=0
# Log lots of extra information about DHCP transactions.
log-dhcp
# Set the root directory for files available via FTP.
tftp-root=/tftpboot
# The boot filename, Server name, Server Ip Address
dhcp-boot=undionly.kpxe,,10.0.0.140
# Disable re-use of the DHCP servername and filename fields as extra
# option space. That's to avoid confusing some old or broken DHCP clients.
dhcp-no-override
# inspect the vendor class string and match the text to set the tag
dhcp-vendorclass=BIOS,PXEClient:Arch:00000
dhcp-vendorclass=UEFI32,PXEClient:Arch:00006
dhcp-vendorclass=UEFI,PXEClient:Arch:00007
dhcp-vendorclass=UEFI64,PXEClient:Arch:00009
# Set the boot file name based on the matching tag from the vendor class (above)
dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,,10.0.0.140
dhcp-boot=net:UEFI,ipxe.efi,,10.0.0.140
dhcp-boot=net:UEFI64,ipxe.efi,,10.0.0.140
# PXE menu. The first part is the text displayed to the user. The second is the timeout, in seconds.
pxe-prompt="Booting FOG Client", 1
# The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
# Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
# This option is first and will be the default if there is no input from the user.
pxe-service=X86PC, "Boot to FOG", undionly.kpxe
pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi
pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi
dhcp-range=10.0.0.140,proxy
- dnsmasq -v
fogadmin@fog-srv:/etc/dnsmasq.d$ dnsmasq -v
Dnsmasq version 2.75 Copyright (c) 2000-2015 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
This software comes with ABSOLUTELY NO WARRANTY.
Dnsmasq is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2 or 3.
Additional method:
I update the BIOS firmware on most pcโs, try both UEFI enable/disable or choose legacy mode
Hosts now getting IP only from FGT (act as a dhcp server)
the output from Hosts at the moment is:
it was long
thanks in advance,
Kpax