Build a DHCP server and relay proxy on RHEL4

Source: Internet
Author: User
This article is from the "crazylinux" blog. Do you have to keep this source? Other customers do not configure ip addresses.

This article is from the "crazylinux" blog. Please keep this sourceHttp://crazysanjianke.blog.51cto.com/664423/167450This article is from 51CTO. COM technical blog

I. DHCP principles:

In some large and medium-sized enterprises, each of our computers must have one or more ip addresses. If you are a network administrator in the company, what should you do if your company's server or your boss wants a fixed ip Address Allocation? What do you do if other customers do not configure ip addresses? If you configure it manually, it will waste a lot of time and cause unnecessary troubles. It also increases the workload of the Administrator. In order to ensure that the network can run normally, manage the ip addresses in the network in a unified manner. We can solve this problem by setting up a dhcp server. Let's take a look at the principles of the dhcp service.

1. First, the client can send a request packet through broadcasting. The source IP address of this packet is 0.0.0.0, and the target IP address is 255.255.255.255.

2. the DHCP server receives the packet and then responds to the packet. It first checks whether the client has used an ip address before. If the packet is used, it is allocated, then, check whether the client is written to the network card bound to it. If yes, it will be allocated directly. If the above conditions are not met, it will be randomly allocated.

3. The client responds and sends a confirmation packet based on the network environment.

4. The server starts timing Based on the lease file.

Port Number enabled on the server: 67 68 [udp]

Ii. experiment environment:

DHCP server network settings:

Ip: 192.168.10.1

Netmask: 255.255.255.0

Gw: 192.168.10.100

DNS: 202.106.0.20

DHCP relay proxy Network Setting Server:

Ip: 192.168.10.100

Netmask: 255.255.255.0

Gw: 192.168.10.1

DNS: 202.106.0.20

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.