LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > prayag_pjs
User Name
Password

Notices


Rate this Entry

DHCP Setup

Posted 09-16-2010 at 07:14 AM by prayag_pjs
Updated 01-30-2012 at 08:16 AM by prayag_pjs

This document has been success fully implemented on Cantos5

DHCP

Quote:
IP:192.168.20.3
login : root
password:********
Quote:
OS: CentOS-5
Configuration settings:

Code:
#rpm -qa |grep -i dhcp
dhcpv6_client-0.10-33.el5
dhcpv6-0.10-33.el5
dhcp-3.0.5-3.el5
Code:
#yum -y intall dhcp* (if not already installed)
# vim /etc/dhcpd.conf

Code:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.20.0 netmask 255.255.255.0 {
# --- default gateway
        option routers                  192.168.20.1;
        option subnet-mask              255.255.255.0;
#       option nis-domain               "example.com";
#       option domain-name              "example.com";
        option domain-name-servers      192.168.20.3;
#       option domain-name-servers      59.144.127.16;
        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.20.1;
#       option netbios-name-servers     192.168.20.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;


        range dynamic-bootp 192.168.20.102 192.168.20.190;
        default-lease-time 86400;
        max-lease-time 604800;

        next-server 192.168.20.3;
# for PXE-boot
        filename "pxelinux.0";
 #for PXE-boot

# we want the nameserver to appear at a fixed address

        host host01.example.com
                {hardware ethernet 00:18:DE:09:18:88;
                  fixed-address 192.168.20.200;
}

# Fixed IP :mapping MAC to IP
        host host02.example.com
               {hardware ethernet 00:1D:92:DD:67:0D;
                  fixed-address 192.168.20.105;
                }
Code:
# /etc/init.d/dhcpd restart
# chkconfig dhcpd on
# pgrep dhcpd
Posted in DNS-DHCP
Views 1674 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration