[an error occurred while processing this directive] [an error occurred while processing this directive]

mac-learn-enable

Syntax

(mac-learn-enable | no-mac-learn-enable);

Hierarchy Level

[edit interfaces interface-name gigether-options ethernet-switch-profile],
[edit interfaces interface-name aggregated-ether-options ethernet-switch-profile]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

For Gigabit Ethernet IQ and Gigabit Ethernet PICs with SFPs (except the 10-port Gigabit Ethernet PIC and the built-in Gigabit Ethernet port on the M7i platform), configure whether source and destination MAC addresses are dynamically learned:

  • mac-learn-enable—Allow the interface to dynamically learn source and destination MAC addresses.
  • no-mac-learn-enable—Prohibit the interface from dynamically learning source and destination MAC addresses.

MAC address learning is based on source addresses. You can start accounting for traffic after there has been traffic sent from the MAC address. Once the MAC address is learned, the frames and bytes transmitted to or received from the MAC address can be tracked.

Usage Guidelines

See Configuring Gigabit Ethernet Policers.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.


Updated: 2009-04-07

[an error occurred while processing this directive]