![background image](http://html.mh-extra.com/html/huawei/quidway-s3900-series/quidway-s3900-series_command-manual_169831223.webp)
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 2 Port Binding Commands
Huawei Technologies Proprietary
2-2
[Quidway] am user-bind mac-addr 00e0-fc00-5101 ip-addr 10.153.1.1 interface
Ethernet1/0/1
2.1.2 am user-bind
Syntax
am user-bind mac-addr mac-address ip-addr ip-address
undo am user-bind mac-addr mac-address ip-addr ip-address
View
Ethernet port view
Parameter
mac-address
: MAC address to be bound.
ip-address
: IP address to be bound.
Description
Use the
am user-bind
command to bind the MAC and IP addresses of a legal user to
the current port.
Use the
undo am user-bind
command to cancel the binding.
After such a binding operation, only the valid user's packets can pass through the port.
Note:
The system allows only one binding operation for the same MAC address.
Example
# Bind the legal user whose MAC address is 00e0-fc00-5102 and whose IP address is
10.153.1.2 to Ethernet1/0/2 port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/2
[Quidway-Ethernet1/0/2] am user-bind mac-addr 00e0-fc00-5102 ip-addr
10.153.1.2