Chapter5ServiceConguration
CommandFunction
zte(cfg)#setmacaddpermanent<HH.HH.HH.HH.HH.
HH>port<1-28>vlan<1-4094>
AddsapermanentMACaddressentry
basedontheportandtheVLAN.
zte(cfg)#setmacaddpermanent<HH.HH.HH.HH.HH.
HH>trunk<1-15>vlan<1-4094>
AddsapermanentMACaddressentry
basedonthetrunkandtheVLAN.
zte(cfg)#setmacdeleteDeletesallMACaddressentries.
zte(cfg)#setmacdeletemac-address<HH.HH.HH.HH.H
H.HH>vlan<1-4094>
DeletesaMACaddressentry.
zte(cfg)#setmacdelete{port<1-28>|trunk<1-15>|
vlan<1-4094>}[dynamic|static|permanent]
Deletesalldynamic/static/permanentMAC
addressentriesbasedonport/trunk/VLAN.
zte(cfg)#setmacdeletedynamicDeletesalldynamicMACaddressentries.
zte(cfg)#setmacdeletepermanentDeletesallpermanentMACaddress
entries.
zte(cfg)#setmacdeletestaticDeletesallstaticMACaddressentries.
zte(cfg)#setmacaging-time<60-600>SetsdeviceMACaddressagingtime.
zte(cfg)#setmacfilter{source|destination|
both}<HH.HH.HH.HH.HH.HH>vlan<1-4094>
SetsthesourceMACaddressor
destinationMACaddresslterfunction.
zte(cfg)#setmaclearning{global|port<1-28>|trunk
<1-15>|vlan<1-4094>}{enable|disable|mode{automatic
|cpu-controlled}}
SetsMACaddresslearningmodebased
onglobal/port/trunk/VLAN.
zte(cfg)#setmaclimit{global|port<1-28>|trunk
<1-15>|vlan<1-4094>}limit-num<0-16384>
SetstheMACaddressnumberlimit
functionbasedonglobal/port/trunk/VLAN.
zte(cfg)#setmacunknown-filter{global|port<1-28>|
trunk<1-15>}limit-num<0-16384>
Setsthefunctionoflteringunknown
sourcepacketsbasedonglobal/port/trunk.
zte(cfg)#setmactopermanent{port<1-28>|trunk
<1-15>}{enable|disable|max-number<1-128>}
SetsthefunctionofconvertingMAC
addressesaspermanentinbatches.
zte(cfg)#setmactopermanentauto-save-time
<300-7200>
SetsthetimewhenMACaddresses
convertedtopermanentonesare
automaticallysaved.
zte(cfg)#setmactostatic{port<1-28>|trunk<1-15>|
vlan<1-4094>}{enable|disable}
SetsthefunctionofconvertingMAC
addresstostaticonesinbatches.
zte(cfg)#setmaclogging-alarm{station-move|
threshold-state}{enable|disable}
EnablesordisablestheMACeventalarm
function.
zte(cfg)#setmaclogging-alarminterval<1-256>SetstheMACeventalarmoutputinterval.
zte(cfg)#setmacprotectport<1-28>action{shutdown|
restrict|protect}
SetstheMACprotectionaction.
zte(cfg)#setmacprotectport<1-28>{enable|disable}EnablesordisablestheMACprotection
function.
5-15
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential