SNMP trap route settings

Source: Internet
Author: User

In the SNMP protocol, we often apply it to the configuration of hardware. With the popularization of SNMP, SNMP is added by default to almost all devices. Today we will focus on the SNMP trap settings in Cisco devices. The following figure shows the specific settings.

1. Set IOS devices (routers)

 
 
  1. Config terminal enters the global configuration status
  2. Enable Cdp run
  3. Snmp-server community gsunion ro: configure the read-only string of this vro as gsunion
  4. Snmp-server community gsunion rw: configure the read/write string of the vro as gsunion.
  5. S nmp-server enable traps allows the router to send all types of SNMP traps
  6. Snmp-server host IP-address-server traps trapcomm
  7. The receiver of the SNMP Trap on the specified router is 10.238.18.17. trapcomm is used as the string for sending the Trap.
  8. Snmp-server trap-source loopback0 uses the IP address of the loopback interface as the sending source Address of the SNMP Trap.
  9. Logging on starts the log Mechanism
  10. Logging IP-address-server sends the log records to the syslog server on 10.238.18.17 (IP address of the CW2K installation machine ).
  11. Logging facility local7 defines the logging event type as local7
  12. Logging trap warning
  13. Define the Severity Level of the recorded event as from warningl to the syslog server specified in the front.
  14. Logging source-interface loopback0 specifies the IP address from which the event is sent to loopback0.
  15. Service timestamps log datetime contains a time mark when sending a record event
  16. Enable password ******
  17. Copy running start or write terminal to save the configuration

1. Enable SNMP:

 
 
  1. configure terminal  
  2. snmp-server community rw/ro (example: snmp-server community public ro) 

2. Enable the trap:

 
 
  1. configure terminal  
  2. snmp-server enable traps snmp authentication 

3. Configure snmp

 
 
  1. # Conf t
  2. # Snmp-server community cisco ro read-only); configure the read-only communication string
  3. # Snmp-server community secret rw read/write); configure the read/write communication string
  4. # Snmp-server enable traps; configure the gateway SNMP TRAP
  5. # Snmp-server host 10.254.190.1 rw; configure the gateway workstation address

Ii. Set the CatOS device (switch)

In the Enable status of CatOS, enter the set interface sc0 vlan id ip address to configure the vlan id, IP address, and subnet mask of the local management interface of the switch.

 
 
  1. Set cdp enable all enable CDP
  2. Set snmp community read-only gsunion configure the read-only string of this switch to public
  3. Set snmp community read-write-all gsunion configure the read/write string of this switch to private
  4. Set snmp trap server-ip gsunion
  5.  
  6. The receiver of the SNMP Trap on the specified switch is the network management server, and gsunion is used as the string for sending the Trap.
  7. Set snmp trap enable all sends all types of SNMP traps
  8. Set snmp rmon enable activates the snmp rmon function of the switch.
  9. Set logging server IP-address-server sends log records to the syslog server on the IP address of the network management server (IP address of the CW2K installation machine)
  10. Set logging level 6
  11. Define the Severity Level of recorded events as starting from informational to recording all events at the most urgent level to the syslog server specified at the front.
  12. Set logging server facility local7 defines the logging event type as local7
  13. Set logging timestamp contains a time mark when sending a record event
  14. Set logging enable
  15. Write terminal display and Check Configuration
  16. Save Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.