S. H. Patel
0 is nothing but maths starts from 0 so work hardDhcp In Redhat Linux 5
@ Setup a Dhcp Server
1. First Copy all the folowing lines in /etc/dhcpd.conf
=================================================
ddns-update-style interim;
ignore client-updates;
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
subnet 192.168.1.0 netmask 255.255.255.0{
option routers 192.168.1.1;
range 192.168.1.50 192.168.1.200;
option subnet-mask 255.255.255.0;
# option domain-name-servers 202.54.10.2, 203.197.12.30;
# option domain-name-servers 202.54.10.2, 203.197.12.30;
option domain-name-servers 202.54.10.2, 203.197.12.30;
option time-offset -18000; # Eastern Standard Time
default-lease-time 60;
max-lease-time 60;
max-lease-time 60;
}
==============================================================
Change in above settings as per your network.
==============================================================
if you want to give fixed ip address to particular pcs then add the following lines for each pc in above file under “max-lease-time 60; ” option
host ns4 {
hardware ethernet 00:14:5E:20:63:0B;
fixed-address 192.168.1.26;
}
//