Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX/QFX] How to track mac-learning-log MAC address updates via SNMP traps



Article ID: KB36186 KB Last Updated: 26 Aug 2020Version: 1.0

The mac-learning-log has limited space and can get overwritten pretty fast in a dynamic environment.

The article illustrates how to configure the MAC Notification feature under the SNMP hierarchy in EX/QFX switches such that a summary of all MAC addresses learned or unlearned during a specified interval is collected by a trap.



The minimum needed configuration is given below:

Under the Simple Network Management Protocol (SNMP) hierarchy

set snmp trap-options source-address <switch's IP>
set snmp trap-group test targets <NMS/SNMPtarget IP address>

Under switch-options  (ELS Junos)

set switch-options mac-notification notification-interval 10

Under ethernet-switching-options (Non-ELS legacy Junos)

set ethernet-switching-options mac-notification notification-interval 10


> show ethernet-switching mac-notification
Notification Status         : Enabled
Notification Interval       : 10  
Notifications Sent          : 5   
Notifications Table Maxsize : 256

These will be sent on the SNMP target as below:

tcpdump output

10:24:40.284340 IP > localhost.localdomain.snmptrap: C="test" Trap(132) E:2636.3.48.1 enterpriseSpecific s=5 34071703 E:2636. E:2636.

More information on the MIB sent in the trap can be found here.



Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search