Professional Documents
Culture Documents
5
DHCP Server is used to distribute IP addresses to the clients in your
network. DHCP stands for Dynamic HostConfiguration Protocol. It
reduces the work burden to a system admin if he have to assign IP
addresses manually to more than 100+ systems.
Installation
To install DHCP server on CentOS 6.5, enter the following command:
Step1: yum install dhcp -y
Step2: First, we have to assign which interface you want your DHCP
server to run on. Let us assigned on interface eth0.
To do that, follow the below command.
vi /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=eth0 ## Assign the network interface
Save and close the file.
}
[...]
If you want to assign a fixed IP address to your client, you should
enter its MAC id and the IP address in the following directive. For
example, I want to assign a fixed IP address 192.168.0.6 to
linuxclient, hence I modified the following directive as shown below.
[...]
hostlinux-client {
hardwareethernet 00:22:64:4f:e9:3a;
fixed-address 192.168.0.6;
}
[...]
After making all the changes, save and close the file.
Step5: Now, start the dhcpd service and make it to start automatically
on every reboot.
servicedhcpd start
chkconfigdhcpd on