Questions & Answers

5. Questions and Answers

  • 5.1 A simple DHCP configuration
  • 5.2 Setting up a Linux box for use of the FireLance server
  • 5.3 Setting up a win box for use of the FireLance server

5.1 It is easier to manage the IP addresses of machines in your network by using DHCP. Just setup a basic setup for a server on your network to dish out addresses on demand. This is accomplished by having the DHCP server running on your LAN. I will not go into great detail here but give a simple config file for a DHCP server. Copy and paste the following text into a file and save it to /etc/dhcpd.conf on the computer that will be the DHCP server.

option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name-servers ip_of_nameserver, ip_of_nameserver, ip_of_nameserver;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.1.50 192.168.1.250;
}

The ip_of_nameserver must be replaced with valid nameserver addresses (doesn’t have to be three of them, any number of them is fine).
Note the line option routers the ip address after this must be the IP of your FireLance server. If the DHCP server has more than one network card the startup script will have to be changed to only listen on one interface for DHCP requests. open up the server control script for the DHCP daemon in your favorite text editor and alter the line in the start clause of the script e.g.

% vi /etc/init.d/dhcpd
..... other lines
start() {
   # Start daemons.
   echo -n $"Starting $prog: "
   daemon /usr/sbin/dhcpd ${DHCPDARGSi} eth1
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd
   return $RETVAL
}
.... other lines
<esc>
:wq

Edit the daemon line and add the interface of your lan to the end of it as above (if your LAN is on eth1 of course). Now start the dhcpd server to make sure it can run. set it to come on at boot time.

5.2 Specify that each machine gets an IP address automatically (using DHCP). It is best to use the tools that are provided on the system. Chances are that the system is already set right anyway. On redhat style systems look in the system settings menu for the network icon. On debian style systems edit the /etc/network/interfaces file checkout man interfaces for a reference on how to setup this file. I am sure there is a better way than this, this is just how I do it.

5.3 In the control panel double click the network icon, double click tcp/ip and make sure Obtain an IP address automatically is checked. see below

windhcp