Powered By Blogger

Thursday, 27 June 2013

DHCP


Dynamic Host Configuration Protocol
DHCP is use for to provide the dynamic IP address and other network configuration such as getway address, DNS address  to host connected in the network.

                        Package = dhcp
                        Deamon = dhcpd
                        Port number = UDP 67 for dhcp server , 68 for dhcp clients
                        Configuration file = /etc/dhcp/dhcpd.conf

Configuration
                        # /etc/dhcp/dhcpd.conf
if you did not see any content in the file then copy all configuration content from the sample file. for this
                         # cp -p /usr/lib/dhcpd/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
edit /etc/dhcp/dhcpd.conf file
                         1) give here network address and subnet mask
                         2) give here server IP address NIS Domain, Domain and DNS domain name if you have.
                         3) after that give the range of IP you want to use in the network.
                         4) you can also reserve IP for future use
                         5) at last of file you can spicify the IP address for perticulre MAC address.
after that save and exit from the file and restart the DHCP service.
                          #service dhcpd restart 
On client 
 set automatically IP address under the LAN card property.
                           #dhclient ( for requesting the IP from server)



No comments:

Post a Comment