By default, MAC accounting is disabled. On MX-series routers, you can enable packet accounting either for the router as a whole or for a specific bridge domain. After you enable packet accounting, the JUNOS software maintains packet counters for each MAC address learned.
To enable MAC accounting for an MX-series router, include the global-mac-statistics statement at the [edit protocols l2-learning] hierarchy level:
- [edit protocols l2-learning]
-
global-mac-statistics;