Sample dhcpd.conf
Below is a sample dhcpd.conf file. The dhcpd.conf file is used when loading software using a BootP/FTP server. The file below can be copied, modified and loaded into the /etc or /etc/dhcp directory (depending on OS version) of the server being used for loading the system software. The explanations set in the red font need to be deleted as they are not part of the file. The explanations in red are simply there to aid in understanding what each line represents.
The explanations below that are in parentheses need to be deleted before transferring the file to the /etc or /etc/dhcp directory.
Â
#################################################################
# File: dhcpd.conf
#################################################################
ddns-update-style ad-hoc;
# which logfile group... log to /var/log/messages
LogFile = messages;
allow bootp;
# declare global vender options
option Host_1010_Flag code 134 = signed integer 32;
option Host_1004_Flag code 134 = signed integer 32;
option Host_2020_Flag code 134 = signed integer 32;
#Calculate boot flag by adding values based on desired system attributes
#For a T1 system: add 0
#For an E1 system: add 2
#To boot from an FTP Server: add 0
#To boot from the SD card: add 32
# option routers is the same as the default gateway
option routers 10.129.36.1; (Default Gateway/Router for loading software)
option subnet-mask 255.255.255.0; (Default Gateway/Router Subnet Mask)
# subnet IP address usually default gateway address minus 1
subnet 10.129.36.0 netmask 255.255.255.0 (Subnet Address Usually Gateway/Router minus 1)
{
host IMG_CPU1_0
{
hardware ethernet 00:20:1C:13:10:63; (MAC Address of interface CTRL 0)
fixed-address 10.129.36.58; (IP Address being configured on CTRL 0 Port)
# ftp server name (IP Address of the LINUX PC running FTP)
next-server 10.129.36.53; (IP Address of BootP/FTP Server. Could be IP of VM or separate FTP server
# IMG bin file (software load)
filename "ftpBuilds/bdn2020_id0201.bin";
option Host_2020_Flag 2; (Configured Host Flag - T1 system using BootP/FTP to load software.)
}
host IMG_CPU1_1
{
hardware ethernet 00:20:1C:13:10:64; (MAC Address of interface CTRL 1) = (CTRL 0 + 1)
fixed-address 10.129.36.58; (IP Address being configured on CTRL 1 Port)
# ftp server name (IP Address of the LINUX PC running FTP)
next-server 10.129.36.53; (IP Address of BootP/FTP server that IMG 2020 will get its load from)
# IMG bin file (software load)
filename "ftpBuilds/bdn2020_id0201.bin";
option Host_2020_Flag 2; (Configured Host Flag - T1 system using BootP/FTP to load software.)
}
}
FTP Redundancy
The IMG 2020 supports redundant FTP Servers when downloading the system software for the case where one of the FTP Servers fails. In this case, the IMG 2020 can be configured to download the software from a second redundant FTP server. See diagram below.
As displayed in the diagram above, the IMG 2020 normally gets its software load from the FTP Server labeled BootP/FTP Server A. If BootP/FTP Server A fails then the IMG 2020 can get the load from BootP/FTP Server B. To achieve this, the bullets below need to be followed.
There must be a dhcpd.conf file configured on each BootP/FTP Server.
The next-server line of the dhcpd.conf file on BootP/FTP Server A contains the IP Address of BootP/FTP Server A.
The next-server line of the dhcpd.conf file on BootP/FTP Server B contains the IP Address of BootP/FTP Server B.
Both FTP Servers must be loading the exact same version of system software (.bin) and build number. Loading two different versions of software will cause unexpected results if a switchover occurs.