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-7
Operation Command Description
interface interface-type
interface-number
dhcp server option code
{ ascii ascii-string | hex
hex-string&<1-10> | ip-address
ip-address&<1-8> }
On one
interface
quit
Configure a
self-defined
DHCP
option
On
multiple
interfaces
dhcp server option code
{ ascii ascii-string | hex
hex-string&<1-10> | ip-address
ip-address&<1-8> } { interface
interface-type interface-number
[ to interface-type
interface-number ] | all }
Optional
By default, no
self-defined option is
configured.
Enable the detection of
unauthorized DHCP
servers
dhcp server detect
Optional
By default, the
detection of
unauthorized DHCP
servers is disabled.
Set the
maximum
number of
ping
packets
sent by the
DHCP
server for
each IP
address
dhcp server ping packets
number
Optional
The default
maximum number is
2.
Configure
duplicate
IP
address
detection
Set a
response
timeout for
each ping
packet
dhcp server ping timeout
milliseconds
Optional
The default timeout is
500 milliseconds.
Enable the DHCP server
to support Option 82
dhcp server relay information
enable
Optional
By default, the DHCP
server supports
Option 82.
1.2.2 Configuring the DHCP Relay Agent
Use the following commands to configure the DHCP relay agent.