Add an SNMPv1 or SNMPv2 trap configuration for a host

You can add a trap configuration for a host, enabling the host to receive SNMPv1 or SNMPv2 traps.

To add an SNMPv1 or SNMPv2 trap configuration for a host:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select System > SNMP > SNMP V1/V2 > Trap Configuration.

    The Trap Configuration page displays.

  3. From the Source Interface menu, select the source interface that must be used for the SNMP trap receiver. By default, the following options display in the menu:
    • None: The primary IP address of the originating (outbound) interface is used as the source address.

    • VLAN 1: The primary IP address of VLAN 1 is used as the source address. This is the default selection.

    • Service Port: The management port IP address is used as the source address.

    Depending on the configuration of your switch, the following options can display:

    • Another VLAN ID: The primary IP address of a VLAN other than VLAN 1 is used as the source address.

    • Routing interface: The primary IP address of a routing interface is used as the source address.

    • Routing VLAN: The primary IP address of a VLAN routing interface is used as the source address.

    • Routing loopback interface: The primary IP address of a routing loopback interface is used as the source address.

    • Different: For some features, Different can display. This means that the source interface is configured separately.

  4. In the Community Name field, specify the name of the SNMP community that includes the SNMP management host and the SNMP agent on the device.

    This name can be up to 16 characters and is case-sensitive.

  5. From the Version menu, select the SNMP version to be used by the receiver:
    • SNMPv1: The switch uses SNMPv1 to send traps to the receiver. The default setting is SNMPv1.

    • SNMPv2: The switch uses SNMPv2 to send traps to the receiver.

  6. From the Protocol menu, select the protocol to be used by the receiver:

    Select IPv4 if the receiver's address is an IPv4 address or IPv6 if the receiver's address is an IPv6 address. Or, you can select DNS and enter a domain name.

  7. In the Address field, enter the IPv4 or IPv6 address or the domain name, depending on your selection from the Protocol menu.
  8. Click the Add button.

    The trap configuration is added.

  9. To save the settings to the running configuration, click the Save icon.