yum install dhcpModify dhcpd.conf
vi /etc/dhcpd/dhcpd.conf
or
vi /etc/dhcpd.conf
#A sample of dhcpd.conf file
ddns-update-style interim;
ignore client-updates;
subnet 10.0.0.0 netmask 255.0.0.0 {
option routers 10.0.0.1;
option subnet-mask 255.0.0.0;
option domain-name "csie.ntu.edu.tw";
option domain-name-servers 8.8.8.8;
default-lease-time 864000;
max-lease-time 1728000;
#Static binding
host delta_00_16_E6_4F_7E_D3 {
hardware ethernet 00:16:E6:4F:7E:D3;
fixed-address 10.7.0.80;
}
#PXE options
next-server 10.0.0.1;
filename "pxelinux.0";
range dynamic-bootp 10.0.1.0 10.0.1.254;
}
Don't forget you must have an IP in the subnet.
Start dhcp service and enjoy it.
No comments:
Post a Comment