Many companies need to bind IP-MAC addresses for security reasons. IP-MAC bindings can be implemented in a variety of ways, and in this article I'll show you how the switches are Ip-mac bound.
Cisco 2950
#进入配置模式
Switch#config Terminal
#进入具体端口配置模式
Switch (config) #Interface fastethernet 0/1
#配置端口安全模式
Switch (config-if) #Switchport port-secruity
#配置该端口要绑定的主机的MAC地址
Switch (config-if) #switchport port-security mac-address mac (host MAC address) Ip-address 192.168.x.x
Huawei S5700
#进入端口配置
Interface Gigabitethernet 1/0/1
#绑定该端口的mac和IP
User-bind mac-addr 001a-4d1e-3981 ip-addr 10.100.11.2
Other switches are similar, basically datong small easy. Switch Ip-mac binding, based on the switch port to achieve, powerful. But the disadvantage is also obvious, is the maintenance and configuration is more complex, especially when the number of clients is more difficult to maintain. The number of users is a bit more convenient to set up on the gateway router. Such as:
650) this.width=650; "Src=" Http://www.imfirewall.com/blog/zb_users/upload/2017/06/201706191497864374510967.png " Style= "width:900px;" title= "201706191497864374510967.png" alt= "201706191497864374510967.png" width= "vspace=" 0 "border=" 0 "/>
650) this.width=650; "Src=" Http://www.imfirewall.com/blog/zb_users/upload/2017/06/201706191497864378870887.png " Style= "width:800px;" title= "201706191497864378870887.png" alt= "201706191497864378870887.png" width= "" vspace= "0 "border=" 0 "/>
How does the switch implement IP-MAC bindings?