Académique Documents
Professionnel Documents
Culture Documents
Procedure
<HUAWEI> system-view //Enter the system view.
[HUAWEI] user-bind static ip-address 10.0.0.1 mac-address 0001-0001-0001 //Create a binding entry for the R&D engineer.
[HUAWEI] user-bind static ip-address 10.0.0.11 mac-address 0002-0002-0002 //Create a binding entry for the human resource employee.
[HUAWEI] interface gigabitethernet 0/0/1 //Enter the GE0/0/1 interface view.
[HUAWEI-GigabitEthernet0/0/1] ip source check user-bind enable //Enable IPSG on GE0/0/1.
[HUAWEI-GigabitEthernet0/0/1] quit //Quit from the GE0/0/1 interface view.
[HUAWEI] interface gigabitethernet 0/0/2 //Enter the GE0/0/2 interface view.
[HUAWEI-GigabitEthernet0/0/2] ip source check user-bind enable //Enable IPSG on GE0/0/2.
[HUAWEI-GigabitEthernet0/0/2] quit //Quit from the GE0/0/2 interface view.
Configuring DHCP Snooping Binding Table
Networking Requirements
All hosts in an enterprise obtain IP addresses through DHCP. Employees can use only
the IP addresses allocated by the DHCP server to access the network, but cannot
change their IP addresses into statistically configured ones.
Configuration Roadmap
1. Configure DHCP snooping on switch_1 so that switch 1 can generate DHCP snooping
binding entries.
2. Enable IPSG in VLAN 10 of switch_1 connected to employees' hosts.
Note: The DHCP-related configurations are not provided here. It is required that DHCP
configurations have been complete and hosts have obtained IP addresses through DHCP.
Procedure
<HUAWEI> system-view //Enter the system view.
[HUAWEI] dhcp enable //Enable DHCP globally.
[HUAWEI] dhcp snooping enable //Enable DHCP Snooping globally.
[HUAWEI] vlan 10 //Enter the VLAN10 view.
[HUAWEI-vlan10] dhcp snooping enable //Enable DHCP snooping in the VLAN view.
[HUAWEI-vlan10] dhcp snooping trusted interface gigabitethernet 0/0/3 //Configure GE0/0/3
connected to the DHCP server as a trusted interface.
[HUAWEI-vlan10] ip source check user-bind enable //Enable IPSG based on VLAN.
[HUAWEI-vlan10] quit //Quit from the VLAN view.