DHCP Reservation How To Setup Configure DHCP Reservation In Rhel5

DHCP server Reservation in rhel5 Check the mac address of Ethernet card
#ifconfig eth0 system1: install DHCP reservation in RHEL5
Step 1:install dhcp package
#yum install dhcp
Step 2:copy sample configuration file to /etc/dhcpd.conf
#cp /usr/share/doc/dhcp­3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Step 3:edit dhcp configuration file
#vim /etc/dhcpd.conf
ddns­update­style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnet­mask 255.255.255.0;
option domain­name "rhel5.com";
option domain­name­servers 192.168.0.10;
default­lease­time 21600;
max­lease­time 43200;
range 192.168.0.1 192.168.0.20;
host sys11 {
#enter the client machine mac address ex.00.a0.cc.3c.80.c5
hardware ethernet 00:a0:cc:3c:80:c5;
fixed­address 192.168.0.11;
}
}
Step 4:start dhcp service
#chkconfig dhcpd on;service dhcpd start
Sys11:
Step 5:enable dhcp in client side
#neat­tui
#service network restart
Step 6:check the ip address of machine
Finally setup Configure DHCP Server Reservation in rhel5 Successfully.

Post a Comment

0 Comments