DHCP
H3C Low-End Ethernet Switches Configuration Examples
Chapter 1 DHCP Functions Overview
1-3
Operation
Command
Description
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-length
|
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.
Configure WINS server
addresses for DHCP
clients
nbns-list
ip-address
&<1-8>
Required
By default, no WINS
server addresses are
configured.
Specify a NetBIOS node
type for DHCP clients
netbios-type
{
b-node
|
h-node
|
m-node
|
p-node
}
Optional
By default, the DHCP
clients are h-nodes if
the command is not
specified.
Configure gateway
addresses for DHCP
clients
gateway-list ip-address
&<1-8>
Required
By default, no
gateway address is
configured.
Configure a self-defined
DHCP option
option code
{
ascii
ascii-string
|
hex
hex-string
&<1-10> |
ip-address ip-address
&<1-8> }
Required
By default, no
self-defined option is
configured.