learning disable (VPLS)
To override the MAC learning configuration of a parent bridge or to set the MAC learning configuration of
a bridge, use the learning disable command in L2VPN bridge group bridge domain MAC configuration
mode. To disable this feature, use the no form of this command.
learning disable
no learning disable
Syntax Description
This command has no keywords or arguments.
Command Default
By default, learning is enabled on all bridge domains and all interfaces on that bridge inherits this behavior.
Command Modes
L2VPN bridge group bridge domain MAC configuration
Command History
ModificationRelease
This command was introduced.Release 3.7.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
When set, the learning disable command stops all MAC learning either on the specified interface or the
bridge domain.
Task ID
OperationsTask ID
read, writel2vpn
Examples
In the following example, MAC learning is disabled on all ports in the bridge domain called bar, which is
applied to all interfaces in the bridge unless the interface has its own MAC learning enable command.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# l2vpn
RP/0/0/CPU0:router(config-l2vpn)# bridge group 1
RP/0/0/CPU0:router(config-l2vpn-bg)# bridge-domain bar
RP/0/0/CPU0:router(config-l2vpn-bg-bd)# mac
RP/0/0/CPU0:router(config-l2vpn-bg-bd-mac)# learning disable
Cisco IOS XR Virtual Private Network Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28460-01 171
Virtual Private LAN Services Commands
learning disable (VPLS)