snmpd: IPv6 Support (Listen IPv6)

I have a IPv6 only router and i want to connect my monitoring system with the router. So i need SNMP enabled.

A short netstat shows: ‚NO ONLY IPv4‘ :/


root@router1337:~# netstat -taunp | grep 161
udp 0 0 0.0.0.0:161 0.0.0.0:* 14039/snmpd
root@router1337:~#

The Config File is /etc/config/snmpd (normal linux will have the same settings – but differnent location):


root@router1337:~# cat /etc/config/snmpd

agentaddress udp6:161
rocommunity6 HOMEDIRRO1337 2a04:4f8:cccc:aaaa::1

2a04:4f8:cccc:aaaa::1 is the ip of the monitoring server (query host with snmpwalk/get)

Success:


root@router1337:~# netstat -tanunp | grep 161
udp 0 0 :::161 :::* 14219/snmpd
root@router1337:~#

 

*HAPPPPY*

 


BTW:

How to install:


opkg update

opkg install snmpd

Short log of how to debug the start:


root@router1337:~# /usr/sbin/snmpd -Lf /tmp/snmpd.log -f -c /etc/config/snmpd &
root@router1337:~# cat /tmp/snmpd.log
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (TUNNEL-MIB): At line 0 in (none)
Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
NET-SNMP version 5.4.4

Kommentar hinterlassen