DHCP It will provide the IP to there client system. First we set the IP for the DHCP server and then set the IP range in the configuration file in rhel5.system: Step 1: Configuration DHCP rhel5
install dhcp package #yum install dhcp
Step 2: copy sample configuration file to /etc/dhcpd.conf
#cp /usr/share/doc/dhcp3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Step 3: edit dhcp configuration file
#vim /etc/dhcpd.conf
ddnsupdatestyle none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnetmask 255.255.255.0;
option domainname "leena.com";
option domainnameservers 192.168.0.10;
defaultleasetime 21600;
maxleasetime 43200;
range 192.168.0.1 192.168.0.20;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
#fixedaddress 192.168.0.1;
#}
}
Step 4:
start dhcp service
#chkconfig dhcpd on
#service dhcpd start
Client Side:
Step 5:
enable dhcp in client side
#neattui
#service network restart
Step 6:
check the ip address of machine
#ifconfig
install dhcp package #yum install dhcp
Step 2: copy sample configuration file to /etc/dhcpd.conf
#cp /usr/share/doc/dhcp3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Step 3: edit dhcp configuration file
#vim /etc/dhcpd.conf
ddnsupdatestyle none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnetmask 255.255.255.0;
option domainname "leena.com";
option domainnameservers 192.168.0.10;
defaultleasetime 21600;
maxleasetime 43200;
range 192.168.0.1 192.168.0.20;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
#fixedaddress 192.168.0.1;
#}
}
Step 4:
start dhcp service
#chkconfig dhcpd on
#service dhcpd start
Client Side:
Step 5:
enable dhcp in client side
#neattui
#service network restart
Step 6:
check the ip address of machine
#ifconfig
0 Comments