How to Implement the Function of Binding the IP Address, MAC Address, and Interf
|
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 user 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 user 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 V100R002, 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] dhcp snooping check user-bind enable [HUAWEI-Ethernet0/0/1] quit [HUAWEI] vlan 100 [HUAWEI-vlan100] dhcp snooping enable [HUAWEI-vlan100] user-bind static ip-address 10.1.1.1 mac-address 0002-0002-0002 interface Ethernet0/0/1 In V100R003, the configuration is as follows: [HUAWEI] dhcp enable[HUAWEI] dhcp snooping enable [HUAWEI] vlan 100 |

Favorite (0)