Académique Documents
Professionnel Documents
Culture Documents
Page 2
2. Switch user to administrator. su 3. Edit the DHCP configuration file vim /etc/dhcpd.conf or nano /etc/dhcpd.conf
Page 3
N.B. You are to replace the * with the actual dhcp version number. You can find the version number by pressing tab twice. 5. Copy the sample configuration file to the actual file cp /usr/share/doc/dhcp-3.05/dhcpd.conf.sample /etc/dhcpd.conf N.B. The current version number may different from the illustrated one. Check your current version.
N.B. When asked to confirm whether you want to overwrite the configuration file type y then press enter.
Page 4
8. Save and close the configuration file. 9. Create the dhcpd.leases file. touch /var/lib/dhcpd/dhcpd.leases 10. Give read and write permissions for all users on the dhcpd.leases file. chmod +rw /var/lib/dhcpd/dhcpd.leases 11. Edit the system configuration file for dhcpd vim /etc/sysconfig/dhcpd or nano /etc/sysconfig/dhcpd
Page 5
13. Save and close the configuration file. 14. Start the dhcp server /sbin/service dhcpd start
15. To stop the dhcp server type: /sbin/service dhcpd stop 16. To restart the dhcp server type: /sbin/service dhcpd restart 17. To check the status of the dhcp server type: /sbin/service dhcpd status 18. To configure the dhcp server while operational use the omshell command.
Page 6
Page 7
N.B. If you have previous edited the network interfaces file then you will need to re-amend it.
Page 8
Page 9
Page 10