About SNMP SNMP There are plenty of resources out there about SNMP and what it is all about so I won't go into detail here but in effect it is used for network monitoring and management It is made up of ! parts" the SNMP manager# the SNMP agent and MI$ In Packet Tracer Tracer there is not a lot you can actually do with SNMP but it is possible to set up a router or switch as an SNMP agent and use a PC or laptop as an MI$ browser So although you can't set SNMP traps or informs it is still a %aluable learning tool to show the sort of information that can be retrie%ed and e%en a few things that can be set on an SNMP agent
Sample Network In this e&le we ha%e two locations" a pretty basic setup to demonstrate SNMP SNMP No need for anything too comple& here although SNMP can work on much larger Packet Tracer Tracer networks without any problem I ha%e used () routers and a mi&ture of !*+,# -.+, and -.*, switches /ust to show SNMP can be configured on any of them
Configuration 0nce the basic layout has been set the router interfaces can be configured and static IP addresses assigned to the PC's $elow is a sample for 1outer2A3
1
Sample network used for the following configuration.
4ith both routers and the switches configured it is a good idea to add a routing protocol to the routers so that we get to the point where e%erything can ping e%erything else In this case I'll use 5I61P but in a small network like this 1IP would also be fine
Ne&t we'll configure SNMP# as mentioned pre%iously there are not a lot of options here so the configuration is pretty simple $elow is the configuration for 1outer2A but the other router and switches use e&actly the same synta& 7 nothing changes
Those two lines effecti%ely start the SNMP ser%ice and apply 'passwords' 8for want of a better name9 The ro and r" at the end of each line refer to 1ead 0nly 8ro9 and 1ead 4rite 8rw9 respecti%ely That's it# nothing else we can do on the routers or switches 4orth mentioning here that the switches will ha%e to ha%e an IP address and default7gateway assigned so we can contact them A sample for the synta& for doing that is below3
Now that we ha%e done all the configuration we can fire up the MI$ browser and see what we can actually do now 0n a PC click the :esktop tab and select the 45 ro"ser 3
;irst we ha%e to select a target 8or an SNMP agent9 so click the Adanced... button and enter the IP address of the de%ice you want to connect to" in this case I'll choose 1outer2A3
4
0nce there we can start to %iew a few of the options a%ailable ;or e&le# click on .ssame and in the perations8 drop down bo& select 9et and hit the 9o button and you should see the display below3
5
Play around with the %arious fields you ha%e and keep clicking the 9et button" feel free to knock yourself out in the other areas 8like .interfaces for e&le9 and you will get a bit of an idea how much information is a%ailable on the de%ice Also try connecting to the switches and the other router as well# remember that you will ha%e to go back into the Adanced... area and select the new target to do this
Setting =alues As well as %iewing information we can also et some fields" not all fields are writable so it won't work with e%erything >sing the .ssame field we had a look at earlier we'll go and change the %alue for that To do this change the perations8 drop down bo& and pick et and a dialog bo& will pop up like the one below3
6
?it the button and the %alue will be sent to the de%ice @ou can check this by switching back to the 9et function and seeing the new %alue Also in this case it will change the router name so you should also see that in the running configuration for the router3
tees_Router#sh run ui%ding configuration...
That's about all you can do with SNMP in Packet Tracer but it should gi%e an idea of the capabilities of SNMP# especially in a large network