2-7
Note that among S3100 series switches, only S3100-EI series switches support the two commands.
Examples
# Configure the remote ID of Option 82 in DHCP packets to abc on the port Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] dhcp-snooping information remote-id string abc
dhcp-snooping server-guard enable
Syntax
dhcp-snooping server-guard enable
undo dhcp-snooping server-guard enable
View
Ethernet port view
Parameters
None
Description
Use the dhcp-snooping server-guard enable command to enable unauthorized DHCP server
detection on the port, through which DHCP-DISCOVER messages will be sent to detect unauthorized
DHCP servers.
Use the undo dhcp-snooping server-guard enable command to disable unauthorized DHCP server
detection on the port.
Note that:
z Among S3100 series switches, only S3100-SI series switches support the two commands.
z You need to enable DHCP snooping before enabling unauthorized DHCP server detection on the
switch.
Examples
# Enable unauthorized DHCP server detection on Ethernet 1/0/3.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet1/0/3
[Sysname-Ethernet1/0/3] dhcp-snooping server-guard enable
dhcp-snooping server-guard method
Syntax
dhcp-snooping server-guard method { trap | shutdown }
undo dhcp-snooping server-guard method