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-8
Table 1-3 Configure DHCP relay agent
Operation Command Description
Enter system view
system-view
—
Enable the DHCP
service
dhcp enable
Optional
By default, the DHCP service is
enabled.
Configure DHCP server
IP addresses for a
DHCP server group
dhcp-server
groupNo ip
ip-address&<1-8>
Required
By default, no DHCP server IP
address is configured for a
DHCP server group.
Configure a DHCP user
address entry
dhcp-security
static ip-address
mac-address
Optional
By default, no DHCP user
address entry is configured.
Enable the DHCP relay
agent to support Option
82
dhcp relay
information enable
Required
By default, the DHCP relay agent
does not support Option 82.
Configure a strategy for
the DHCP relay agent to
handle request packets
containing Option 82
dhcp relay
information
strategy { drop |
keep | replace }
Optional
By default, the strategy is
replace.
Enter VLAN interface
view
interface
interface-type
interface-number
—
Associate the interface
to a DHCP server group
dhcp-server
groupNo
Required
By default, a VLAN interface is
not associated to any DHCP
server group.
Enable the address
check function for the
DHCP relay agent
address-check
enable
Required
By default, the address check
function is disabled for the DHCP
relay agent.
1.2.3 Configuring DHCP Snooping
Use the following commands to configure DHCP snooping: