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

HomeSupportSwitchesH3C S3610[S5510] Switch SeriesConfigure & DeployConfiguration GuidesH3C S3610[5510] Series Ethernet Switches Operation Manual-Release 0001-(V1.02)
07-MAC-IP-Port Binding Operation
Title Size Download
07-MAC-IP-Port Binding Operation 72 KB

Chapter 1  MAC-IP-Port Binding Configuration

1.1  MAC-IP-Port Binding Overview

MAC-IP-port binding allows a device to filter packets and thus enhance security. With MAC-IP-port binding configured, a port checks whether the source MAC and IP addresses of an inbound packet is identical to the configured MAC-to-IP binding on the port. If so, it forwards the packet; otherwise, it discards the packet.

1.2  Configuring MAC-IP-Port Binding

Follow these steps to configure MAC-IP-port binding:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure MAC-IP-port binding

Bind a MAC-IP address pair to multiple ports

user-bind mac-addr mac-address ip-addr ip-address interface interface-list

Required

Use either approach.

Bind a MAC-IP address pair to  the current port

interface interface-type interface-number

user-bind mac-addr mac-address ip-addr ip-address

 

  Caution:

l      The port in an aggregation group does not support MAC-IP-Port binding configuration.

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.

 

1.3  Displaying and Maintaining MAC-IP-Port Binding

To do…

Use the command…

Remarks

Display the MAC-IP-port binding entries configured on all ports

display user-bind

Available in any view

Display the MAC-IP-port binding entries configured on all ports for a specified MAC address

display user-bind mac-addr mac-address

Display the MAC-IP-port binding entries configured on all ports for a specified IP address

display user-bind ip-addr ip-address

Display the MAC-IP-port binding entries configured on specified ports

display user-bind interface interface-list

 

1.4  MAC-IP-Port Binding Configuration Example

I. Network Requirements

As shown in Figure 1-1, switches LSA and LSB and data terminals DT1, DT2, and DT3 are on an Ethernet. DT1 and DT2 are connected to ports Ethernet 1/0/4 and Ethernet 1/0/5 of LSB respectively, DT3 is connected to port Ethernet 1/0/4 of LSA, while LSB is connected to port Ethernet 1/0/5 of LSA.

Detailed requirements are as follows:

l           On port Ethernet 1/0/4 of LSA, only IP packets with the source MAC address of 00-01-02-03-04-05 and the source IP address of 192.168.0.3 can pass.

l           On port Ethernet 1/0/5 of LSA, only IP packets with the source MAC address of 00-01-02-03-04-06 and the source IP address of 192.168.0.1 can pass.

l           On port Ethernet 1/0/4 of LSB, only IP packets with the source MAC address of 00-01-02-03-04-06 and the source IP address of 192.168.0.1 can pass.

l           On port Ethernet 1/0/5 of LSB, only IP packets with the source MAC address of 00-01-02-03-04-07 and the source IP address of 192.168.0.2 can pass.

II. Network Diagram

Figure 1-1 Network diagram for MAC-IP-port binding

III. Configuration Procedure

1)         Configure LSA

# Configure port Ethernet 1/0/4 of LSA to allow only IP packets with the source MAC address of 00-01-02-03-04-05 and the source IP address of 192.168.0.3 to pass.

<Sysname> system-view

[Sysname] interface ethernet 1/0/4

[Sysname-Ethernet1/0/4] user-bind mac-addr 0001-0203-0405 ip-addr 192.168.0.3

[Sysname-Ethernet1/0/4] quit

# Configure port Ethernet 1/0/5 of LSA to allow only IP packets with the source MAC address of 00-01-02-03-04-06 and the source IP address of 192.168.0.1 to pass.

[Sysname] interface ethernet 1/0/5

[Sysname-Ethernet1/0/5] user-bind mac-addr 0001-0203-0406 ip-addr 192.168.0.1

2)         Configure LSB

# Configure port Ethernet 1/0/4 of LSB to allow only IP packets with the source MAC address of 00-01-02-03-04-06 and the source IP address of 192.168.0.1 to pass.

<Sysname> system-view

[Sysname] user-bind mac-addr 0001-0203-0406 ip-addr 192.168.0.1 interface ethernet 1/0/4

# Configure port Ethernet1/0/5 of LSB to allow only IP packets with the source MAC address of 00-01-02-03-04-07 and the source IP address of 192.168.0.2 to pass.

[Sysname] user-bind mac-addr 0001-0203-0407 ip-addr 192.168.0.2 interface ethernet 1/0/5

 

  • 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
新华三官网