2-2 
 
Port Binding Configuration Example 
Port Binding Configuration Example 
Network requirements 
It is required to bind the MAC and IP addresses of Host A to GigabitEthernet 1/0/1 on Switch A, so as to 
prevent malicious users from using the IP address they steal from Host A to access the network. 
Network diagram 
Figure 2-1 Network diagram for port binding configuration 
 
 
 
Configuration procedure 
Configure Switch A as follows: 
# Enter system view. 
<SwitchA> system-view 
# Enter GigabitEthernet 1/0/1 port view. 
[SwitchA] interface GigabitEthernet 1/0/1 
# Bind the MAC address and the IP address of Host A to GigabitEthernet 1/0/1. 
[SwitchA-GigabitEthernet1/0/1] am user-bind mac-addr 0001-0002-0003 ip-addr 10.12.1.1