DHCP server and DHCP client in same box
Hello all. I'm running a DHCP server that listens on my wireless access point to provide internal network addresses to client computers. Then they are able to access my external interface through my shorewall. The problem is that DHCP does not want to start without a subnet declaration for the eth0 external interface, which is assigned via DHCP by my ISP. I have given it the current IP of the external interface in a subnet declaration just to shut it up and make it run, but the next time the IP changes, I'll have to update the DHCPD.conf, which I don't want to have to do all the time. Here are the contents of my current dhcpd.conf, including the interim subnet declaration
option domain-name-servers 65.24.7.3, 65.24.7.6;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.229;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}
subnet 65.189.128.0 netmask 255.255.252.0 {
}
Does anybody know how to make a subnet declaration for a segment that has a dynamic IP? Or, can I somehow circumvent this problem?
Thanks,
Danny
|