I have configured SNMP Agent in my system with ip address I have configured SNMP Agent in it using the following tutorial

I have modified the lines as follows

In the file /etc/snmp/snmpd.conf

 rocommunity public
 rocommunity public
 rocommunity public

In the file /etc/default/snmpd

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'

When I try to use the snmpwalk command from the system with ip address it works fine.

Ex: A chunk of the commands output:

iso. = STRING: "Linux devenv 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64"
iso. = OID: iso.
iso. = Timeticks: (74328) 0:12:23.28
iso. = STRING: "Me <me@example.org>"
iso. = STRING: "devenv"
iso. = STRING: "Sitting on the Dock of the Bay"
iso. = INTEGER: 72

But when I try to use snmpwalk through a different system with ip it gives No response from Please Help.

snmpwalk -c public -v1 | less

PS I have configured the same steps on the machine with ip address Or is there any other program that will be used.


Did netstat here is a screenshot

Snmpd netstat

  • what happens if you use snmpbulkwalk -c public -v1 – sosytee Sep 16 '13 at 8:44
  • snmpbulkwalk: Cannot send V2 PDU on V1 session – Tarun Sep 16 '13 at 8:51
  • Can reach in other ways? Have you ruled out a simple networking routing issue? – Oli Sep 16 '13 at 11:15
  • yes they can I can easily ssh from Right now I have configured 2 VMs with the ip and and created the same situation and there also is the same problem. I think I need to configure something else to make it listen on network. – Tarun Sep 16 '13 at 11:18

Edit the file /etc/snmp/snmpd.conf. Change the line:

agentAddress  udp:


agentAddress  udp:161

Then restart snmpd:

sudo service snmpd restart

It should listen to all interfaces now:

$ sudo netstat -ulnp | grep 161
udp        0      0   *                           8517/snmpd      
  • 1
    One more thing can I also make it to listen only for particular ip address? That will be a good security measure. Is this possible please let me know. Thanks. – Tarun Sep 16 '13 at 12:32
  • 1
    @Tarun Yes, just change that line to agentAddress udp:, or whatever IP address you have in your system. – Eric Carvalho Sep 16 '13 at 12:35
  • 1
    @EricCarvalho no it doesn't work in that manner. "agentAddress udp:161" allows smpt to listen on every interface. You specify the allowed ips with "rocommunity public x.x.x.x" directive – Gonzalo Cao Dec 23 '16 at 10:58

My solution

agentAddress udp:161
# rocommunity public  default    -V systemonly
rocommunity public

...and restart snmp

It makes snmp to hear in all interfaces but only answer to (my monitor server)


You could do something like this also, all combined here: agentAddress udp:,udp6:[2001:470:0:4000::3]:161,udp6:[2001:470:0:10::3]:161

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.