- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
- 00-1Cover
- 01-Login Command
- 02-VLAN Command
- 03-IP Address and Performance Command
- 04-QinQ-BPDU Tunnel Command
- 05-Port Correlation Configuration Command
- 06-MAC Address Table Management Command
- 07-MAC-IP-Port Binding Command
- 08-MSTP Command
- 09-Routing Overview Command
- 10-IPv4 Routing Command
- 11-IPv6 Routing Command
- 12-IPv6 Configuration Command
- 13-Multicast Protocol Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-ARP Command
- 17-DHCP Command
- 18-ACL Command
- 19-QoS Command
- 20-Port Mirroring Command
- 21-Cluster Management Command
- 22-UDP Helper Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-File System Management Command
- 27-Information Center Command
- 28-System Maintenance and Debugging Command
- 29-NQA Command
- 30-VRRP Command
- 31-SSH Command
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
07-MAC-IP-Port Binding Command | 37 KB |
Table of Contents
Chapter 1 MAC-IP-Port Binding Configuration Commands
1.1 MAC-IP-Port Binding Configuration Commands
1.1.2 display user-bind interface
1.1.3 display user-bind ip-addr
1.1.4 display user-bind mac-addr
Chapter 1 MAC-IP-Port Binding Configuration Commands
1.1 MAC-IP-Port Binding Configuration Commands
1.1.1 display user-bind
Syntax
display user-bind
View
Any view
Parameter
None
Description
Use the display user-bind command to display the MAC-IP-port binding entries configured on all ports.
Example
# Display the MAC-IP-port binding entries configured on all ports.
<Sysname> display user-bind
The Following User address bind have been configured:
Mac IP Port
0007-0001-0005 200.201.202.205 Ethernet1/0/4
0007-0001-0005 200.201.202.205 Ethernet1/0/5
0007-0001-0005 200.201.202.205 Ethernet1/0/7
-------------3 bind entries queried, 3 listed------------
1.1.2 display user-bind interface
Syntax
display user-bind interface interface-list
View
Any view
Parameter
interface-list: Ethernet interface list, in the format of { interface-num [ to interface-num ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 port ranges. A port range defined without the to interface-type interface-num portion comprises only one port.
Description
Use the display user-bind interface command to display the MAC-IP-port binding entries configured on specified ports.
Example
# Display the MAC-IP-port binding entries configured on port Ethernet 1/0/4.
<Sysname> display user-bind interface Ethernet 1/0/4
The Following User address bind have been configured:
Mac IP Port
0007-0001-0005 200.201.202.205 Ethernet1/0/4
-------------1 bind entries queried, 1 listed------------
# Display the MAC-IP-port binding entries configured on ports Ethernet 1/0/4, Ethernet 1/0/5, and Ethernet 1/0/9.
<Sysname> display user-bind interface Ethernet 1/0/4 Ethernet 1/0/5 Ethernet 1/0/9
The Following User address bind have been configured:
0007-0001-0005 200.201.202.205 Ethernet1/0/4
0007-0001-0005 200.201.202.205 Ethernet1/0/5
0007-0001-0005 200.201.202.205 Ethernet1/0/9
-------------3 bind entries queried, 3 listed ------------
# Display the MAC-IP-port binding entries configured on ports Ethernet 1/1 to Ethernet 1/5 and ports Ethernet 1/0/10 to Ethernet 1/0/15.
<Sysname> display user-bind interface Ethernet 1/0/10 to Ethernet 1/0/15
The Following User address bind have been configured:
0007-0001-0005 200.201.202.205 Ethernet1/0/10
0007-0001-0005 200.201.202.205 Ethernet1/0/11
0007-0001-0005 200.201.202.205 Ethernet1/0/12
-------------3 bind entries queried, 3 listed ------------
1.1.3 display user-bind ip-addr
Syntax
display user-bind ip-addr ip-address
View
Any view
Parameter
ip-address: IP address, in dotted decimal notation.
Description
Use the display user-bind ip-addr command to display the MAC-IP-port binding entries configured on all ports for a specified IP address.
Example
# Display the MAC-IP-port binding entries configured on all ports for IP address 192.168.0.2.
<Sysname> display user-bind ip-addr 192.168.0.2
The Following User address bind have been configured:
Mac IP Port
0007-0001-0001 192.168.0.2 Ethernet1/0/22
-------------1 bind entries queried, 1 listed------------
1.1.4 display user-bind mac-addr
Syntax
display user-bind mac-addr mac-address
View
Any view
Parameter
mac-address: MAC address, in the format of H-H-H.
Description
Use the display user-bind mac-addr command to display the MAC-IP-port binding entries configured on all ports for a specified MAC address.
Example
# Display the MAC-IP-port binding entries configured on all ports for MAC address 0001-0002-0003.
<Sysname> display user-bind mac-addr 0001-0002-0003
The Following User address bind have been configured:
Mac IP Port
0001-0002-0003 1.1.1.1 Ethernet1/0/30
-------------1 bind entries queried, 1 listed------------
1.1.5 user-bind
Syntax
user-bind mac-addr mac-address ip-addr ip-address [ interface interface-list ]
undo user-bind mac-addr mac-address ip-addr ip-address [ interface interface-list ]
View
System view/Ethernet port view
Parameter
mac-address: MAC address, in the format of H-H-H.
ip-address: IP address, in dotted decimal notation.
interface interface-list: Ethernet interface list, in the format of { interface-num [ to interface-num ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 port ranges. A port range defined without the to interface-type interface-num portion comprises only one port.
Description
Use the user-bind mac-addr ip-addr command to bind a MAC-IP address pair to multiple ports in system view or to the current port in Ethernet port view.
Use the undo user-bind mac-addr ip-addr command to remove the configuration.
Note:
l The option interface interface-list is required in system view, but must not be included in Ethernet port view.
l S3610&S5510 Series Ethernet Switches differentiate binding through “MAC address + IP address + port”. You can bind a MAC address with only one IP address and vice versa. However, you can bind a MAC-IP pair to multiple ports.
l MAC-IP-port binding is on a per-port basis, that is, a port with MAC-IP-port binding enabled filters packets independently; it does not affect any other port.
l The MAC address to be bound cannot be all 0s, all Fs, or a multicast address. The IP address can only be a Class A, Class B, or Class C address and can neither be 127.x.x.x nor 0.0.0.0.
Example
# Bind a MAC-IP pair to port Ethernet 1/0/2 in system view.
[Sysname] user-bind mac-addr 0001-0001-0001 ip-addr 192.168.0.1 interface Ethernet 1/0/2