H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)

HomeSupportSwitchesH3C S3610[S5510] Switch SeriesReference GuidesCommand ReferencesH3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
07-MAC-IP-Port Binding Command
Title Size Download
07-MAC-IP-Port Binding Command 37 KB

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:

  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.

<Sysname> 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-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

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网