The mac binding of a Huawei switch to a layer-2 device involves common code for many MAC binding problems of a Huawei switch, therefore, you must first understand the basic knowledge of Layer 2 and Layer 3 before preparing for MAC binding of Huawei switches.
The mac binding of a Huawei switch is costly at the cost of device performance. Sometimes attacks and network faults may cause greater troubles. In addition, the price of three-tier equipment is not affordable for all enterprises. How to bind a MAC address to a two-layer low-end switch to prevent the impact of ARP on the network.
Step 1 for mac binding of a Huawei switch: Go to port settings e0/8, and set mac Number to 0. The red text indicates the commands and parameters that must be manually entered)
Step 2 for mac binding of a Huawei switch: bind port 0015-58aa-3650 to port e0/8. At this time, only the PC bound to the mac can access the Internet through this port, and e0/8 belongs to vlan 2004.
Last step of MAC binding for Huawei switch: Save Configuration
For H3C low-end switches, other steps are the same, but the first step is a little different.
Step 1 for mac binding of a Huawei switch: Go to Port 1 and port 0/8, and set mac number to 1. The red text indicates the commands and parameters that must be manually entered)
Step 2 for mac binding of a Huawei switch: bind port 0015-58aa-3650 to port e1/0/8. At this time, only the PC bound to the mac can access the Internet through this port, and e1/0/8 belongs to vlan 2004.
Last step of MAC binding for Huawei switch: Save Configuration
Remember to press ENTER twice. It feels good to use, but it cannot be executed in batches. If you want to bind multiple MAC ports at a time, then it's okay, And the PCs below will be disconnected; it may be because the vswitch is too low-end. You can only honestly bind it one by one. Note: The order of the two commands cannot be reversed unless the port is not connected to a PC.