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-5
Operation Command Description
interface interface-type
interface-number
Configure a VLAN
interface to operate in
interface address pool
mode
dhcp select interface
Required
By default, a VLAN
interface operates in
global address pool
mode.
Bind an IP address
statically to a client MAC
address or client ID
dhcp server static-bind
ip-address ip-address
mac-address mac-address
Optional
By default, no static
binding is configured
On the
current
interface
dhcp server expired { day day
[ hour hour [ minute minute ] ] |
unlimited }
quit
Configure
the lease
period of
dynamically
allocated IP
addresses
On
multiple
interfaces
in system
view
dhcp server expired { day day
[ hour hour [ minute minute ] ] |
unlimited } { interface
interface-type interface-number
[ to interface-type
interface-number ] | all }
Optional
IP address lease
period defaults to
one day.
Return to system view
quit
—
Specify the IP addresses
to be excluded from
automatic allocation
dhcp server forbidden-ip
low-ip-address
[ high-ip-address ]
Optional
By default, all the IP
addresses in an
interface address
pool are available for
dynamic allocation.
interface interface-type
interface-number
dhcp server domain-name
domain-name
On one
interface
quit
Configure a
domain
name for
DHCP
clients
On
multiple
interfaces
dhcp server domain-name
domain-name { interface
interface-type interface-number
[ to interface-type
interface-number ] | all }
Optional
By default, no
domain name is
configured for DHCP
clients.