RE: SUSPECT: Dhcp / Dhcp-relay question
- From: <A.Fadyushin@xxxxxxxxxxxx>
- Date: Thu, 30 Nov 2006 17:49:00 +0300
DHCP server must be configured to serve at least all networks in which
it hav its interface addresses - in the simplest case its configuration
contain empty 'subnet' statement for the interface on which there are no
clients and the server "serves" that network by ignoring DHCP requests
from that interface. So you have the declaration for 192.168.129.0.
If you want to allow DHCP server to serve two or more networks from the
same network interface, you should use the 'shared-network' declaration
for all such networks, i.e.:
shared-network "name" {
subnet 192.168.129.0 netmask 255.255.255.0 {
<subnet parameters>
}
subnet the.ip.of.my.home netmask 255.255.255.240 {
<subnet parameters>
}
}
I this case the server will serve requests coming from 'eth0' (in
network 192.168.129.0) giving to clients the addresses declared in
either of subnet declarations (at the server's option) - in this example
it will be address for subnet of the.ip.of.my.home because declaration
for subnet 192.168.129.0 is empty.
Alexey Fadyushin
Brainbench MVP for Linux.
http://www.brainbench.com
-----Original Message-----Time
From: fedora-list-bounces@xxxxxxxxxx [mailto:fedora-list-
bounces@xxxxxxxxxx] On Behalf Of Guillermo Garron
Sent: Thursday, November 30, 2006 5:49 AM
To: For users of Fedora
Subject: SUSPECT: Dhcp / Dhcp-relay question
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
option local-wpad "http://10.1.1.1/proxy.pac\n";are."
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
(Using FC5, CentOS4.4 and Ubuntu 6.06)
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Prev by Date: Re: Font paths
- Next by Date: FC6: how to disable puplet
- Previous by thread: Rpm download
- Next by thread: FC6: how to disable puplet
- Index(es):
Relevant Pages
|
|