[Dnsmasq-discuss] Re: Simple config question (I hope)

Simon Kelley simon at thekelleys.org.uk
Thu Mar 1 17:43:13 GMT 2007


AJ Weber wrote:
> I have three NICs/interfaces in my server (eth0-2).  (IPCop Question
> coming)
> 
> I want to serve DHCP to eth0 and eth2 ONLY.
> 
> Thus, I've added the "except-interface=eth1" to the config.  That's
> probably what I want.

If you don't want to serve DNS on eth1 either, that's fine. If you want
DNS on eth1 (but not DHCP) then do

no-dhcp-interface=eth1

instead.

> 
> However, I want to serve 198.162.1.x addresses via DHCP to eth0.  I
> want to serve 192.168.2.x addresses to eth2.  (These interfaces have
> a static address in that range already.)
> 
> I see I can enter two different dhcp-range's into the config. 

Yes, do that.

> How do
> I tell it to serve the .1 subnet to eth0 and the .2 subnet to eth2?

There's no need, it all just works automagically.
> 
> The network-id thing is messing with my head.  Do I need to use that?

No, it will just work.


Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list