
Article Overview
You can configure DHCP on an H3C access layer switch by enabling the DHCP service, creating IP address pools, assigning VLAN interfaces, and optionally configuring DHCP relay for clients on different subnets.
Enabling DHCP on the Switch
To start, enable the DHCP service on the H3C switch using the command:
dhcp enable
This activates the DHCP functionality on the device, allowing it to assign IP addresses to clients within configured VLANs .
Creating IP Address Pools
Define IP address pools for each subnet that the switch will serve. For example, to create a pool for VLAN 5:
dhcp server ip-pool VLAN5[Switch-dhcp-pool-VLAN5] network 192.168.5.0 255.255.255.0[Switch-dhcp-pool-VLAN5] gateway-list 192.168.5.1[Switch-dhcp-pool-VLAN5] excluded-ip-address 192.168.5.100
Repeat this process for other VLANs/subnets, specifying the network, gateway, and any IP addresses to exclude from dynamic allocation .
Assigning VLAN Interfaces
Each VLAN interface must have an IP address to act as the gateway for DHCP clients:
interface Vlan-interface5[Switch-Vlan-interface5] ip address 192.168.5.1 255.255.255.0[Switch-Vlan-interface5] dhcp select global
For VLANs where the switch acts as a relay, use:
[Switch-Vlan-interface6] dhcp select relay[Switch-Vlan-interface6] dhcp relay server-address 192.168.7.100
This ensures clients on different subnets can obtain IP addresses from a centralized DHCP server .
Configuring DHCP Relay (Optional)
If the DHCP server is on a different subnet, configure the switch as a relay agent:
interface Vlan-interfaceX[Switch-Vlan-interfaceX] dhcp select relay[Switch-Vlan-interfaceX] dhcp relay server-address <DHCP_Server_IP>
This forwards DHCP requests from clients to the server and returns the responses appropriately .
Verifying DHCP Operation
Check the DHCP bindings and active leases with:
display dhcp server ip-in-use display dhcp server statistics
These commands help confirm that clients are receiving IP addresses correctly and that the DHCP service is functioning as expected .
Best Practices
- Exclude static IP addresses (e.g., servers, printers) from dynamic pools to avoid conflicts.
- Ensure VLAN interfaces are up and reachable from clients.
- Use DHCP relay only when necessary to centralize DHCP services.
- Save the configuration after changes:
save
This ensures the DHCP configuration persists after a reboot . By following these steps, an H3C access layer switch can effectively provide DHCP services to clients within its VLANs or relay requests to a centralized DHCP server.
Support
08-LLDP configuration 09-Layer 2 forwarding configuration 10-L2TP configuration 11-ARP configuration 12-IP addressing
H3C Switch Basic Configuration | VLAN | DHCP Server
In this video, I have explained the basic configurations of an H3C switch, including: Setting the hostname
02-Downlink Layer 3 Switch Configuration Examples
Introduction This document details the configuration method for connecting a layer 3 switch to a router. Prerequisites This document
Basic CLI Commands on H3C Switch
Learn how to create users, VLANs, enable Telnet and SSH, configure Spanning Tree Protocol, enable
H3C Campus Fixed-Port Switches Web-Based Configuration Guide
The features and functions provided the Device menu vary by switch. Use Table 3 to navigate to the tasks you can perform from the
Support
Home Support Switches S3600 Series Configure & Deploy Configuration Examples H3C Low-End
Support
As shown in Figure 15, configure the DHCP relay agent on Switch A so that DHCP clients can obtain IP
Support
09-Layer 2 forwarding configuration 10-PPP configuration 11-ARP configuration 12-IP addressing configuration 13-DHCP
H3C S1600V2 Switch Series Web Configuration Guide
Switch B is connected to the authorized DHCP server through Ethernet port 1, to the unauthorized DHCP server through Ethernet
Support
DHCP uses the same message format as BOOTP, but DHCP uses the Option field to carry information about dynamic address
H3c DHCP Manuals | ManualsLib
H3c DHCP Pdf User Manuals. View online or download H3c DHCP Quick Start Configuration Manual
Support
Home Support Configure & Deploy Configuration Guides H3C S6805 & S6825 & S6850 & S9850 Configuration Guides-Release
H3C S5830 Switch Series Configuration Examples
Users must pass 802.1X authentication to access the Internet. They use the H3C iNode client to initiate 802.1X
Support
Home Support Configure & Deploy Configuration Guides H3C SecPath Firewall Series Configuration Guides (V7)-6W402 13-Layer
Support
04-Layer 3-IP Services Configuration Guide Home Support Switches S5130 Series Configure & Deploy Configuration Guides H3C
02-Downlink Layer 3 Switch Configuration Examples
· Configure VLANs on Layer 2 and Layer 3 switches, and configure a DHCP server on the Layer 3 switch to automatically allocate IP
Support
Home Support Switches H3C S12500 Switch Series Configure & Deploy Configuration Guides H3C S12500 Configuration Guides
Support
Home Support Configure & Deploy Configuration Guides H3C Wi-Fi 7 Access Points Cloud Mode Configuration Guides (R2610P06)
H3C DHCP QUICK START CONFIGURATION MANUAL Pdf Download
View and Download H3C DHCP quick start configuration manual online. DHCP network hardware pdf manual download.
Support
Home Support Servers Blade Server H3C UniServer B16000 BX1020EF Configure & Deploy Configuration Guides H3C UniServer
Support
Configure the AP, access controller module, and switch to achieve Layer 2 connectivity. To improve link bandwidth and availability
Support
Table of Contents Layer 3 - IP Services Configuration Guide Related Documents About the S5500-EI Command References H3C
Configure DHCP Server on Layer 2 Switch
By the way, my main goal is to fix the problem of that DHCP protocol do not work properly. To be more specific, the
H3C Switch Configuration | Access Port, Trunk Port, DHCP Server
In this video tutorial I show you How to configure Access Port in H3C switch, how to configure Trunk Port in H3C
H3C Switch Configuration | Access Port, Trunk Port, DHCP Server
Hello Friends, In this video I will show you H3C Switch Configuration. In this video tutorial
Support
DHCP Configuration Examples Keywords: DHCP, Option 82 Abstract: This document describes DHCP
02-Downlink Layer 3 Switch Configuration Examples
· Gateways for VLAN 10 and VLAN 20 are located on the Layer 3 switch, which also acts as the DHCP server to allocate IP
Related Resources
- Cable Tray Elbow Specifications Comparison Table
- There is inside the distribution box
- Canadian Broadcasting Corporation s Procurement of Standard Optical Cables
- Data Center Green Power Solutions
- Advantages of Swiss Cable Trays
- How to place a network server rack in the bedroom
- Explosion-proof Instrument Distribution Box Manufacturer
- Uruguay Solution OSFP Optical Module OSFP
- Compatible SFP Aggregation Switches Slovenian Supplier
- Common Second-Level Spectrometers
- Fiber Optic Wire Breakage Junction Box
- Where to buy upgraded optical circulators