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