Enabling MAC Accounting for a Router or a Bridge Domain
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 OS 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;
To enable MAC accounting for a bridge domain, include
the mac-statistics
statement at the [edit bridge-domains bridge-domain-name bridge-options]
hierarchy level:
[edit bridge-domains bridge-domain-name bridge-options] mac-statistics;