Quagga: using SNMP

snmpwalk -c public -v1 localhost .1.3.6.1.2.1.2

In netkit, Quagga by default has net-snmp support.

Steps to get it working:

/etc/snmp/snmpd.conf

#

# example access restrictions setup

#

com2sec readonly default public

group MyROGroup v1 readonly

view all included .1 80

access MyROGroup “” any noauth exact all none none

#

# the following line is relevant for Quagga

#

smuxpeer .1.3.6.1.6.3.1. mypassword

/etc/quagga/zebra.conf

hostname AS4r1

password zebra

enable password zebra

smux peer 1.3.6.1.6.3.1 mypassword

log file /var/log/zebra/zebra.log

then restart the daemons:

/etc/init.d/snmpd restart

/etc/init.d/zebra restart

should be able to walk now:

snmpwalk -c public -v1 localhost .1.3.6.1.2.1

etc

references:

http://lists.quagga.net/pipermail/quagga-users/2008-July/009731.html

http://beeznest.wordpress.com/2008/07/14/interoperating-quagga-or-zebra-with-net-snmp/

http://www.quagga.net/docs/docs-multi/SMUX-configuration.html#SMUX-configuration