< Home

dhcp snooping enable

Function

The dhcp snooping enable command enables DHCP snooping.

The undo dhcp snooping enable command disables DHCP snooping.

Format

dhcp snooping enable [ interface interface-type interface-number ]

undo dhcp snooping enable [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface. It can be configured only in the VLAN view.

Views

System view, Layer-3 interface view, or VLAN view

Default Level

2: Configuration level

Usage Guidelines

By default, DHCP snooping is disabled.

Other configuration commands related to the DHCP snooping take effect only when you enable DHCP snooping globally.

Enable DHCP snooping globally before enabling DHCP snooping on a VLAN or an interface.

Running the dhcp snooping enable command in the system view, you can enable DHCP snooping globally.

If you run the dhcp snooping enable command in the interface and VLAN views, you can enable DHCP snooping only on an interface or on a VLAN.

Example

# Enable DHCP snooping globally.

<sysname> system-view
[sysname] dhcp snooping enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >