R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
133
Parameters
None
Description
Use the dhcp relay server-detect command to enable unauthorized DHCP server detection.
Use the undo dhcp relay server-detect command to disable unauthorized DHCP server detection.
By default, unauthorized DHCP server detection is disabled.
With this function enabled, upon receiving a DHCP request, the DHCP relay agent records the IP
addresses of all DHCP servers that offered IP addresses to the DHCP client and the receiving interface.
Each server detected is recorded only once. The administrator can use this information from logs to check
for unauthorized DHCP servers.
After the information of recorded DHCP servers is cleared, the relay agent will re-record server
information following this mechanism.
Examples
# Enable unauthorized DHCP server detection.
<Sysname> system-view
[Sysname] dhcp relay server-detect
dhcp relay server-group
Syntax
dhcp relay server-group group-id ip ip-address
undo dhcp relay server-group group-id [ ip ip-address ]
View
System view
Default level
2: System level
Parameters
group-id: DHCP server group number, in the range of 0 to 19.
ip ip-address: DHCP server IP address.
Description
Use the dhcp relay server-group command to specify a DHCP server for a DHCP server group.
Use the undo dhcp relay server-group command to remove a DHCP server from a DHCP server group,
if no ip ip-address is specified, all servers in the DHCP server group and the server group itself will be
removed.
By default, no DHCP server is specified for a DHCP server group.
The IP address of a DHCP server and the IP address of the DHCP relay agent’s interface that
connects the DHCP client cannot be in the same network segment. Otherwise, the client may fail to
obtain an IP address.
If a server group has been correlated to multiple interfaces, you need to cancel these correlations
before removing the server group.
Related commands: display dhcp relay server-group.