2-2
To do...
Use the command...
Remarks
interface
interface-type interface-number
specific port
In Ethernet
port view
am user-bind
{
mac-addr mac-address
[
ip-addr ip-address
] |
ip-addr
ip-address
}
address is bound to a
port.
z
An IP address can be bound to only one port at a time.
z
A MAC address can be bound to only one port at a time.
z
For the same port, port-IP-MAC binding is mutually exclusive with port-IP binding.
Displaying and Maintaining Port Binding Configuration
To do...
Use the command...
Remarks
Display port binding
information
display am user-bind
[
interface interface-type
interface-number
|
ip-addr ip-address
|
mac-addr
mac-address
]
Available in any
view
Port Binding Configuration Example
Port Binding Configuration Example
Network requirements
It is required to bind the MAC and IP addresses of Host A to Ethernet 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
10.12.1.1/24
MAC address: 0001-0002-0003
Host A
Host B
Eth1/0/1
Switch A
Switch B