Foundry NetIron M2404C and M2404F Metro Access Switches
Switch Administration (Rev. 03)
Managing the MAC Address Table © 2008 Foundry Networks, Inc.
Page 12 of 87
Displaying/Hiding MAC Addresses Learned on Specified
VLANs/Interfaces
The
mac-address-table learning-display
command, in Global Configuration mode, enables
displaying the learned MAC addresses on the specified interfaces or VLANs. The
no
form of the
command hides the MAC addresses that are learned on the specified interfaces or VLAN.
By default, displaying the learned MAC addresses is enabled.
Command Syntax
device-name
(config)#
mac-address-table
learning-display interfaces PORT
LIST
device-name
(config)#
no
mac-address-table
learning-display interfaces PORT
LIST
device-name
(config)#
mac-address-table
learning-display vlan VLAN LIST
device-name
(config)#
no
mac-address-table
learning-display vlan VLAN LIST
device-name
(config)#
mac-address-table
learning-display interface
UU/SS/PP
vlan
<
vlan-id>
device-name
(config)#
no
mac-address-table
learning-display interface
UU/SS/PP vlan <vlan-id>
Argument Description
vlan VLAN LIST
List of source VLAN IDs. Use commas as separators and hyphens
to indicate sub-ranges (e.g. 2-4,8).
The VLAN range platform is <1-4093>.
interface
PORT LIST
Port list, in the form
u
[[/
s
[/
p
]]][-
u
[[/
s
[/
p
]]][,
u
[[/
s
[/
p
]]]]]...
Where
u
,
s
and
p
represent a 1- or 2-digit unit number, slot
number and port number respectively. You can specify:
•
u
for all ports on unit number
u
;
•
u/s
for all ports on slot number
s
on unit
u
;
•
u/s/p
for port
p
on slot
s
on unit
u
;
•
a hyphenated range (blank spaces are not allowed);
a list, separated by commas (blank spaces are not allowed).
vlan <vlan-id>
The VLAN identifier in the range <1-4093>.
interface UU/SS/PP
Enables or disables displaying the learned MAC addresses on the
specific interface.
Example 1
The following example shows the command that hides the MAC addresses that are learned on
interface 1/1/13:
device-name
#
show mac-address-table
===+========+====================+==========+===========+==========
# | VID | Mac | PORT | STATUS | PRIORITY|
---+--------+--------------------+----------+-----------+---------+
1 | 0001 | 00:80:00:00:03:01 | 1/1/13 | dynamic | 0 |
2 | 0001 | 00:80:1e:15:60:76 | 1/1/13 | dynamic | 0 |
3 | 0001 | 00:12:f2:00:00:02 | | self | 0 |
4 | 0010 | 00:12:f2:00:00:02 | | self | 0 |