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

CLI-based Configuration Guide - Security

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
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).
Enabling DHCP Snooping

Enabling DHCP Snooping

Context

DHCP snooping ensures security of the DHCP service. Before configuring DHCP snooping functions, you need to enable DHCP snooping.

You must enable DHCP snooping first in the system view, and then on an interface or in a VLAN.

NOTE:

Use the dhcp enable command to enable DHCP globally before enabling DHCP snooping.

On the AR120&AR150&AR160&AR200 series and AR1200 series, before enabling DHCP snooping on an interface or in a VLAN, ensure that the DHCP relay or DHCP server function has been enabled on this interface or corresponding VLANIF interface; if they are not enabled, the device will not obtain the binding entries of users.

NOTE:

DHCP snooping does not support the BOOTP protocol, which is used by diskless workstations. Therefore, DHCP snooping binding entries cannot be generated for diskless workstations. IPSG and DAI are implemented based on binding entries. For this reason, to use them on a diskless workstation, you must configure static binding entries by running the user-bind static command.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run dhcp snooping enable [ ipv4 | ipv6 ]

    DHCP snooping is globally enabled.

    By default, DHCP snooping is globally disabled on the device.

    NOTE:

    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.

  3. Enable DHCP snooping in the system, VLAN, or interface view.

    • In the system view:

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

      DHCP snooping is enabled on the device.

      By default, DHCP snooping is disabled on the device.

    • In the VLAN view or interface view:

    1. Run vlan vlan-id

      The VLAN view is displayed.

      Or run interface interface-type interface-number

      The interface view is displayed.

    2. Run dhcp snooping enable

      DHCP snooping is enabled on the interface or in a VLAN.

      By default, DHCP snooping is disabled on the device.

    If you run this command in the VLAN view, the command takes effect on all the DHCP messages received by all interfaces from the specified VLAN. If you run this command in the interface view, the command takes effect on all the DHCP messages received by the specified interface.

    If a single VLAN ID for 802.1Q encapsulation on a sub-interface is configured using the dot1q termination vid command, DHCP snooping cannot be enabled in the specified VLAN.

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034077

Views: 113891

Downloads: 210

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