Dhcp / Dhcp-relay question
Guillermo Garron
guillermo.fedora at gmail.com
Thu Nov 30 02:48:34 UTC 2006
Hi,
I have a network at my office where i have a DHCP server, i have also
another small network at home, where my ADSL CPE can act as a DHCP
server o DHCP relay,
When acting as Server it gives the clients itself as DNS server (but
it is a bad DNS server) so I wanted to use the server at my office to
lease address trough my CPE working as dhcp-relay.
Ok,
the server at my office has to NICs
eth0 connected to the internet, and eth1 to my private network
10.1.1.0/24
My dhcpd.conf file is as follows.
ddns-update-style interim;
ignore client-updates;
authoritative;
option local-wpad code 252 = text;
subnet 10.1.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 10.1.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.1.1.255;
option nis-domain "foo.com";
option domain-name "foo.com";
option domain-name-servers 166.114.152.10, 4.2.2.2;
option time-offset 0; # Eastern Standard Time
option local-wpad "http://10.1.1.1/proxy.pac\n";
option netbios-name-servers 10.1.1.1;
range 10.1.1.30 10.1.1.50;
ddns-update-style none;
default-lease-time 604800;
max-lease-time 252000;
}
subnet 192.168.129.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}
When i tried to introduce here the range of the my home, following the
same model as above.
subnet the.ip.of.my.home netmask 255.255.255.240
{
etc. etc.
}
i got an error saying that, there no range configured for eth0 so
ignoring request coming to that NIC.
is this possible to do? or i am trying to do something not possible.
best regards.
Guillermo.
--
Guillermo Garron
"Linux IS user friendly... It's just selective about who its friends are."
(Using FC5, CentOS4.4 and Ubuntu 6.06)
More information about the fedora-list
mailing list