Dynamic Host Configuration Protocoal (DHCP) - DR Ahmedabad
Dynamic Host Configuration Protocoal-DR Ahmedabad
Tetra Information Services Pvt. Ltd.
New Delhi
Overview
Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses and other network configuration information (subnetmask, broadcast address, etc) to computers on a network. A client configured for DHCP will send out a broadcast request to the DHCP server requesting an address. The DHCP server will then issue a "lease" and assign it to that client. The time period of a valid lease can be specified on the server. DHCP reduces the amount of time required to configure clients and allows one to move a computer to various networks and be configured with the appropriate IP address, gateway and subnet mask. For ISP's it conserves the limited number of IP addresses it may use. DHCP servers may assign a "static" IP address to specified hardware. Microsoft NetBios information is often included in the network information sent by the DHCP server.
Server
IP : 172.22.10.60
Hostname : pbdrntp.pbifmsiwdms.pjb
Installation
# yum install dhcp*
Server Configuration
Copy the sample configuration file from
/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample
# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
# vim /etc/dhcp/dhcpd.conf
Add these lines
# Default DNS to be used by DHCP
option domain-name-servers 172.22.10.53;
# Specify a WINS server for MS/Windows clients.
option netbios-name-servers 172.22.10.60;
# Range of IP addresses to be issued to DHCP clients
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.200;
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.200;
subnet 192.168.70.0 netmask 255.255.255.0 {
range 192.168.70.100 192.168.70.200;
subnet 172.22.10.0 netmask 255.255.255.0 {
range 172.22.10.100 172.22.10.200;
Starting the service
# /etc/init.d/dhcpd start ; chkconfig dhcpd on
Test configuration file for errors with the following command: #/etc/rc.d/init.d/dhcpd configtest
Syntax: OK