Choose any of these login options:

How to Configure MAC Address Limiting on S27/37/57/67 Interfaces

How to Configure MAC Address Limiting on S27/37/57/67 Interfaces?

Context

When configuring MAC address limiting on an interface, pay attention to the following points:

l In V100R005 and later versions, port security and MAC address limiting cannot be

configured on the same interface. Earlier versions do not have this restriction.

The following steps are performed in V100R005.

Procedure

Step 1 Run the system-view command to enter the system view.

Step 2 Run the interface interface-type interface-number command to enter the interface view.

Step 3 Run the mac-limit maximum max-num command to set the maximum number of MAC

addresses learned on the interface.

By default, the number of MAC addresses learned on an interface is not limited. The interface

discards packets with new source MAC addresses and sends a trap message when the number

of learned MAC addresses reaches the limit.

 

The port-security protect-action { protect | restrict | shutdown } command configures the

port protection action performed by the interface. Before configuring the protection action, run

the port-security enable command to enable the port security function on the interface. The

protection actions are as follows:

l protect

The interface discards packets with new source MAC addresses.

l restrict

The interface discards packets with new source MAC addresses and sends a trap message.

l shutdown

The interface is shut down.

For example, set the maximum number of MAC addresses learned by an interface to 1 and

configure the protection action to protect.

system-view

[Quidway] interface ethernet0/0/1

[Quidway-Ethernet0/0/1] port-security enable

[Quidway-Ethernet0/0/1] port-security protect-action protect

----End

Customers interested in purchasing Huawei switch or the price, please refer to below links:

S5700-48TP-PWR-SI

S5700-28C-PWR-SI

 



share on: Share it! Tweet it! Stumble it! Digg it! Email it!  |  Permalink  |  lookafterpp in Uncategorized | Comment on this
Reader Comments

Post a Comment
Author:
Email:
(Optional)
  
lookafterpp
Reputation: 0 (0%)
Member Since:  Jul 2013
Last activity: 5/13/15, 6:05 pm