SNMP Traps Not Being Received at NMS
Presenting Symptom
The NMS is not receiving SNMP traps from a Cisco router, although the router is configured to send them.
Network Context
A small branch office with a Cisco 4321 ISR router (IOS XE 16.9) connects to the corporate NMS over a WAN link. The router is configured with SNMPv2c and sends traps to the NMS IP 10.1.1.100. The NMS is reachable via ping from the router.
Diagnostic Steps
Verify SNMP configuration on the router
show running-config | include snmpsnmp-server community public RO snmp-server community private RW snmp-server enable traps snmp-server host 10.1.1.100 version 2c public
Check that snmp-server enable traps and snmp-server host are present. If missing, traps won't be sent. Also verify community string matches NMS.
Check if traps are being generated
show snmp pendingThere are no SNMP pending requests.
If pending requests exist, traps may be queued but not sent. If empty, traps are either sent or not generated.
Verify trap delivery with debug
debug snmp packetsSNMP: Packet sent via UDP to 10.1.1.100:162 SNMP: Response, reqid 12345, errstat 0, erridx 0
Look for 'Packet sent' lines. If no output when a trap should be sent (e.g., interface down), traps are not being generated or sent. If 'Packet sent' appears but NMS doesn't receive, check network path.
Check if SNMP traps are reaching the NMS
ping 10.1.1.100Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
If ping fails, there is a connectivity issue. If ping succeeds, the problem is likely at the NMS (e.g., SNMP service not listening, firewall blocking UDP 162).
Root Cause
The NMS is not listening on UDP port 162, or a firewall between the router and NMS is blocking SNMP traps (UDP port 162).
Resolution
Verification
On the router, generate a test trap (e.g., shut/no shut an interface) and run 'debug snmp packets' to see the trap sent. On the NMS, verify trap receipt in the SNMP trap log.
Prevention
1. Use SNMPv3 for secure and reliable trap delivery. 2. Implement SNMP trap monitoring with alerts for trap loss. 3. Document firewall rules and NMS configuration for SNMP traps.
CCNA Exam Relevance
CCNA 200-301 exam tests SNMP configuration and troubleshooting. Questions may present a scenario where traps are not received and ask for the most likely cause (e.g., wrong community string, NMS unreachable, SNMP not enabled). Candidates must know the 'snmp-server host' and 'snmp-server enable traps' commands.
Exam Tips
Remember that SNMP traps use UDP port 162, and the NMS must be listening on that port.
The 'snmp-server host' command requires the community string to match the NMS configuration.
Use 'show snmp' to verify SNMP statistics and 'debug snmp packets' for real-time trap debugging.
Commands Used in This Scenario
Test Your CCNA Knowledge
Practice with scenario-based questions to prepare for the CCNA 200-301 exam.
Practice CCNA Questions