H3C S7500 Series Ethernet Switches Release 3135 DHCP Configuration Examples

DHCP Configuration Examples
H3C S7500 Series Ethernet Switches Release 3135 Chapter 1 DHCP Functions Overvie
w
1-2
1.2 Configuration Guide
1.2.1 Configuring the DHCP Server
The DHCP server can be configured to assign IP addresses from a global or interface
address pool. These two configuration methods are applicable to the following
environments:
z If the DHCP server and DHCP clients are on the same network segment, both
methods can be applied.
z If the DHCP server and DHCP clients are on different network segments, the
DHCP server can only be configured to assign IP addresses from a global address
pool.
1) Use the following commands to configure the DHCP server to assign IP addresses
from a global address pool.
Table 1-1 Configure IP address allocation from a global address pool
Operation Command Description
Enter system view
system-view
Enable the DHCP service
dhcp enable
Optional
By default, the DHCP
service is enabled.
Create a DHCP address pool
and enter DHCP address pool
view
dhcp server ip-pool
pool-name
Required
By default, no global
DHCP address pool
is created.
Configure an IP address
range for dynamic allocation
network ip-address
[ mask mask ]
Required
By default, no IP
address range is
configured for
dynamic allocation.
Configure the lease period of
dynamically allocated IP
addresses
expired { day day [ hour
hour [ minute minute ] ] |
unlimited }
Optional
IP address lease
period defaults to one
day.
Configure a domain name for
DHCP clients
domain-name
domain-name
Required
By default, no
domain name is
configured for DHCP
clients.
Configure DNS server
addresses for DHCP clients
dns-list
ip-address&<1-8>
Required
By default, no DNS
server addresses are
configured.