I create a dhcp server with Linux I use CentOS 4.3 , I use Linux one because the dhcp under win 2003 not work , It always fail when try to get authorize from the Active directory at Holland.
To start we must check whether dhcpd installed at your linux machine.
- after you sure the dhcpd installed on your machine
- then run "cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf" , this command will copy the example configuration file and replace the configuration file, this is ok because the original file contain nothing. just few lines of comment.
- after that edit the dhcpd.conf file, here the example of my configuration file :
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.1.254; #default-gateway
option subnet-mask 255.255.255.0; #netmask
option domain-name "tng.loc"; # domain-name
option domain-name-servers 192.168.1.1, 192.168.1.2; # DNS servers
range 192.168.1.40 192.168.1.1.239; # IP range
default-lease-time 21600;
max-lease-time 43200;
# Host with fixed address , this is actually the dhcp server address
host lnxsrv {
hardware ethernet 00:A0:C9:71:BD:45;
fixed-address 192.168.1.150;
}
}
- after that start the dhcpd service "/sbin/service dhcpd start"
This dhcp server work with windows client all the computer here use windows xp
No comments:
Post a Comment