Configuration of DHCP Server in centos

# Configuration of DHCP Server
------------------------------
# Port Number:68
----------------
# Required RPMS:
----------------
dhcp-3.0.5-3.el5
dhcp-devel-3.0.5-3.el5
dhclient-3.0.5-3.el5

# Configuration Files:
----------------------
/usr/share/doc/dhcp-3.0.5

# Required Services and Daemons:
--------------------------------
dhcpd

# Configuration Steps:
----------------------
cd /usr/share/doc/dhcp-3.0.5
vi dhcpd.conf.sample
04 subnet 192.168.150.0 netmask 255.255.255.0 {
07 option routers 192.168.150.51;
08 option subnet-mask 255.255.255.0;
10 option nis-domain "redhat"; -If NIS Server is configured.
11 option domain-name "cms.com"; -If DNS Server is configured.
12 option domain-name-servers 192.168.150.51;
21 range dynamic-bootp 192.168.150.51 192.168.150.71;
:wq
cp dhcp.conf.sample /etc/dhcpd.conf

# Check out the network settings
/etc/hosts
/etc/sysconfig/network

# Turn on the services
chkconfig dhcpd on
service dhcpd restart

# Client Side:
--------------
netconfig
[*] Use dynamic IP configuration (BOOTP/DHCP)
service network restart
ifconfig eth0

# If client is Microsoft Windows, then use following command to assign IP dynamically on linux machine.
route add -host 255.255.255.255 dev eth0

Comments

Popular Posts

Install and configure rsyslog Centralized logging server in CentOS

How to fix postfix/smtp Network is unreachable error

Could not join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli