Configuring the mac learning limit on a vlan, Enabling mac address migration log notifying – H3C Technologies H3C S12500 Series Switches User Manual

Page 63

Advertising
background image

50

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter Ethernet interface, port
group, or Layer 2 aggregate

interface view.

Enter Ethernet interface view:
interface

interface-type

interface-number

Enter port group view:

port-group manual

port-group-name

Enter Layer 2 aggregate

interface view:

interface bridge-aggregation

interface-number

Use any command.
Settings in Ethernet
interface view or Layer

2 aggregate interface

view take effect on the
current port only.

Settings in port group

view take effect on all
the member ports in the

port group.

3.

Configure the MAC learning
limit on an interface, and

configure whether frames with

unknown source MAC
addresses can be forwarded

when the MAC learning limit is

reached.

mac-address
max-mac-count
{

count |

disable-forwarding }

By default, the
maximum number of

MAC addresses that

can be learned on an
interface is not

specified, and frames

with unknown source
MAC addresses are

forwarded when the

MAC learning limit is
reached.

Configuring the MAC learning limit on a VLAN

You can also limit the number of MAC addresses that can be learned on a per-VLAN basis.
To configure the MAC learning limit on a VLAN:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter VLAN view.

vlan vlan-id

N/A

3.

Configure the MAC leaning
limit on a VLAN, and

configure whether or not
frames with unknown source

MAC addresses can be

forwarded in the VLAN when
the upper limit is reached.

mac-address
max-mac-count

{

count |

disable-forwardin

g }

By default, the maximum
number of MAC addresses

that can be learned on a
VLAN is not specified, and

frames with unknown source

MAC addresses are
forwarded when the MAC

learning limit is reached.

Enabling MAC address migration log notifying

To discover and locate Layer 2 loops, you can enable MAC address migration log notifying.
MAC address migration refers to this process: a device learns a MAC address from an interface, Port A

for example, and the device later learns the MAC address from another interface, Port B for example. If

Advertising
This manual is related to the following products: