- Table of Contents
-
- H3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)
- 00-1Cover
- 01-CLI Commands
- 02-Login Commands
- 03-Configuration File Management Commands
- 04-VLAN Commands
- 05-Extended VLAN Application Commands
- 06-IP Address-IP Performance-IPX Commands
- 07-GVRP Commands
- 08-QinQ Commands
- 09-Port Basic Configuration Commands
- 10-Link Aggregation Commands
- 11-Port Isolation Commands
- 12-Port Binding Commands
- 13-DLDP Commands
- 14-MAC Address Table Commands
- 15-MSTP Commands
- 16-Routing Protocol Commands
- 17-Multicast Commands
- 18-802.1x Commands
- 19-AAA-RADIUS-HWTACACS-EAD Commands
- 20-Traffic Accounting Commands
- 21-VRRP-HA Commands
- 22-ARP Commands
- 23-DHCP Commands
- 24-ACL Commands
- 25-QoS Commands
- 26-Mirroring Commands
- 27-Cluster Commands
- 28-PoE Commands
- 29-UDP-Helper Commands
- 30-SNMP-RMON Commands
- 31-NTP Commands
- 32-SSH Terminal Service Commands
- 33-File System Management Commands
- 34-FTP and TFTP Commands
- 35-Information Center Commands
- 36-DNS Commands
- 37-System Maintenance and Debugging Commands
- 38-HWPing Commands
- 39-RRPP Commands
- 40-NAT-Netstream-Policy Routing Commands
- 41-Telnet Protection Commands
- 42-Hardware-Dependent Software Configuration Commands
- 43-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
12-Port Binding Commands | 33 KB |
Table of Contents
Chapter 1 Port Binding Configuration Commands
1.1 Port Binding Configuration Commands
Chapter 1 Port Binding Configuration Commands
1.1 Port Binding Configuration Commands
1.1.1 am user-bind interface
Syntax
am user-bind { mac-addr mac-address | ip-addr ip-address }* interface-list
undo am user-bind { mac-addr mac-address | ip-addr ip-address } interface-list
View
System view
Parameters
mac-address: MAC address to be bound.
ip-address: IP address to be bound.
interface-list: List of destination ports, expressed in the form of interface-list = interface-type interface-number [ to interface-type interface-number ] &<1-10>, where:
l interface-type represents the type of the port to be bound;
l interface-number represents the number of the port to be bound;
l The to keyword specifies a group of contiguous ports. The port number after the to keyword must be not smaller than that before the to keyword.
l &<1-10> means that you can provide up to 10 port indexes/port index lists for this argument.
Description
Use the am user-bind command to bind the MAC and IP addresses of a legal user to a specified port.
Use the undo am user-bind command to cancel the binding.
After a binding operation, only the packets from a valid user can be forwarded through the port.
& Note:
You can bind up to 100 MAC addresses and IP addresses to one port.
Examples
# Bind the legal user whose MAC address is 000f-e20f-5600 and whose IP address is 10.1.1.1 to port GigabitEthernet 2/0/2.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] am user-bind mac-addr 000f-e20f-5600 ip-addr 10.1.1.1 GigabitEthernet2/0/2
1.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
Parameters
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 packets from a valid user can be forwarded through the current port.
& Note:
You can bind up to 100 MAC addresses and IP addresses to one port.
Examples
# Bind the legal user whose MAC address is 000f-e20f-5600 and whose IP address is 10.1.1.1 to port GigabitEthernet 2/0/2.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface GigabitEthernet2/0/2
[H3C-GigabitEthernet2/0/2] am user-bind mac-addr 000f-e20f-5600 ip-addr 10.1.1.1
1.1.3 display am user-bind
Syntax
display am user-bind [ interface interface-type interface-number | mac-addr | ip-addr ]
View
Any view
Parameters
interface: Specifies to display the binding information of a specified port.
interface-type: Port type.
interface-number: Port number.
mac-addr: Specifies to display the binding information of an MAC address.
ip-addr: Specifies to display the binding information of an IP address.
Description
Use the display am user-bind command to display the information about port binding.
Examples
# Display the information about port binding.
<H3C> display am user-bind
Following address bind have been configured (* means that the rule is set by system):
Mac IP Port
000f-e20f-5101 1.2.3.3 Ethernet3/0/2
000f-e20f-5102 2.3.2.3 Ethernet3/0/4
The display shows that the following MAC addresses and IP addresses are bound to two ports:
l MAC address 000f-e20f-5101 and IP address 1.2.3.3 are bound to Ethernet 3/0/2.
l MAC address 000f-e20f-5102 and IP address 2.3.2.3 are bound to Ethernet 3/0/4.