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

AR500, AR510, and AR530 V200R007

This document describes the configurations of Security, including AAA, DAA,NAC, BRAS Access, ACL, Firewall, Deep Security Defense, Local Attack Defense;Attack Defense, Traffic Suppression, ARP Security, Port Security, DHCP Snooping, IPSG, URPF, PKI, SSL, HTTPS, Keychain, separating the management plane from the service plane, security risks.
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.

NOTE:

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

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.

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

NOTE:

DHCP snooping does not support the BOOTP protocol. However, diskless workstations use the BOOTP protocol. Therefore, DHCP snooping binding entries cannot be generated for diskless workstations. IPSG and DAI are implemented based on binding entries. To use them on a diskless workstation, 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.

  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-25

Document ID: EDOC1000097287

Views: 13751

Downloads: 40

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