Top Ad unit 728 × 90

Latest updates

recent

DHCP SERVER


#### TO CONFIGURE THE DHCP SERVER ####

'Step 1:-Install the package'
# yum install dhcp* -y

'Step 2:-Copy Sample Files Data into Main File'
# cd /usr/share/doc/dhcp*
# ls (to check)
# cp dhcpd.conf.example /etc/dhcp/dhcpd.conf

'Step 3:-Edit the M.C.F'
# vim /etc/dhcp/dhcpd.conf
Set the line no's & Do the changes from line no.47-53
(line no:47-networkaddress,48-ip range,49-dns ip,50-domain name,51-gateway,52-broadcast ip,53-time)
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.160 192.168.0.190;
option domain-name-servers 192.168.0.250;
option domain-name "ldap.abc.com";
option routers 192.168.0.254;
option broadcast-address 192.168.0.255;
default-lease-time 700;
:wq(save & quit the file)

'Step 4:-Restart the Service & Check Result'
# service dhcpd restart
# systemctl enable dhcpd.service

GO TO LINUX CLIENT:-

# dhclient -v (to get dynamic ip)
# ifconfig (to check dynamic ip)

IN THE CLIENT PC - DYNAMIC IP YOU WILL BE GETTING FROM REVERSE ORDER
FROM DHCP SERVER

'Step 5:-For the Dhcp Reservation'
# arp (client_pc_ip) to get the mac address
# arp 192.168.0.190 (for example)
Copy the MAC Address & Paste in M.C.F
# vim /etc/dhcp/dhcpd.conf
Go to line no.76 & paste mac address as given below
hardware ethernet 00:07:e9:00:02:69;
Go to line no.77 & Reserve the Ip as given below
fixed-address 192.168.0.160;
:wq(save & quit the file)
# service dhcpd restart

TO CHECK THE RESULT - GO TO THE PARTICULAR MAC ADDRESS CLIENT:-
# dhclient -v (run this command)
# ifconfig (to check reserved ip)
DHCP SERVER Reviewed by Unknown on 3:55 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.