DHCP SERVER IN LINUX
DHCP SERVER IN LINUX
DHCP (Dynamic Host Configure Protocol):-Dhcp used to configure a host Ip address subnet mask, gateway & Dns (automatically dynamically) .Port no 67 & 68 used by Dhcp -68 if used for client process. -67 is used for server offer.
#nano /etc/dhcp/dhcpd.conf
subnet 192.168.171.0 netmask 255.255.255.0 {
range 192.168.171.2 192.168.171.254;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name “localhost.localdomain”;
option routers 192.168.171.163;
option broadcast-address 192.168.171.255;
default-lease-time 600;
max-lease-time 7200;
}
host localhost.client1.com {
hardware ethernet 00:0c:29:c6:20:93;
fixed-address 192.168.171.110;
}
# service dhcpd restart
# service dhcpd status
by kaygranux
linux dhcp server