On Thu, 8 Jul 2004 12:12 pm, Alexander Samad wrote:
> On Thu, Jul 08, 2004 at 10:44:18AM +1000, James Gray wrote:
> > 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;
> > >
> > >}
> >
> > I had a similar problem on my triple interface router/firewall box. It
> > wants a declaration for each interface, but I only provide DHCP on the
>
> strange my doesn't especially after I set the interface to listen on
I don't think I'm specifying a particular interface - it's the ISC DHCP 2.x
daemon I'm using on a Debian stable system. I'm also using the stoxk init
script. From what I've gathered on this thread, it seems the "liston on
only th[is|ese] interfaces?" logic was included with DHCPD3. *shrug*
Cheers,
James
--
Suddenly, Professor Liebowitz realizes he has come to the seminar
without his duck ...
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html