Router/layer Three switch DHCP server configuration detailed points and examples

Source: Internet
Author: User



The DHCP sample UDP link mode, the server port is 67, the client port is 68.

Experimental Environment (H3C ENSP)

First, the configuration points
A: Configure dhcpserver on the router
First step: (System View) turn on DHCP:DHCP enable
Step Two: (Enter the interface view) Configure the IP address for the port connected to the client
Step Three: (System view) Establish DHCP address pool: IP pool AAA
Fourth Step: Configure network segment, Gateway-list Gateway, in pool mode
Dns-list DNS server address, excluded-ip-address IP address to exclude
Fifth Step: Enter interface mode to start DHCP dynamic assignment in the interface: DHCP select globle
Sixth step: To start the client's DHCP


Instance:


Router configuration:

#
sysname Huawei
#
DHCP Enable
#
IP Pool AAA
Gateway-list 192.168.1.1
Network 192.168.1.0 Mask 255.255.255.0
Excluded-ip-address 192.168.1.10
Dns-list 192.168.1.10 192.168.10.10
#
Aaa
Authentication-scheme Default
Authorization-scheme Default
Accounting-scheme Default
Domain default
Domain Default_admin
Local-user Admin Password cipher oocm4m ($F 4ajun1vmeibnuw#
Local-user Admin Service-type http
#
Firewall Zone Local
Priority 16
#
Interface ethernet0/0/0
IP address 192.168.1.1 255.255.255.0
DHCP Select Global
#
Interface ETHERNET0/0/1
#
Interface serial0/0/0
Link-protocol PPP
#
Interface SERIAL0/0/1
Link-protocol PPP
#
Interface SERIAL0/0/2
Link-protocol PPP
#
Interface SERIAL0/0/3
Link-protocol PPP
#
Interface gigabitethernet0/0/0
#
Interface GIGABITETHERNET0/0/1
#
Interface GIGABITETHERNET0/0/2
#
Interface GIGABITETHERNET0/0/3
#
Wlan
#
Interface NULL0
#
User-interface Con 0
User-interface vty 0 4
User-interface vty 16 20
#
Return


B: Configure different dhcpserver for different VLANs in a layer three switch
First step: Build VLANs on layer three switches and assign ports.
Step Two: (System view) turn on DHCP:DHCP enable
Step three: Establish a corresponding pool of DHCP addresses for each VLAN (name can be arbitrary)
Fourth Step: Configure the network segment, Gateway-list Gateway, and the corresponding VLAN for each address pool.
Dns-list DNS server address, excluded-ip-address IP address to exclude
Fifth step: Enter each VLAN interface, first configure the respective IP address, and then start DHCP dynamic assignment: DHCP Select globle
Sixth step: To start the client's DHCP


Instance:

Three-layer switch configuration:

[Huawei]display current-configuration
#
sysname Huawei
#
VLAN Batch 2 to 3
#
Cluster enable
NTDP Enable
NDP enable
#
Drop Illegal-mac Alarm
#
DHCP Enable
#
DiffServ domain Default
#
Drop-profile Default
#
IP Pool AAA
Network 192.168.1.0 Mask 255.255.255.0
Excluded-ip-address 192.168.1.1
Dns-list 192.168.10.10
#
IP pool BBB
Network 192.168.2.0 Mask 255.255.255.0
Excluded-ip-address 192.168.2.1
Dns-list 192.168.10.10
#
Aaa
Authentication-scheme Default
Authorization-scheme Default
Accounting-scheme Default
Domain default
Domain Default_admin
Local-user Admin Password Simple admin
Local-user Admin Service-type http
#
Interface VLANIF1
#
Interface Vlanif2
IP address 192.168.1.1 255.255.255.0
DHCP Select Global
#
Interface Vlanif3
IP address 192.168.2.1 255.255.255.0
DHCP Select Global
#
Interface METH0/0/1
#
Interface ETHERNET0/0/1
Port Link-type Access
Port default VLAN 2
#
Interface ETHERNET0/0/2
#
Interface ETHERNET0/0/3
#
Interface ETHERNET0/0/4
Port Link-type Access
Port default VLAN 3
#
Interface ETHERNET0/0/5
#
Interface ETHERNET0/0/6
#
Interface ETHERNET0/0/7
#
Interface ETHERNET0/0/8
#
Interface ETHERNET0/0/9
#
Interface ETHERNET0/0/10
#
Interface ETHERNET0/0/11
#
Interface ETHERNET0/0/12
#
Interface ETHERNET0/0/13
#
Interface ETHERNET0/0/14
#
Interface ETHERNET0/0/15
#
Interface ETHERNET0/0/16
#
Interface ETHERNET0/0/17
#
Interface ETHERNET0/0/18
#
Interface Ethernet0/0/19
#
Interface ETHERNET0/0/20
#
Interface ETHERNET0/0/21
#
Interface ETHERNET0/0/22
#
Interface GIGABITETHERNET0/0/1
#
Interface GIGABITETHERNET0/0/2
#
Interface NULL0
#
User-interface Con 0
User-interface vty 0 4
#
Return

Router/layer Three switch DHCP server configuration detailed points and examples

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.