[clug] Multihead DHCP/NAT
David Cottrill
cottrill.david at gmail.com
Sun Nov 23 23:10:14 GMT 2008
Thanks,
that is pretty much as it was, but the 'allow unknown-clients and
max-message-size' were new to me, and I was using 192.168.0.0 and
192.168.1.0 as the subnets.
.
Magically, the DHCP started working while I was asleep - guess it and
the demonic Vista client just needed some time to settle their
differences.
Now I have to sort out IP tables so that the new subnet gets internet.
I was using 'option routers 192.168.0.1' globally and hoping the
kernel routing table would sort the mess out for me, but no joy - DNS
works, ping sent, timeout.
Is there a simple solution other than specifying the destination
subnets through iptables.?
Thanks again
David
11/23/08, Andrew Janke <a.janke at gmail.com> wrote:
> On Sun, Nov 23, 2008 at 8:40 PM, David <cottrill.david at gmail.com> wrote:
>
>> The obvious solution was to jam another NIC into the laptop, but now I
>> can't
>> convince the new NIC to work with DHCP - anything here I should be looking
>> for?
>
>> I've configured /etc/default/dhcp for both cards,
>
> dont you mean: /etc/default/dhcp3-server (presuming you are fiddling
> with debian/ubuntu type of system)
>
>> added the subnet to
>> dhcp.conf, set the new card to a static address that corresponds to the
>> new
>> subnet, restarted dhcp (and later the whole box) and I've got... nothing
>> to
>> show for it.
>
> so /etc/dhcp3/dhcpd.conf looks something like this:? (note the
> 10.10.100.? and 10.10.101.? subnets).
>
> ---
> # /etc/dhcp3/dhcpd.conf
>
> # I am the grand poo-bar (fear me)
> authoritative;
>
> # Where to put the noise
> log-facility syslog;
>
> # do nothing on this subnet
> subnet x.y.z.0 netmask 255.255.255.0 { }
>
> # local subnet
> subnet 10.10.100.0 netmask 255.255.255.0 {
> default-lease-time 1200;
> max-lease-time 7200;
>
> option dhcp-max-message-size 2048;
>
> option subnet-mask 255.255.255.0;
> option routers 10.10.100.1;
> option broadcast-address 10.10.100.255;
>
> allow unknown-clients;
> range 10.10.100.200 10.10.100.230;
> }
>
> # local subnet
> subnet 10.10.101.0 netmask 255.255.255.0 {
> default-lease-time 1200;
> max-lease-time 7200;
>
> option dhcp-max-message-size 2048;
>
> option subnet-mask 255.255.255.0;
> option routers 10.10.101.1;
> option broadcast-address 10.10.101.255;
>
> allow unknown-clients;
> range 10.10.101.200 10.10.101.230;
> }
>
>
> --
> Andrew Janke
> (a.janke at gmail.com || http://a.janke.googlepages.com/)
> Canberra->Australia +61 (402) 700 883
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>
More information about the linux
mailing list