HP MSR2000/3000/4000 Router Series Layer 3 - IP Services Command Reference
26
Views
System view
Predefined user roles
network-admin
Usage guidelines
Enable DHCP before you perform DHCP server or relay agent configurations.
Examples
# Enable DHCP.
<Sysname> system-view
[Sysname] dhcp enable
dhcp select
Use dhcp select to enable the DHCP server or DHCP relay agent on an interface.
Use undo dhcp select to disable the DHCP server or DHCP relay agent on an interface. The interface
discards DHCP packets.
Syntax
dhcp select { relay | server }
undo dhcp select { relay | server }
Default
The interface operates in DHCP server mode and responds to DHCP requests with configuration
parameters.
Views
Interface view
Predefined user roles
network-admin
Parameters
relay: Enables the DHCP relay agent on the interface.
server: Enables the DHCP server on the interface.
Usage guidelines
Before changing the DHCP server mode to the DHCP relay agent mode on an interface, use the reset
dhcp server ip-in-use command to remove address bindings. These bindings might conflict with ARP
entries that are created after the DHCP relay agent is enabled.
Examples
# Enable the DHCP relay agent on the interface Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] dhcp select relay
Related commands
reset dhcp server ip-in-use