Urgent help :dhcp server

General support questions
Post Reply
pksnairg
Posts: 3
Joined: 2013/07/22 03:59:27

Urgent help :dhcp server

Post by pksnairg » 2014/04/24 07:16:20

Hi Team,

I am in the process of migrating out our dhcp server from rhel 4 to centOS 6.5 .i hv few queries and concerns for configuring the dhcp server ..


1- How do we define multiple host definition in centos dhcpd.conf as I have hundreds of nodes need to be assigned with fixed ip and I don’t want to give host name ..below host configuration,that is defining same hostname "host b1" multiple time in dhcpd.conf is working fine on rhel 4 ,but throwing error in centos 6.5 dhcp ..


#############
}

host b1 { hardware ethernet 00:50:56:98:4e:25;
}

host b1 { hardware ethernet 00:50:56:98:4e:25;
fixed-address 137.135.14.15;
}

host b1 { hardware ethernet 00:26:b9:30:49:d3;
}

host b1 { hardware ethernet 00:26:b9:30:49:d3;
fixed-address 137.135.118.10;
}

host b1 { hardware ethernet 00:d0:59:0d:f6:04;
}

host b1 { hardware ethernet 00:d0:59:0d:f6:04;
fixed-address 172.19.37.176;
}

###########




Error is as below

Apr 24 14:07:12 dhcp1 dhcpd: All rights reserved.
Apr 24 14:07:12 dhcp1 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 24 14:07:12 dhcp1 dhcpd: /etc/dhcp/dhcpd.conf line 37: host b1: already exists
Apr 24 14:07:12 dhcp1 dhcpd: }
Apr 24 14:07:12 dhcp1 dhcpd: ^
Apr 24 14:07:12 dhcp1 dhcpd: Configuration file errors encountered – exiting



2-i hv multiple dhcp server in my network ..do I need to enable dhcprelay on this new dhcp server ?

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Urgent help :dhcp server

Post by TrevorH » 2014/04/24 07:20:26

Unfortunately it would appear that the el4 dhcpd accepts invalid config files. Hostname entries must be unique. I don't see any way around that except manually fixing the config file to remove the duplicates.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pksnairg
Posts: 3
Joined: 2013/07/22 03:59:27

Re: Urgent help :dhcp server

Post by pksnairg » 2014/04/24 08:30:38

Hi TrevorH,

any alternate option ?as i have 1000+ devices mac entry and static ip addres need to updated in dhcpd.conf

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: Urgent help :dhcp server

Post by drk » 2014/04/24 08:35:58

Not really. It shouldn't take long :)

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Urgent help :dhcp server

Post by TrevorH » 2014/04/24 08:39:30

Judging by the example you posted, you'll only have a few hundred entries once you eliminate all those extras
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply