No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dhcp snooping enable

dhcp snooping enable

Function

The dhcp snooping enable command enables DHCP snooping.

The undo dhcp snooping enable command disables DHCP snooping.

By default, DHCP snooping is disabled on the device.

Format

In the system view:

dhcp snooping enable [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

undo dhcp snooping enable [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

In the VLAN viewand interface view:

dhcp snooping enable

undo dhcp snooping enable

Parameters

Parameter Description Value
vlan { vlan-id1 [ to vlan-id2 ] }
Enables DHCP snooping in a specified VLAN.
  • vlan-id1 specifies the first VLAN ID.
  • to vlan-id2 specifies the last VLAN ID. vlan-id2 must be larger than vlan-id1.
The specified VLAN ID must exist.

Views

System view, VLAN view, GE interface view, MultiGE interface view, XGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

DHCP snooping is a security function to protect DHCP.

You must enable DHCP snooping in the system view before enabling DHCP snooping on an interface or in a VLAN.

Prerequisites

DHCP has been enabled globally using the dhcp enable command.

Follow-up Procedure

After DHCP snooping is enabled on the interface connected to users or in the VLAN, run the dhcp trust port command to configure the interface connected to the DHCP server as a trusted interface. The binding entry can be generated only when DHCP snooping is enabled on the interface and the interface is configured as a trusted one.

Precautions

The dhcp snooping enable command in the system view is the prerequisite for DHCP snooping-related functions. After the undo dhcp snooping enable command is run, all DHCP snooping-related configurations of the device are deleted. After DHCP snooping is enabled again using the dhcp snooping enable command, all DHCP snooping-related configurations of the device are restored to the default configurations.

If you run the dhcp snooping enable command in the VLAN view, the command takes effect for all the DHCP messages from the specified VLAN. If you run the dhcp snooping enable command in the interface view, the command takes effect for all the DHCP messages received on the specified interface.

Example

<Huawei> system-view
[Huawei] dhcp enable
[Huawei] dhcp snooping enable
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] dhcp snooping enable

# Enable DHCP snooping in VLAN 100.

<Huawei> system-view
[Huawei] dhcp enable
[Huawei] dhcp snooping enable
[Huawei] vlan 100
[Huawei-vlan100] dhcp snooping enable

# Enable DHCP snooping in VLANs ranging from VLAN 20 to VLAN 25 in a batch.

<Huawei> system-view
[Huawei] dhcp enable
[Huawei] dhcp snooping enable
[Huawei] vlan batch 20 to 25
[Huawei] dhcp snooping enable vlan 20 to 25
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 194831

Downloads: 118

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next