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