Simple DHCP relay Configuration

Source: Internet
Author: User
Tags dchp

During the learning process of the DHCP protocol, we should be able to find that the content of DHCP relay is a key point. Today, we will explain how to configure DHCP relay. In addition, when configuring DHCP relay, we should know about DHCP relay. This article mainly introduces how to use a vrodhcp to build DHCP. After reading the specific operation steps, I believe you will understand it.

There are many ways to use a DHCP server. Here I will introduce how to use a vro as a DHCP server.

Project requirements: XX enterprise has three departments, which are divided into VLAN for the three departments in layer-3 switching.

IP address planning is as follows:

VLAN10 192.168.10.1 VLAN20 192.168.20.1 VLAN30 192.168.30.1 A cisco2811 router is used as the DCHP server.

Configure DHCP relay as follows:

Enable

Configure terminal

No iprouting

Interface f0/0

Ip address 192.168.30.100 255.255.255.0

No shutdown

Exit

Ip default gateway 192.168.30.1

Service dhcp

Ip dhcp pool vlan10 can be changed at Will)

Network 192.168.10.0 255.255.255.0 VLAN10 network segment and subnet mask)

Default-router 192.168.10.1VLAN10 IP address)

Dns-server 61.134.1.4 218.30.19.40 Shaanxi DNS)

Lease 8 is valid for 8 days)

Exit

Service dhcp

Ip dhcp pool vlan20 can be changed at Will)

Network 192.168.20.0 255.255.255.0 VLAN10 network segment and subnet mask)

Default-router 192.168.20.1 IP address of VLAN20)

Dns-server 61.134.1.4 218.30.19.40 Shaanxi DNS)

Lease 8 is valid for 8 days)

Exit

Service dhcp

Ip dhcp pool vlan30 can be changed at Will)

Network 192.168.10.0 255.255.255.0 VLAN10 network segment and subnet mask)

Default-router 192.168.30.1 IP address of VLAN30)

Dns-server 61.134.1.4 218.30.19.40 Shaanxi DNS)

Lease 8 is valid for 8 days)

Exit

The above is the process of configuring DHCP relay on the vrodhcp. The enterprise has to make several DHCP pools for several VLANs, and the horizontal line can be modified separately according to the IP address of the enterprise.

In addition, DHCP relay must be performed on layer-3 switches. Only the VLAN where DHCP is located can automatically obtain the IP address, but other VLANs cannot!

In the above section, we talked about how to execute DHCP relay commands on layer-3 switches. Here I will write only one relay command as an instance:

Interface vlan10

Ip helper-address 192.168.30.100 ip address of the DHCP server)

Exit

When configuring DHCP relay, remember that the DHCP relay should be one-to-one matched with the DHCP pool, and several DHCP relay should be performed for several DCHP pools.

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.