Build DHCP server on Linux

Source: Internet
Author: User
Tags linux

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.