Managing Switch Network Addresses and Routes clear mac
12-12 Network Address and Route Management Configuration
Defaults
Ifport‐stringisnotdefinedwiththesetmacmulticastcommand,thenitwillapplytoallports.
Ifthesetmacunicastcommandisusedwithouttheageableparameter,theentrywillbe
permanent.
Mode
Switchcommand,Read‐Write.
Usage
AwarningdisplaysifaunicastMACaddressisenteredaspartofamulticastcommand:
matrix(rw)‐>setmacmulticast00‐02‐ca‐bb‐cc‐dd2fe.1.5
Warning:Unicastaddressconvertedtomulticast01‐02‐CA‐BB‐CC‐DD
Example
ThisexampleshowshowtosettheMACtimeoutperiodto600seconds:
Matrix(rw)->set mac agetime 600
ThisexampleshowshowtoenabletheMACforunicast‐as‐multicast:
Matrix(rw)->set mac unicast-as-multicast enable
clear mac
UsethiscommandtoresetthetimeoutperiodforaginglearnedMACentriestothedefaultvalue
of300seconds,ortoclearMACaddressesoutofthefilteringdatabase(s).
Syntax
clear mac {[all] | [address address] [fid fid] | [vlan-id vlan-id] | [port-string
port-string] [type {learned | mgmt}]} | [agetime] [unicast-as-multicast]
Parameters
unicastmac‐addressfid
receive‐port[ageable]
ThiscommandallowsyoutostaticallyenteraunicastMACaddress
(
mac-address)intoafilteringdatabase(fid)forasingleport(receive-
port
).Thisentrywillbeeitherpermanentorageablewhereitwillage
outsameasadynamicallylearnedMACaddress.
unicast‐as‐
multicast{enable|
disable}
(Optional)enable‐EnablestreatingstaticunicastMACaddressasa
multicastaddressbyextendingthesearchphaseoflayer2lookupto
match
theunlearneddestinationMACaddressagainstthestatic
MulticastMACentries.
disable - Treats static unicast MAC addresses as unicast addresses.
all ClearallMAC addressentries.Thiswillevenclearpermanententries.
addressaddress MACaddresstoclear(ex.00‐01‐F4‐56‐78‐90);ifnotspecified,clear
commandshallbescopedtoallMACaddress.
fidfid Filteringdatabaseidtoclear;ifnotspecified,clearcommandshallbe
scopedto
allfilteringdatabaseids.