Click to See Complete Forum and Search --> : dhcpd.conf


mychl
03-16-2002, 04:29 PM
I"ve got 2 NICs installed, one to my hub, the other on my cable modem.

How can I set my dhcpd.conf file to NOT need a subnet identifier for my external NIC.

TIA

MIke

gwpritch
03-16-2002, 06:20 PM
Originally posted by mychl:
<STRONG>I"ve got 2 NICs installed, one to my hub, the other on my cable modem.

How can I set my dhcpd.conf file to NOT need a subnet identifier for my external NIC.

TIA

MIke</STRONG>

You shouldn't need a subnet for your external cable connection. However the dns for your isp needs to be identified in resolv.conf

Here's my dhcpd.conf:

ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
# default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option domain-name "homelan.org";
option domain-name-servers 192.168.0.1;

range dynamic-bootp 192.168.0.16 192.168.0.253;
default-lease-time 21600;
max-lease-time 43200;
}

jscott
03-16-2002, 10:38 PM
Originally posted by gwpritch:
<STRONG> However the dns for your isp needs to be identified in resolv.conf
</STRONG>

You'd be better off just doing caching DNS. See the chroot jail at linuxdoc.org for a cool way to do this safer.

Also you can run dhcpd on just one interface

eg. from /etc/rc.d/rc.inet2

/usr/sbin/dhcpd -cf /etc/dhcpd.conf eth1