REDHATLINUX-DHCP (assign multiple CIDR Block IP addresses)

Source: Internet
Author: User
REDHATLINUX-DHCP (assign multiple IP segments)-Linux Enterprise Application-Linux server application information, which is described below. We all know that DHCP is required for dynamic IP allocation in the LAN. However, all DHCP information is transmitted in the form of broadcast, so it is impossible to pass through the router. This determines that a DHCP server can only assign IP addresses to clients in the current network segment, if you want to use a DHCP server to allocate IP addresses to different CIDR blocks, you need to set up a DHCP relay proxy for this CIDR block. Machines installed with Linux can be configured as DHCP relay proxies. Let's take an experiment and look at the setting method.

Experimental Platform: two servers with LINUX system installed, one DHCP server, the other dhcprelay proxy server, three PCs used for testing, and several network cables;

Lab environment: allocate three network segments:

192.168.10.0/24
192.168.20.0/24
192.168.30.0/24

Three NICs must be installed on the server used as the DHCP relay Proxy: eth0, eth1, and eth2. IP Address Allocation is as follows:

Eth0: 192.168.10.1
Eth1: 192.168.20.1
Eth2: 192.168.30.1

The DHCP server only needs one Nic, Which is eth0.

Eth0: 192.168.10.2

The PC1, PC2, and PC3 CIDR blocks required for testing are respectively attached to the three CIDR blocks. The result of the experiment is that the IP addresses of the CIDR blocks of the three PCs are obtained.

Configure the DHCP server: # vi/etc/dhcpd. conf

Enter the text configuration page
QUOTE:
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.