[clug] Multihead DHCP/NAT
Andrew Janke
a.janke at gmail.com
Sun Nov 23 09:46:17 GMT 2008
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
More information about the linux
mailing list