Chapter4ServiceConguration
Syntax
setmaclearning{global|port<1-28>|trunk<1-15>|vlan<1-4094>}{enable|disable|mode
{automatic|cpu-controlled}}
ParameterDescription
ParameterDescription
globalCongurestheglobalMACaddresslearningmode.
portCongurestheportMACaddresslearningmode.
<1-28>
Portnumber.Differentdeviceshavedifferentportnumberranges.
Inthesyntax,the5250-28TCdeviceisusedasanexample.
trunkConguresthetrunkMACaddresslearningmode.
<1-15>TrunkID.
vlanCongurestheVLANMACaddresslearningmode.
<1-4094>VLANID.
enableEnablestheMACaddresslearningfunction.
disableDisablestheMACaddresslearningfunction.
mode
FurthercontrolsthelearningmodewhentheMACaddress
learningfunctionisstarted.
automaticAutomaticaddresslearning.
cpu-controlledCPU-controlledlearning.
Guidelines
Invariouscongurationmodes,iflearningenablingconictswithlearningdisabling,
thelearningisdisabled.IfautomaticlearningconictswithCPU-controlledlearning,
CPU-controlledlearningisenabled.
Default
Theautomaticlearningmodeisenabled.
Example
Thefollowingexamplesetstrunk10toCPU-controlledlearning:
zte(cfg)#setmaclearningtrunk10modecpu-controlled
4.7.17setmaclimit
Purpose
ThiscommandsetsthefunctionoflimitingthenumberofMACaddressesbasedon
global/port/trunk/VLAN.
4-101
SJ-20131111172707-003|2013-11-27(R1.0)ZTEProprietaryandCondential