Configuring DHCP snooping basic functions

Follow these guidelines when configure DHCP snooping basic functions:

To configure DHCP snooping basic functions:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable DHCP snooping.

dhcp-snooping

Disabled by default.

3. Enter Ethernet interface view.

interface interface-type interface-number

The interface connects to the DHCP server.

4. Specify the port as a trusted port.

dhcp-snooping trust

After DHCP snooping is enabled, a port is an untrusted port by default.

5. Return to system view.

quit

N/A

6. Enter interface view.

interface interface-type interface-number

The interface indirectly connects to the DHCP client.

7. Disable the port from recording client's IP-to-MAC bindings.

dhcp-snooping no-user-binding

Optional.

After DHCP snooping is enabled, all ports of the snooping device record clients' IP-to-MAC bindings.