Configuration of DHCP server and DHCP relay

Source: Internet
Author: User



The Global DHCP
SW1





AR1
[AR1]DHCP Enable//global turn on DHCP service
[Ar1]ip pool P1//create address pool and name
[Ar1-ip-pool-p1]network 192.168.1.0 mask 255.255.255.0//distribution terminal to obtain the network segment information
[Ar1-ip-pool-p1]gateway-list 192.168.1.254//configuration issued gateway address
[Ar1-ip-pool-p1]dns-list 8.8.8.8//configuration issued DNS address
[Ar1-ip-pool-p1]lease Day 3//configuration assigned lease period
[Ar1]interface gigabitethernet0/0/0//Enter g0/0/0 interface
[Address of Ar1-gigabitethernet0/0/0]ip address 192.168.1.254 24//interface is the gateway address
[AR1-GIGABITETHERNET0/0/0]DHCP Select Global//Turn on DHCP function on the interface






interface-based DHCP
AR1




Relay Configuration
SW1
[Sw1]vlan 10//Create VLAN 10



AR1 DHCP server
DHCP enable//global turn on DHCP service
[AR1]IP Pool 1314//Create address pool
[ar1-ip-pool-1314]network 192.168.10.0 Mask 255.255.255.0//distribution terminal to get the network segment information
[ar1-ip-pool-1314]gateway-list 192.168.10.254//config-issued gateway address
[ Ar1-ip-pool-1314]dns-list 1.3.1.4//configuration issued DNS address
[ar1-ip-pool-1314]excluded-ip-address 192.168.10.100 192.168.10.100 setting the reserved address
[Ar1-ip-pool-1314]lease Day 3//configuration assigned lease period
[ar1]interface gigabitethernet 0/0/0//Enter g0/0/ 0 interface
[AR1]IP address 192.168.20.1 255.255.255.0//Configure IP address
[AR1] DHCP Select global//enable DHCP function on interface
[AR1]IP Route-static 192.168.10.0 24 192.168.20.2 scare Jump



AR2 DHCP Relay
[AR2]DHCP Enable//global turn on DHCP service
[Ar2]interface gigabitethernet 0/0/1//Enter interface G0/0/1
[AR2-GIGABITETHERNET0/0/1]IP address 192.168.20.2 24 Configuring IP addresses
[Ar2]interface gigabitethernet0/0/0//Enter interface g0/0/0
[AR2-GIGABITETHERNET0/0/0]IP address 192.168.10.254 24//Configure IP address Gateway
[AR2-GIGABITETHERNET0/0/0]DHCP Select relay//Enter the interface to apply DHCP relay functionality
[AR2-GIGABITETHERNET0/0/0]DHCP relay SERVER-IP 192.168.20.1//IP address pointing to the DHCP server



Configuration of DHCP server and DHCP relay


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.