ZXR10 2900E Series Command Reference
Command Mode
Global configuration mode
Syntax
set mac learning
{
global
|
port
<
1-28
>|
trunk
<
1-15
>|
vlan
<
1-4094
>}{
enable
|
disable
|
mode
{
automatic
|
cpu-controlled
}}
Parameter Description
Parameter
Description
global
Configures the global MAC address learning mode.
port
Configures the port MAC address learning mode.
<
1-28
>
Port number. Different devices have different port number ranges.
In the syntax, the 2928E device is used as an example.
trunk
Configures the trunk MAC address learning mode.
<
1-15
>
Trunk ID.
vlan
Configures the VLAN MAC address learning mode.
<
1-4094
>
VLAN ID.
enable
Enables the MAC address learning function.
disable
Disables the MAC address learning function.
mode
Further controls the learning mode when the MAC address
learning function is started.
automatic
Automatic address learning.
cpu-controlled
CPU-controlled learning.
Guidelines
In various configuration modes, if learning enabling conflicts with learning disabling,
the learning is disabled.
If automatic learning conflicts with CPU-controlled learning,
CPU-controlled learning is enabled.
Default
The automatic learning mode is enabled.
Example
The following example sets trunk 10 to CPU-controlled learning:
zte(cfg)#set mac learning trunk 10 mode cpu-controlled
4-100
SJ-20130731155059-003|2013-11-27 (R1.0)
ZTE Proprietary and Confidential