Managing Switch Network Addresses and Routes show mac
12-10 Network Address and Route Management Configuration
show mac
UsethiscommandtodisplaythetimeoutperiodforaginglearnedMACaddresses,andtoshow
MACaddressesintheswitch’sfilteringdatabase.
Syntax
show mac [agetime] [address mac-address] [fid fid] [vlan-id vlan-id] [port-string
port-string] [type {other | invalid | learned | self | mgmt}] [field-decode]
[unicast-as-multicast] [-verbose]
Parameters
Defaults
Ifnoparametersarespecified,allMACaddressesforthedevicewillbedisplayed.
Mode
Switchcommand,Read‐Only.
Usage
Theseareaddresseslearnedonaportthroughtheswitchingprocessorstaticallyentered.Toshow
portMACaddressesprogrammedintothedeviceduringmanufacturing,usetheshowportmac
commandasdescribedin“showportmac”onpage 12‐9.
Examples
ThisexampleshowshowtodisplaytheMACaddresstimeoutperiod:
Matrix(rw)->show mac agetime
Aging time: 300 seconds
ThisexampleshowshowtodisplayMACaddressinformationforFastEthernetport3inmodule
1:
agetime (Optional)DisplaythetimeinsecondsthatalearnedMACaddresswill
stayinthefilteringdatabase.
addressmac‐address (Optional)DisplaysaspecificMACaddress(ifitisknownbythe
device).
fid
fid (Optional)DisplaysMACaddressesforaspecificfilterdatabase
identifier.
vlan‐id
vlan-id (Optional)DisplaysMACaddressesforaspecificVLANbasedonthe
VLANID,forstaticmulticastentriesonly.
port‐stringport‐string (Optional)DisplaysMACaddressesforaspecificportorrangeofports.
Foradetaileddescriptionofpossibleport‐stringvalues,referto“Port
StringSyntaxUsedinthe
CLI”onpage 4 ‐2.
typeother|invalid|
learned|self|mgmt
(Optional)DisplayMACaddressesdefinedasother,invalid,learned,
selformgmt(management).
field‐decode (Optional)Displaythemeaningsofthefieldsintheshowmac
command.
unicast‐as‐
multicast
(Optional)DisplaymatchesofunlearneddestinationMACaddress
againstthestaticmulticastMACentries.
‐verbose (Optional)DisplaysallMACaddressinformationindetail.