DHCP SERVER
DHCP - Dynamic Host Configuration Protocol
Port No. - 67,68
package - dhcpd
deamon - dhcpd
role - provides the dynamic ip add. to all the LAN. P.C,
-----------------------------------------------------------------------------------
( Note : - Before configure the 'DHCP' Server set the static IP in the system on which we are going to configure DHCP server )
#vim /etc/sysconfig/network-script/ifcfg-eth0
BOOTPROTO = static
IPADDR = 192.168.0.1
NETMASK = 255.255.255.0
:wq [ after this conf. save the file and quit ]
----------------------------------------------------------------------
step 1. Install the package 'dhcpd'
#yum install dhcpd
(copy the the conf. file from /user/share/doc/dhc-4.1.1/dhcpd.conf.sample to /etc/dhcpd/dhcpd.conf )
step 2. #cp /usr/shar/doc/dhcp-4.1.1/dhcp.conf.sample /etc/dhcp/dhcpd.conf
overwrite ? yes
[ Nonte:- This particular subnet declaration specifies a default lease time of 600 seconds (10 min) and a maximum lease time of 7200 seconds (two hours ). Other common values would be 86400 (one day ) , 604800 (one week ) , and 2592000 (30 day ).
step 3. #vim /etc/dhcp/dhcpd.conf
#this is very basic subnet declaration.
sbunet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.1.50 ;
}
:wq [ save the file and quit after this configuration )
#service dhcpd restart
step 4. # vim /var/lib/dhcpd/dhcpd.leases [ go in to this file and delete all the content ]
:wq [ delete all and save the file ]
# vim /var/lib/dhcpd/dhcpd.leases~ [ again go in to this file and delete all ]
:wq [ delete all and save the file ]
step 5. [ Note:- if want to fix the IP of any system than go to the file '/etc/dhcp/dhcpd.conf' and put the
MAC Add. and of that system and fix the IP
#vim /etc/dhcp/dhcpd.conf
host fantasia [ find this line in conf. file of dhcp ]
hardware ethernet 00:0c:f1:80:3a:67 ;
fixed - address 192.168.0.5
:wq [ after fixed the IP save this file and quit ]
#service dhcpd restart
-----------------------------------------------------------------------------------------------------------------------
DHCP - Dynamic Host Configuration Protocol
Port No. - 67,68
package - dhcpd
deamon - dhcpd
role - provides the dynamic ip add. to all the LAN. P.C,
-----------------------------------------------------------------------------------
( Note : - Before configure the 'DHCP' Server set the static IP in the system on which we are going to configure DHCP server )
#vim /etc/sysconfig/network-script/ifcfg-eth0
BOOTPROTO = static
IPADDR = 192.168.0.1
NETMASK = 255.255.255.0
:wq [ after this conf. save the file and quit ]
----------------------------------------------------------------------
step 1. Install the package 'dhcpd'
#yum install dhcpd
(copy the the conf. file from /user/share/doc/dhc-4.1.1/dhcpd.conf.sample to /etc/dhcpd/dhcpd.conf )
step 2. #cp /usr/shar/doc/dhcp-4.1.1/dhcp.conf.sample /etc/dhcp/dhcpd.conf
overwrite ? yes
[ Nonte:- This particular subnet declaration specifies a default lease time of 600 seconds (10 min) and a maximum lease time of 7200 seconds (two hours ). Other common values would be 86400 (one day ) , 604800 (one week ) , and 2592000 (30 day ).
step 3. #vim /etc/dhcp/dhcpd.conf
#this is very basic subnet declaration.
sbunet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.1.50 ;
}
:wq [ save the file and quit after this configuration )
#service dhcpd restart
step 4. # vim /var/lib/dhcpd/dhcpd.leases [ go in to this file and delete all the content ]
:wq [ delete all and save the file ]
# vim /var/lib/dhcpd/dhcpd.leases~ [ again go in to this file and delete all ]
:wq [ delete all and save the file ]
step 5. [ Note:- if want to fix the IP of any system than go to the file '/etc/dhcp/dhcpd.conf' and put the
MAC Add. and of that system and fix the IP
#vim /etc/dhcp/dhcpd.conf
host fantasia [ find this line in conf. file of dhcp ]
hardware ethernet 00:0c:f1:80:3a:67 ;
fixed - address 192.168.0.5
:wq [ after fixed the IP save this file and quit ]
#service dhcpd restart
-----------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment