When you config the switch for traps with snmp-server enable traps MAC-Notification, do you still need to include the trap type after configuring the host?
The short answer is no, you don't have to include the trap type after the host, but the real answer is it depends on what the question is asking you to do.
When you config the switch for traps with snmp-server enable traps MAC-Notification, do you still need to include the trap type after configuring the host?
Comments
We do not have vlan 28 any whereelse in the topology besides sw2 svi and bb2 connected on f0/24.
Hey All,
Quick question about traps.
When you config the switch for traps with snmp-server enable traps MAC-Notification, do you still need to include the trap type after configuring the host?
snmp-server host 187.1.3.100 CISCOTRAP MAC-Notification
Could we snmp-server host 187.1.3.100 CISCOTRAP, since we had already configured the traps above?
Thanks!
You're asking what's the difference between these two right?
!
snmp-server host 187.1.3.100 CISCOTRAP
snmp-server enable traps mac-notification change
!
--------------------------------------------------------
!
snmp-server host 187.1.3.100 CISCOTRAP mac-notification
!
I think the difference is in the second example, the host 187.1.3.100 can be sent mac-notifications only, and no other trap type.
So if the question hints that the host shouldn't receive any other traps I'd configure it as:
!
snmp-server host 187.1.3.100 CISCOTRAP mac-notification
!
The short answer is no, you don't have to include the trap type after the host, but the real answer is it depends on what the question is asking you to do.
Yes it is okay if you don't incude the notification-type on snmp-server host command. But still depends on the task details