[NTLUG:Discuss] dhcpd server configuration

Womer Scott at Womer.Com
Sun Aug 13 07:36:47 CDT 2000


First off... you have two NICs right?   The public NIC gets it's address via
the ISPs dhcpd, but the private NIC needs to be assigned by you with an
address from your private domain.  Assuming your public NIC is eth0 and the
private is eth1...

/etc/sysconfig/network-scripts/ifcfg-eth0 will look something like:

DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"

/etc/sysconfig/network-scripts/ifcfg-eth1 will look something like:

DEVICE="eth0"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"
ONBOOT="yes"
BOOTPROTO="none"

/etc/dhcpd.conf will look something like:

subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.100 192.168.1.200;
    default-lease-time 999999;
    max-lease-time 9999999;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.1.255;
    etc...
    etc...    ("man dhcpd.conf" for details)
    etc...
}

then make sure, as Jay said, specify the interface in your rc scripts to
point dhcpd to your private NIC, in /etc/rc.d/init.d/dhcpd, look for the
line with the word "daemon" in it, and add your private NIC to the end of
the line so it looks something like:

    daemon /usr/sbin/dhcpd eth1

I've done this a hundred times (at least), so if you still get subnet
declaration error, then I seriously doubt it's a dhcpd issue.  Instead...
you'll need to be looking elsewhere for the root cause, like the permissions
of your files, whether or not you actually have a functioning private
network interface.


Thanks,
Scott Womer


----- Original Message -----
From: "Egome" <egome at ticnet.com>
To: <discuss at ntlug.org>
Sent: Saturday, August 12, 2000 8:22 PM
Subject: Re: [NTLUG:Discuss] dhcpd server configuration


> dhcpd won't start like that.  It still screams about wanting me to define
a
> subnet declaration!
>
> I don't know how to declare a subnet value for a subnet that receives its
> OWN address via a dhcp server.
>
> -----Original Message-----
> From: Jay Urish <j at dalwan.net>
> To: discuss at ntlug.org <discuss at ntlug.org>
> Date: Thursday, July 27, 2000 10:14 AM
> Subject: Re: [NTLUG:Discuss] dhcpd server configuration
>
>
> >just tell it to use the clean nic when you start.. I.e dhcpd eth1 -lf
> >dhcpd.leases
> >
> >just have info in your dhcpd.conf file on the clean subnet.
> >
> >
> >At 11:23 PM 7/26/00 , you wrote:
> >>I want to configure a DHCP server to hand out IP addresses to my private
> >>network, but the public NIC get's it's IP DSL address from a DHCP
server.
> >>
> >>How can I configure the dhcpd.conf file with info on BOTH
subnets....when
> I
> >>don't even KNOW what the IP address is going to be??  DHCPD doesn't want
> to
> >>start unless there is a subnet declaration for each NIC!
> >>
> >>
> >>
> >>
> >>_______________________________________________
> >>http://ntlug.org/mailman/listinfo/discuss
> >
> >
> >Jay Urish
> >Network Engineer - Dallas Wide Area Networking L.L.C
> >www.dalwan.net
> >
> >
> >_______________________________________________
> >http://ntlug.org/mailman/listinfo/discuss
> >
>
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss





More information about the Discuss mailing list