Dhcp relay configuration example

Source: Internet
Author: User

We have learned about dhcp relay and explained in detail the setting of each function. Here we will introduce a dhcp relay configuration example to help you understand the content and deepen your impression. Let's take a look at these details.

Dhcp relay configuration Example 1. Networking requirements

The IP address range of the dhcp client is 10.110.0.0. The IP address of the dhcp server is 202.38.1.2. The dhcp client needs to relay dhcp packets through a switch with the dhcp relay function, so that the dhcp client can apply for IP addresses and other related configuration information from the dhcp server.

Dhcp relay configuration Example 2. Networking Diagram

 

Dhcp relay configuration example 3. configuration steps

# Go To The System View.

[H3c] system-view

# Create vlan2.

[H3c] vlan 2

# Go To The vlan interface view and create vlan-interface 2.

[H3c] interface vlan-interface 2

# Configure an IP address for vlan-interface 2.

[H3c-vlan-interface2] ip address 10.110.1.1 255.255.0.0

# Vlan-interface 2: select to assign an address from the remote dhcp server.

[H3c-vlan-interface2] dhcp select relay

# Configure the IP address of the server pointed to by vlan 2 of dhcp relay.

[H3c-vlan-interface2] ip relay address 202.38.1.2

This configuration is used for dhcp relay. The address pool that can assign addresses to clients must be configured on the dhcp server. In addition, the interface routes connected to clients on the dhcp server and dhcp relay must be smooth.

Do not change or delete the IP address of the interface corresponding to dhcp relay. Otherwise, the user cannot apply for the IP address and cannot access the Internet normally.

The above is all the content of the dhcp relay configuration example.

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.