Installation manual
-218
Cisco MWR 2941 Mobile Wireless Edge Router Release 3.5 Command Reference, Cisco IOS Release 15.1(3)MR
OL-26895-01
Chapter Cisco MWR 2941 Router Command Reference, Release 15.1(3)MR
mac-address-table learning
mac-address-table learning
To enable MAC-address learning, use the mac-address-table learning command in global configuration
mode. To disable learning, use the no form of this command.
[default] mac-address-table learning {vlan vlan-id [,vlan-id | -vlan-id] | interface interface
slot/port}
no mac-address-table learning {vlan vlan-id | interface interface slot/port}
Syntax Description
Command Default None
Command Modes Global configuration (config)
Command History
Usage Guidelines You can use the vlan vlan-id keyword and argument only on switch-port VLANs. You cannot use the
vlan vlan-id keyword and argument to configure learning on routed interfaces.
You can use the interface interface slot/port keyword and arguments on routed interfaces, supervisor
engines, and DFCs only. You cannot use the interface interface slot/port keyword and arguments to
configure learning on switch-port interfaces or non-DFC modules.
You can only apply this command to Gigabit Ethernet interfaces.
Examples This example shows how to enable MAC-address learning on a VLAN interface:
Router(config)# mac-address-table learning vlan 100
Router(config)#
This example enables MAC-address learning on multiple VLANs.
Router(config)# mac-address-table learning vlan 691,694
Router(config)#
default (Optional) Returns to the default settings.
vlan vlan-id Specifies the VLAN to apply the per-VLAN learning of all MAC addresses; valid
values are from 1 to 4094.
interface Specifies per-interface based learning of all MAC addresses.
interface
slot/port
Interface type, the slot number, and the port number. This command applies only to
Gigabit Ethernet interfaces.
Release Modification
12.2(18)SXE Support for this command was introduced on the Supervisor Engine 720.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
15.0(1)MR This command was integrated into Cisco IOS Release 15.0(1)MR. This release does
not support the module keyword.