Command Manual ( For Soliton ) – Port Security-Port Binding
H3C S3100 Series Ethernet Switches
Chapter 2 Port Binding Commands
2-2
Note:
z
An IP address can be bound with only one port at a time.
z
A MAC address can be bound with only one port at a time.
Examples
# In system view, bind the MAC address 00e0-fc00-5101 and IP address 10.153.1.1
(supposing they are MAC and IP addresses of a legal user) to Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] am user-bind mac-addr 00e0-fc00-5101 ip-addr 10.153.1.1 interface
Ethernet1/0/1
# In Ethernet pot view, bind the MAC address 00e0-fc00-5102 and IP address
10.153.1.2 (supposing they are MAC and IP addresses of a legal user) to Ethernet
1/0/2.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet1/0/2
[Sysname-Ethernet1/0/2] am user-bind mac-addr 00e0-fc00-5102 ip-addr
10.153.1.2
2.1.2 display am user-bind
Syntax
display am user-bind
[
interface interface-type interface-number
|
ip-addr ip-address
|
mac-addr mac-address
]
View
Any view
Parameters
interface interface-type interface-number
: Specify the port to be bound. The
interface-type interface-number
arguments indicate the port type and port number.
ip-addr ip-address
: Specify the IP address to be bound.
mac-addr mac-address
: Specify the MAC address to be bound. The
mac-address
argument is in the form of H-H-H.
Description
Use the
display am user-bind
command to display port binding information.