Configuring Port Binding
Follow these steps to configure port binding:
To do...
Enter system view
Bind the MAC
address and
IP address of
a user to a
specific port
An IP address can be bound to only one port at a time.
A MAC address can be bound to only one port at a time.
For the same port, port-IP-MAC binding is mutually exclusive with port-IP binding.
Displaying and Maintaining Port Binding Configuration
To do...
Display port binding
information
Display IPv6 port
binding information
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.
system-view
am user-bind mac-addr mac-address
In system
{ ip-addr ip-address s | ipv6
view
ipv6-address } [ interface interface-type
interface-number ]
interface interface-type interface-number
In Ethernet
am user-bind { mac-addr mac-address
port view
[ ip-addr ip-address | ipv6 ipv6-address ] |
ip-addr ip-address | ipv6 ipv6-address }
display am user-bind [ interface interface-type
interface-number | ip-addr ip-address | mac-addr
mac-address ]
display am user-bind ipv6 [ interface
interface-type interface-number | ipv6-address |
mac-address mac-address | unit unit-id ]
Use the command...
Use the command...
2-2
Remarks
—
Either is required.
By default, no user
MAC address or IP
address is bound to a
port.
Remarks
Available in any
view