Basic SNMP Config 1

certskills
By certskills June 16, 2016 13:05

Interestingly, Cisco added a couple of smaller management-oriented protocols – including SNMP – to the CCNA R&S exam mix when they changed the exams back in 2013 (exams 100-101, 200-101, 200-120). SNMP which allows management software to send and receive status and configuration data with the various devices in the network. Those devices typically need a small bit of SNMP configuration before they will communicate with the management station; this next lab lets you review some of the common configuration elements for SNMP.

Requirements

For this lab, enable SNMP on the two routers shown in the figure, so that the Network Management Station (NMS) in Raleigh can manage the routers. In particular:

  • Use SNMP version 2c
  • Configure so that the NMS can change the router’s configuration when using a password-like value of ‘CFG’
  • Configure so that the NMS can view the router’s status information using a password-like value of ‘VIEW’
  • Set a MIB variable that represents the location of router R1 as ‘Cincinnati’, and R2 as ‘Raleigh’
  • Set a MIB variable that represents the contact for the R1 router be ‘Chris’, and R2 be “Sean”
  • Assume that all router interfaces work, have IP addresses, and that IP connectivity exists between the NMS and the router interfaces.

 

Figure 1: Two Routers with IP Addresses

 

Initial Configuration

Example 1 and 2 show the beginning configuration state of R1 and R2. Note that beyond the interface IP address configuration, both routers use EIGRP to exchange routes.

Example 1: R1 Config

Example 2: R2 Config

 

Answer on Paper, or Maybe Test in Lab

Next, write your answer on paper. Or if you have some real gear, or other tools, configure the lab using them.

If you do try this on real gear, the trick is to test the ability to retrieve SNMP data using the SNMP GET protocol message. To do that, try searching for tools online like snmpget and snmpwalk. These tools let you send SNMP GET messages without a full-fledged NMS installed. In particular, if you text in a lab with a Linux host or VM available, snmpwalk -v 2c -c string ip-address. Begin with a ping of the router IP address, to make sure connectivity exists. If that works, then configure SNMP (that is, do this lab). After that, try one of the command line SNMP tools (e.g., snmpwalk), and your SNMP test will hopefully work.

 

Do this Lab with Cisco’s VIRL

You can do these labs on paper and still get a lot out of the lab. As an extra help, we have added files for the Virtual Internet Routing Lab (VIRL) software as well. The .VIRL file found here is a file that when used with VIRL will load a lab topology similar to this lab’s topology, with the initial configuration shown in the lab as well. This section lists any differences between the lab exercise and the .VIRL file’s topology and configuration.

Download this lab’s VIRL file!

Network Device Info

All interfaces in topology match the lab figure.

Host Device Info

This table lists host information pre-configured in VIRL, information that might not be required by the lab but may be useful to you.

Device IP Address Mac Address User/password
S / NMS 192.168.1.130 02:00:11:11:11:11 cisco/cisco

 

Handy Host Commands:

To see PC IP address: ifconfig eth1

Ping example: ping -c 4 10.1.1.1

Trace example: tracepath 10.1.1.1

To connect to another node within the topology: telnet 10.1.1.1

Answers: PAP 2
Answers: Basic SNMP Config 1
certskills
By certskills June 16, 2016 13:05
Write a comment

5 Comments

  1. Rodney E Jones September 27, 19:04

    Is there answer to this lab

    Reply to this comment
  2. Rodney Jones September 27, 19:22

    I found a link to the lab answers: <https://blog.certskills.com/cl539-answer

    Reply to this comment
  3. Tom November 17, 12:57

    Greetings:

    Is there a CML file available for this lab?

    Thanks.

    Tom

    Reply to this comment
    • certskills Author November 17, 13:56

      Hi Tom. Nope. There is a method somewhere in the CML user interface for importing files. You could try importing the .virl file that comes with this lab. If that fails, you might get an error message about some kind of version number. If that’s the case, try editing the .virl file, find that number. Edit any other .yaml file you created in CML, find the equivalent version number there. Edit the .virl file and update the version number. Then try importing again. We’ve had reasonably good success getting CML to import .virl files with that process.
      Wendell

      Reply to this comment
      • Tom November 18, 06:30

        Thanks Wendell for the instructions. Easier fix than I thought. Downloaded the file, opened it using MS WordPad, searched for anything listed as “0.9” (there were two instances), changed both to “0.95”, saved and closed the file, then imported into CML. All is well.

        Reply to this comment
View comments

Write a comment

Comment; Identify w/ Social Media or Email

Search

Categories