07 MAC IP Port Binding Command
Transcript of 07 MAC IP Port Binding Command
-
7/28/2019 07 MAC IP Port Binding Command
1/5
Command Manual - MAC-IP-Port BindingQuidway S3500-EA Series Ethernet Switches Table of Contents
Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
i
Table of Contents
Chapter 1 MAC-IP-Port Binding Configuration Commands...................................................... 1-11.1 MAC-IP-Port Binding Configuration Commands ............................................................... 1-1
1.1.1 display user-bind..................................................................................................... 1-11.1.2 display user-bind interface ...................................................................................... 1-11.1.3 display user-bind ip-addr......................................................................................... 1-21.1.4 display user-bind mac-addr..................................................................................... 1-31.1.5 user-bind ................................................................................................................. 1-4
-
7/28/2019 07 MAC IP Port Binding Command
2/5
Command Manual - MAC-IP-Port BindingQuidway S3500-EA Series Ethernet Switches
Chapter 1 MAC-IP-Port Binding ConfigurationCommands
Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-1
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.
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 interfaceinterface-list
View
Any view
-
7/28/2019 07 MAC IP Port Binding Command
3/5
Chapter 1 MAC-IP-Port Binding ConfigurationCommands
Command Manual - MAC-IP-Port BindingQuidway S3500-EA Series Ethernet Switches
1-2 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
Parameter
interface-list: Ethernet interface list, in the format of { interface-num [ to
interface-num ] }&, where & 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.
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.
display user-bind interface Ethernet 1/0/4 Ethernet 1/0/5 Ethernet
1/0/9
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/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.
display user-bind interface Ethernet 1/0/10 to Ethernet 1/0/15
The Following User address bind have been configured:
Mac IP Port
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-addrip-address
-
7/28/2019 07 MAC IP Port Binding Command
4/5
Command Manual - MAC-IP-Port BindingQuidway S3500-EA Series Ethernet Switches
Chapter 1 MAC-IP-Port Binding ConfigurationCommands
Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-3
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. 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-addrmac-address
View
Any view
Parameter
mac-address: MAC address, in the format of H-H-H.
Description
Use the display user-bind mac-addrcommand 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.
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
-
7/28/2019 07 MAC IP Port Binding Command
5/5
Chapter 1 MAC-IP-Port Binding ConfigurationCommands
Command Manual - MAC-IP-Port BindingQuidway S3500-EA Series Ethernet Switches
1-4 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
-------------1 bind entries queried, 1 listed------------
1.1.5 user-bind
Syntax
user-bind mac-addrmac-address ip-addrip-address [ interfaceinterface-list]
undouser-bind mac-addrmac-address ip-addrip-address[ interfaceinterface-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 ] }&, where & 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-addrip-addrcommand to remove the configuration.
Note:
z The option interface interface-list is required in system view, but must not be
included in Ethernet port view.
z Currently, the devices 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.
z 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.z 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