1. Introduction
This guide covers installing DHCP Turbo on Linux.
If any step fails, do not skip the step or force the installation of any rpm package. An installation that has unmet dependencies will not operate correctly, and manual intervention will be required to complete the first time initialization process. |
2. Install the OS
Install one of the supported operating systems.
3. Update the OS
Ensure that your operating system is fully updated with this command:
$ sudo yum update
4. Install Extra Required Packages
The Firebird database requires xinetd and version 3.3 of the standard C++ library. Install them with this command:
$ sudo yum install xinetd
$ sudo yum install compat-libstdc++-33
5. Download Required Packages
Pick the section below that corresponds to your operating system and hardware architecture, and download all of the packages for that section.
5.1. RHEL5 / Centos5 i686
5.2. RHEL5 / Centos5 x86_64
6. Install the database
Use the command below to install the database. If this step fails, double check that you have compat-libstdc++-33 installed.
sudo rpm -ivh Firebird*.rpm
7. Increase Database Connections
The default installation of Firebird does not allow enough database connections through
xinetd. To remedy this, add the following two settings to the /etc/xinetd.d/firebird
file (at the bottom, but before the ending '}' character):
instances = UNLIMITED
per_source = UNLIMITED
After modifying that file, restart xinetd:
$ sudo /etc/init.d/xinetd restart
8. Unzip the application
Extract the rpms with this command:
tar -xzvf dhcp_turbo*.tar.gz
This will create a dhcp_turbo directory with all the application RPMS.
9. Install the Packages
You can now install all of the packages with one command. In the dhcp_turbo directory, execute this command:
sudo rpm -ivh *.rpm
9.1. Manually creating a Firebird database account
If the RPM package installation failed to create a Firebird database account for the DHCP server, you can create the required account manually with the following steps:
First check to see if there’s a DHCPT account in Firebird:
$ sudo grep ISC_USER /opt/firebird/SYSDBA.password
ISC_USER=sysdba
$ sudo grep ISC_PASS /opt/firebird/SYSDBA.password
ISC_PASSWD=pIRKQ8hV
$ sudo /opt/firebird/bin/gsec -display -user sysdba -password pIRKQ8hV | grep DHCPT
DHCPT 0 0
If this user doesn’t exist, run the command below, then check that the account exists as shown in the commands above:
$ sudo /opt/firebird/bin/gsec -add dhcpt -pw dhcpt -user sysdba -password pIRKQ8hV
10. Performance Note
There is a separate RPM available that provides a performance-enhanced Firebird client library. You should install this RPM if you are deploying into a network that expects to be able to extend 1,000 leases per second.
11. Check service startup
At this point you should check that the installed service is enabled for starting in runlevels 3 and 5:
$ chkconfig dhcptd
12. Start the services
The service is not started by default, so you must now start the service:
$ /etc/init.d/dhcptd start
13. Logging In
Your DHCP service is now ready for configuration. Launch the user interface on any machine and enter the host name or ip address of the DHCP server to log in.
14. Contact
Weird Solutions Box 101 18622 Vallentuna SWEDEN tel: +46 8 758 3700 email: info at weird-solutions.com Copyright© 1997-2015, Weird Solutions, Inc.