Dhcp ip Address allocation across CIDR blocks

Source: Internet
Author: User


DHCP cross-network segment allocation IP address DHCP server must allocate IP addresses across network segments, that is, if you want to assign IP addresses to clients not in the DHCP server's subnet through the router, you must add a DHCP relay proxy to the router, on the DHCP Server, the second scope should be established and the super scope should be established. After the router enables the relay proxy function, it can forward the request to the DHCP server when receiving a request message from the DHCP Client for finding a DHCP server and requesting an IP address lease; the corresponding response packet of the DHCP server is also sent to the router and then forwarded to the DHCP client. The router acts as the intermediary and proxy of the DHCP service. Why use DHCP relay? Because DHCP relies on broadcast communication, the process is: the client sends a broadcast to ask whether there is a DHCP server in the network segment. If there is a DHCP server, DHCP will respond to the client: "I will DHCP server" after the client receives a response, it will send a request for renting an IP address to the server: "I want to rent an IP address" after the DHCP server receives the request, A confirmation message will be sent and the IP address will be rented to the customer: "Okay, your IP address is... "All processes adopt broadcast. We all know that routes are required for communication between different network segments, and routers isolate broadcast by default. Therefore, to allocate IP addresses across network segments, you must use relay. www.2cto.com 1. RRAS (Role: DHCP relay) sets the TCP/IP attribute of the two connections, local 1: 192.168.1.1/24; Local 2: 172.16.1.1/16 start RRAS (Routing and Remote Access Service) set relay: Specify the relay interface as local connection 2, specify the DHCP server address as 192.168.1.22.SERVER (DHCP server), configure and activate the scope: Scope address 172.16.1.50-172.16.1.993.CLIENT (DHCP Client) IPCONFIG/RELEASE (manually RELEASE the DHCP lease) IPCONFIG/RENEW (manually obtain the DHCP lease) IPCONFIG/ALL (verify the lease) Author luodie

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.