Briefly before you get to the meat. I have IPTABLES working with static clients. I now would like to add dhcp server functionality to my Slackware box.
I have a slackware 9.1 install (no Xserver) that I want to use as a router/firewall. I have tested (and currently using) the IPTABLES firewall. The scripe used is in the link below. In this config I have edited my eth0 as my EXTIF using IP 192.168.2.230 (I have a wireless link to my neighbors access point for my Internet connection) and my INTIF is eth2 using IP 192.168.100.1 Other than these modified values, the IPTABLES script stock.
http://www.e-infomax.com/ipmasq/howt...2.4.X-STRONGER
For clearity, when my clients (win2K) are setup as static 192.168.100.x using 192.168.100.1 as the GW and 192.168.2.1 as the nameserver EVERYTHING WORKS.
I now want to add dhcp server funcionality to my slackware box. I have edited the /etc/dhcpd.conf file as follows
*****************start OF dhcpd.conf*****************
root@Joshua:~# cat /etc/dhcpd.conf
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
#These lines are for lease times and for update style.
#These do not need to be changed for normal operation
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
# Change the subnet mask to the subnet mask of your network
# In most cases for a small network it will be 255.255.255.0
option subnet-mask 255.255.255.0;
# Change this to the IP address of the computer that is connected to the internet
# In most cases this will be the same as the computer as this script is running on
option routers 192.168.100.1;
# Change this to the IP addresses of the primary and secondary
# DNS servers of your ISP (internet service provider)
option domain-name-servers 192.168.2.1, 66.193.174.2, 66.193.174.3;
# This is the range of IP address that will be given out. It.s best
# To use the 192.168.0.0 range as this is set aside for none internet networks
# This will hand out IPs address in the range of 192.168.0.10 to 192.168.0.255
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.100 192.168.100.140;
}
#The NIC with this MAC address will always get the same IP address 192.168.03
#host NAME_OF_HOST {
#host ds9 {
# NAME_OF_HOST should be changed to the name of that computer.
#hardware ethernet 00:07:95:A4

0:F7;
#fixed-address 192.168.100.101;
#}
*******************END OF dhcpd.conf********************
I then start the server as follows WITH NO ERRORS
*********************************************************
root@Joshua:/etc# /usr/sbin/dhcpd eth2
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
Listening on Socket/eth2/192.168.100.0/24
Sending on Socket/eth2/192.168.100.0/24
*********************************************************
When I set my win2k test client to dynamic dhcp the following error occurrs.
*********************************************************
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :
F:\>ipconfig /renew
Windows 2000 IP Configuration
The following error occurred when renewing adapter Local Area Connection: DHCP Server unreachable
*********************************************************
Why isnt my Slackware 9.1 box providing an IP to my clients?