Related Documentation
- M, MX, T Series
- Gigabit Ethernet Accounting and Policing Overview
- Configuring Gigabit Ethernet Policers
- Configuring Gigabit Ethernet Two-Color and Tricolor Policers
- Configuring a Policer Overhead
- Additional Information
- Junos® OS Ethernet Interfaces
Configuring MAC Address Accounting
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 router), and for Gigabit Ethernet DPCs on MX Series routers, you can configure whether source and destination MAC addresses are dynamically learned. To configure MAC address accounting, include the mac-learn-enable statement at the [edit interfaces interface-name gigether-options ethernet-switch-profile] hierarchy level:
To prohibit the interface from dynamically learning source and destination MAC addresses, include the no-mac-learn-enable statement at the [edit interfaces interface-name gigether-options ethernet-switch-profile] hierarchy level:
MAC address learning is based on source addresses. You can start accounting for traffic after it has been 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.
![]() | Note: DPCs and MPCs support MAC address accounting. DPCs support both source and destination MAC address accounting. MPCs support only source MAC address accounting. |
Related Documentation
- M, MX, T Series
- Gigabit Ethernet Accounting and Policing Overview
- Configuring Gigabit Ethernet Policers
- Configuring Gigabit Ethernet Two-Color and Tricolor Policers
- Configuring a Policer Overhead
- Additional Information
- Junos® OS Ethernet Interfaces
Published: 2012-12-11
Related Documentation
- M, MX, T Series
- Gigabit Ethernet Accounting and Policing Overview
- Configuring Gigabit Ethernet Policers
- Configuring Gigabit Ethernet Two-Color and Tricolor Policers
- Configuring a Policer Overhead
- Additional Information
- Junos® OS Ethernet Interfaces