On Wed, 7 Jul 2004, Alexander Samad wrote:
> On Wed, Jul 07, 2004 at 07:34:23PM +1000, Simon Males wrote:
> >
> > I am trying to serve dhcp out of eth2, eth0 is my optus internet
> > connection. Can i specify in dhcp which interface to use?
> >
> > syslog:
> > Jul 7 18:18:01 erupt dhcpd: No subnet declaration for eth0
> > (211.30.175.xxx).
> > Jul 7 18:18:01 erupt dhcpd: Please write a subnet declaration in your
> > dhcpd.con
> > f file for the
> > Jul 7 18:18:01 erupt dhcpd: network segment to which interface eth0 is
> > attached
> > .
> > Jul 7 18:18:01 erupt dhcpd: exiting.
> >
> > # more /etc/network/interfaces
> > auto lo
> > iface lo inet loopback
> > auto eth0
> > iface eth0 inet dhcp
> > auto eth2
> > iface eth2 inet static
> > address 192.168.6.1
> > netmask 255.255.255.0
> >
> > # more /etc/dhcpd.conf
> > option subnet-mask 255.255.255.0;
> > default-lease-time 600;
> > max-lease-time 7200;
> >
> > subnet 192.168.6.0 netmask 255.255.255.0 {
> > range 192.168.6.10 192.168.6.20;
> >
> > }
> >
> If its debian look in /etc/defaults/dhcp3-server
Red Hat and Fedora use /etc/sysconfig/dhcpd
Pity we don't just patch dhcpd to include the interfaces it'll listen on
in its config file. Then we wouldn't need these crap, extra,
distro-specific files.
Mike
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html