DHCP Server build
Environment
redhat.enterprise.linux.5.8 |
Dhcp-3.0.5-31.el5 |
Content:
Introduction to DHCP Services
DHCP service configuration file
DHCP service case
1. Introduction to DHCP Service
How DHCP works: The client transmits broadcast packets to all the main clauses within the entire physical network segment, such as when there is a DHCP server in the LAN, which responds to the client's IP parameter requirements, so the DHCP server and client should be in the same physical network segment. DHCP: Network protocol for Dynamic Host configuration
The process of connecting the client to the DHCP server is as follows, figure A
1, Client: Use broadcast packet to send search DNCP server package
2, server-side: Provide client network-related lease selection
3, client: Determine the choice of DHCP server network parameters provided by the lease and report to the service
Service device
4, server side: Record this lease and return to the client related packet information
2, DHCP configuration file detailed
IP parameters given to clients by the DHCP server: fixed and dynamic
Static IP: The use of recording the client's network card information and IP binding to achieve each IP is the same.
Dynamic IP: Each time from the IP pool has not been used randomly select an IP address assigned to the client.
DHCP Software: Yum install DHCP
DHCP data files
/ETC/DHCPD.CONF:DHCP's main configuration file
/ETC/SYSCONFIG/DHCPD:D HCP's NIC settings file, multiple network adapters set up to provide DHCP service via that NIC
/ETC/SYSCONFIG/DHCRELAY:DHCP Relay configuration file
/var/lib/dhcpd/dhcpd.leases: Documents that log information such as leases after a client connects
Primary configuration file for DHCP: etc/dhcpd.conf
After software installation, the default is not to provide configuration files, but for us to provide a configuration sample document, copy over to install
Cp/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf