How does the switch implement ip-mac binding?
Many companies need to bind IP-MAC addresses for security reasons. IP-MAC binding can be implemented in a variety of ways, and in this article, I'll show you how each switch performs IP-MAC binding.
Cisco 2950
# enter configuration mode
Switch#config terminal
# enter specific port configuration mode
Switch (config) # Interface fastethernet 0amp 1
# configure port security mode
Switch (config-if) # Switchport port-secruity
# configure the MAC address of the host to be bound to this port
Switch (config-if) # switchport port-security mac-address MAC (MAC address of the host) ip-address 192.168.x.x
Huawei S5700
# enter port configuration
Interface GigabitEthernet 1-0-1
# bind mac and IP of this port
User-bind mac-addr 001a-4d1e-3981 ip-addr 10.100.11.2
Other switches are similar, basically all of them are the same as Xiaoyi. The IP-MAC binding of the switch is based on the switch port, and its function is relatively powerful. But the disadvantage is also obvious, that is, the maintenance and configuration is more complex, especially when there are a large number of clients, it is difficult to maintain. When there are a large number of users, it is more convenient to set it on the gateway router. As shown below: