DHCP Server


configuration file/etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

option subnet-mask 255.255.255.0;


option domain-name "training.com";


range dynamic-bootp 192.168.1.1 192.168.1.125;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host sys1 {
next-server sys1.training.com;
hardwareethernet 12:34:56:78:AB:CD;
fixed-address 192.168.1.50;
}


host sys2 {
next-server sys2.training.com;
hardwareethernet 12:34:56:78:AB:CD;
fixed-address 192.168.1.51;
}
}


Services:
servicedhcpd restart

check the ip addresses in the client machines network whether statically or dynamically


 


Another articles: