How to implement the function of binding the IP address, MAC address, and interface through configurations

The Switch implements the function of binding the IP address, MAC address, and interface through the DHCP snooping static binding table.

To implement the function, configure the static binding table on a VLAN with the IP address and MAC address of the PC being the IP address and MAC address of the static binding table. Then configure the function of checking IP and ARP packets on the interface that connects the PC and Switch.

For example, to bind the IP address 10.1.1.1, MAC address 0002-0002-0002, and interface Ethernet 0/0/1, run the following commands:

In V100R005 and V100R006, the configuration is as follows:

[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] vlan 100
[HUAWEI-vlan100] quit
[HUAWEI] interface Ethernet 0/0/1
[HUAWEI-Ethernet0/0/1] port default vlan 100
[HUAWEI-Ethernet0/0/1] ip source check user-bind enable
[HUAWEI-Ethernet0/0/1] quit
[HUAWEI] vlan 100
[HUAWEI-vlan100] dhcp snooping enable
[HUAWEI-vlan100] quit
[HUAWEI] user-bind static ip-address 10.1.1.1 mac-address 0002-0002-0002 interface Ethernet0/0/1

Scroll to top