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

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
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).
Configuring IPSG Based on DHCP Snooping Dynamic Binding Table

Configuring IPSG Based on DHCP Snooping Dynamic Binding Table

IPSG based on a DHCP snooping dynamic binding table filters IP packets received by untrusted interfaces, to prevent malicious hosts from stealing authorized hosts' IP addresses to access the network without permission. IPSG based on a dynamic binding table is applicable to the LAN where a large number of hosts reside and the hosts obtain IP addresses through DHCP. The configuration procedure is as follows:

  1. Configure DHCP snooping so that a DHCP snooping dynamic binding table is generated.
    1. Run the dhcp enable command in the system view to enable DHCP globally.
    2. Run the dhcp snooping enable command in the system view to enable DHCP snooping globally.
    3. Run the dhcp snooping enable command in the interface or VLAN view to enable DHCP snooping on the interface or in the VLAN.
    4. Run the dhcp snooping trusted command in the interface view or the dhcp snooping trusted interface interface-type interface-number command in the VLAN view to configure a trusted interface.

      The device directly forwards the IP packets received by the trusted interface without checking them against the binding entry.

  2. Run the ip source check user-bind enable command in the interface or VLAN view to enable IPSG.

The following example shows how to configure IPSG based on DHCP snooping dynamic binding table:

# Configure DHCP snooping, specify GE1/0/1 as a trusted interface, and enable IPSG on GE0/0/2.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] dhcp snooping trusted
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] interface gigabitethernet 0/0/2
[HUAWEI-GigabitEthernet0/0/2] dhcp snooping enable
[HUAWEI-GigabitEthernet0/0/2] ip source check user-bind enable

# Configure DHCP snooping, specify GE1/0/1 as a trusted interface, and enable IPSG in VLAN 10.

<HUAWEI> system-view
[HUAWEI] vlan batch 10
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type trunk 
[HUAWEI-GigabitEthernet1/0/1] port trunk allow-pass vlan 10
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] vlan 10
[HUAWEI-vlan10] dhcp snooping enable
[HUAWEI-vlan10] dhcp snooping trusted interface gigabitethernet 1/0/1
[HUAWEI-vlan10] ip source check user-bind enable
Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 89747

Downloads: 12198

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