Mac-Address Mac-Learning Disable - HP 6125G Command Reference Manual

Layer 2 - lan switching
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

interface interface-type interface-number: Specifies an outbound interface by its type and number.
Description
Use mac-address to add or modify a MAC address entry.
Use undo mac-address to remove one or all MAC address entries.
By default, no MAC address entry is configured in the system.
A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry. A
dynamic MAC address entry can be overwritten by a static or blackhole MAC address entry.
If you execute the undo mac-address command without specifying any parameters, this command
deletes all unicast MAC address entries and static multicast MAC address entries.
You can delete all the MAC address entries (including unicast MAC address entries and static multicast
MAC address entries) of a VLAN, or you can choose to delete a specific type (dynamic, static, or
blackhole) of MAC address entries only. You can single out certain ports and delete the corresponding
unicast MAC address entries, but not the corresponding static multicast MAC address entries.
The MAC address entries configuration cannot survive a reboot unless you save it. The dynamic MAC
address table entries, however, are lost at next reboot regardless of whether or not you save the
configuration.
Related commands: display mac-address.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are sent
out of port GigabitEthernet 1/0/1 which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface gigabitethernet 1/0/1 vlan 2

mac-address mac-learning disable

Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
View
System view, Layer 2 Ethernet interface view, VLAN view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use mac-address mac-learning disable to disable MAC address learning. Depending on the view that
you entered, you can disable it globally, on a Layer 2 interface, or on a VLAN.
Use undo mac-address mac-learning disable to enable MAC address learning. Depending on the view
that you entered, you can disable it globally, on a Layer 2 interface, or on a VLAN.
By default, MAC address learning is enabled.
Follow these guidelines when you configure MAC address learning:
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents