Saturday, August 29, 2009

DHCP Server Configuration in Linux

How to configure DHCP server on Linux

what are the package need to installed

dhcp-devel-3.0.5-3.el5
dhcpv6_client-0.10-33.el5
dhcp-3.0.5-3.el5
What is Config File

/etc/dhcpd.conf
What is service need to be started

Service dhcpd restart
DHCP Server configuration

[root@bgpxetest ~]#vi /etc/dhcpd.conf
ddns-update-style interim;
subnet 11.0.0.0 netmask 255.0.0.0 {
range 11.0.0.50 11.0.0.254;
default-lease-time 3600;
max-lease-time 4800;
option subnet-mask 255.0.0.0;
option router 11.0.0.1;
option domain-name "pxe_text";
option name-server 11.0.0.20;
option time-offset -8;
}
host bg-qa-189 {
next-server 11.0.0.34; (TFTP server IPAddress)
hardware ethernet 00:16:88:07:03:01;
fixed-address 11.0.0.189;
option host-name "suse_189";
filename "pxelinux.0";
}
:wq
[root@bgpxetest ~]#service httpd restart
Note:Make sure you have configure static IP address on your local interface same range what
you have mentioned in DHCP server

No comments:

Post a Comment