Here's what I use:
agentaddress udp:161,tcp:161,udp6:161,tcp6:161
com2sec sec1 default public
com2sec6 sec1 default public
group _grpsec1 v1 sec1
group _grpsec1 v2c sec1
access _grpsec1 "" any noauth exact _all_ none none
This looks almost exactly like your sample. It even works:
% snmpstatus udp6:hassium
[UDP/IPv6: [fd7a:629f:52a4:fe4c::1]:161]=>[Arista Networks EOS version
4.13.0-1505357.cacupertinodev.1 (engineering build) running on an Arista
Networks DCS-7504] Up: 21 days, 20:44:33.60
Bill
On Thu, Nov 7, 2013 at 1:58 PM, Olivier Miakinen
<om+net-s...@miakinen.net>wrote:
> Hello,
>
> I am trying to configure the snmpd agent (5.7.2) so that it
> can process requests via IPv6, but it doesn't work and I don't
> know what to write in the config file.
>
> Here is the configuration which works for IPv4:
> ---------------------------------------------------------------
> com2sec notConfigUser default public
> group notConfigGroup v1 notConfigUser
> group notConfigGroup v2c notConfigUser
> group notConfigGroup usm notConfigUser
> view systemview included .1
> access notConfigGroup "" any noauth exact systemview none none
> agentaddress udp:28025,udp6:28025
> ---------------------------------------------------------------
>
> I tried to add many sorts of com2sec6, but none of them works:
> ---------------------------------------------------------------
> com2sec6 notConfigUser default public
> com2sec6 notConfigUser :: public
> com2sec6 notConfigUser ::/0 public
> com2sec6 notConfigUser ::/128 public
> com2sec6 notConfigUser ::1 public
> ---------------------------------------------------------------
>
> Having searched the archives of the mailing list, I read
> http://sourceforge.net/mailarchive/message.php?msg_id=30768131
> and tried to add a 'rocommunity6' but it gives an error when
> launching the agent and it doesn't help. Too bad, Pietro Paolini
> apparently didn't get an answer to his message either.
>
> Here is what I obtain when I try an snmpgetnext, first over IPv4,
> then over IPv6:
> ---------------------------------------------------------------
> $ snmpgetnext -v 1 -c public localhost:28025 .1.3
> SNMPv2-MIB::sysDescr.0 = STRING: Linux squale 2.6.18-53.el5 #1 SMP Wed
> Oct 10 16:34:19 EDT 2007 x86_64
> $ snmpgetnext -v 1 -c public udp6:[::1]:28025 .1.3
> Timeout: No Response from udp6:[::1]:28025.
> ---------------------------------------------------------------
>
> And here are the traces in snmpd:
> ---------------------------------------------------------------
> # snmpd -c /etc/snmp/snmpmiakd.conf -f -Lo -a
> MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
> NET-SNMP version 5.7.2
> Received SNMP packet(s) from UDP: [127.0.0.1]:43448->[127.0.0.1]:28025
> Received SNMP packet(s) from UDP/IPv6: [::1]:43448
> ---------------------------------------------------------------
>
> Of course, snmpd listens to both protocols:
> ---------------------------------------------------------------
> # netstat -anp|grep 28025
> udp 0 0 0.0.0.0:28025 0.0.0.0:* 5832/lt-snmpd
> udp 0 0 :::28025 :::* 5832/lt-snmpd
> ---------------------------------------------------------------
>
> Please help me!
>
>
> Regards,
> --
> Olivier Miakinen
>
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models.
> Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and
> register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users