Multiple DHCP Server configuration in a single LAN

Rajiv Rajaian rajiv.grid at gmail.com
Thu Mar 27 11:58:29 UTC 2008


Hi all
I have configured DHCP server in my machine connected to LAN which is having
Scientific Linux OS
dhcp-3.0.1-12_EL.i386 is the version I've configured
Also there is one DHCP server configured with windows OS in my LAN

Here is my /etc/dhcpd.conf
ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;
lease-file-name "/var/lib/dhcp/dhcpd.leases";
authoritative;
log-facility local7;
subnet 10.2.0.0 netmask 255.255.255.0 {
  range 10.2.0.200 10.2.0.250;
  option subnet-mask 255.255.255.0;
        option domain-name-servers 10.2.0.43;
  option domain-name "virtualnode03.grid";
  option routers 10.2.0.43;
  option broadcast-address 10.2.0.255;
   default-lease-time 600;
  max-lease-time 7200;
}

Now all the dhcp  client requests are acquiring Ip address from the Windows
DHCP Server.
Is there any possiblity to have the multiple DHCP Servers in a single LAN ??
Whether I ve to do any other configuration in client machine so that i ve to
request ip address explicitly to the Linux DHCP server?

Here is my client machine's(g151.grid) network configuration

[root at g151 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

When I restart my network configuration using  "service network restart " .
Ip is assigned from my windows DHCP Server

[root at g151 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:29:EA:03
          inet addr:192.168.100.76  Bcast:192.168.100.255  Mask:
255.255.255.0
          inet6 addr: fe80::216:3eff:fe29:ea03/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:58 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4831 (4.7 KiB)  TX bytes:1194 (1.1 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:118 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10013 (9.7 KiB)  TX bytes:10013 (9.7 KiB)

Also in my Linux DHCP Server I got the following /var/log/messages

[root at virtualnode03 ~]# tail /var/log/messages
Mar 26 14:33:17 virtualnode03 dhcpd: dhcpd startup succeeded
Mar 26 14:33:19 virtualnode03 dhcpd: DHCPINFORM from 192.168.100.51 via
eth0: unknown subnet 0.0.0.0
Mar 26 14:33:20 virtualnode03 dhcpd: DHCPINFORM from 192.168.100.54 via
eth0: unknown subnet 0.0.0.0
Mar 26 14:33:22 virtualnode03 dhcpd: DHCPINFORM from 192.168.100.51 via
eth0: unknown subnet 0.0.0.0
Mar 26 14:33:23 virtualnode03 dhcpd: DHCPINFORM from 192.168.100.54 via
eth0: unknown subnet 0.0.0.0
Mar 26 14:33:30 virtualnode03 dhcpd: DHCPREQUEST for 192.168.100.76 from
00:16:3e:29:ea:03 via eth0: wrong network.
Mar 26 14:33:30 virtualnode03 dhcpd: DHCPNAK on 192.168.100.76 to
00:16:3e:29:ea:03 via eth0
Mar 26 14:33:30 virtualnode03 dhcpd: DHCPDISCOVER from 00:16:3e:29:ea:03 via
eth0: network 10.2.0.0/24: no free leases
Mar 26 14:33:30 virtualnode03 dhcpd: DHCPREQUEST for 192.168.100.76 (
192.168.1.100) from 00:16:3e:29:ea:03 via eth0: wrong network.
Mar 26 14:33:30 virtualnode03 dhcpd: DHCPNAK on 192.168.100.76 to
00:16:3e:29:ea:03 via eth0


Is there any thing else I've to configure.. My requirement is to get the ip
address assigned from Linux DHCP Server ..Please Help me by giving your
valuable suggesstions

Thanks in advance
Rajiv.R
Porject Associate,
CARE,MIT,
Anna university.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20080327/d8dab3e7/attachment.html>


More information about the dhcp-users mailing list