SNMP Exercise

 Install Net-SNMP on your workstation  

1.                  -bash-2.05b$ cd /usr/ports/net-mgmt/net-snmp

2.                  -bash-2.05b$ sudo bash

3.                  -bash-2.05b$ make install

Ensure that SNMP is on the router that you want to monitor. You will need to do this for your desk router

#conf t

#Snmp-server community e2afnog ro

 -bash-2.05b$  /usr/local/bin/snmpget -v 2c -c e2afnog e2-rtr-a.ws.afnog.org system.sysUpTime.0

 

How long has the router been running?

How long has your own router been running? Determine what the following OIDs represent, and complete the table. Object ID

 

Description

Value on e2-rtr-a

Value on desk Router

ifNumber.0

 

 

 

ifIndex.0

 

 

 

ifDescr.0

 

 

 

ifIndex.1

 

 

 

ifDescr.1

 

 

 

ifPhysAddress.0

 

 

 

ifPhysAddress.1

 

 

 

ipRouteNextHop.0.0.0.0

 

 

 

 

You can easily view the complete MIB database with:

 -bash-2.05b$  /usr/local/bin/snmpwalk -v 2c -c e2afnog e2-rtr-a.ws.afnog.org  or  -bash-2.05b$  /usr/local/bin/snmpwalk -v 2c -c e2afnog e2-rtr-a.ws.afnog.org | more  

Is it revealing? Can you spot the dynamic entries in the dump?