I got the Ipv6 working finally with SNMP v3. I had to add:
agentaddress udp:161
agentaddress udp6:161
in snmpd.conf.
Now the problem is SNMPv2 that does not work with IPv6.
I added:
rocommunity6 public
rwcommunity6 private
but these tokens are not recognized:
./snmpd.conf: line 12: Warning: Unknown token: rocommunity6.
./snmpd.conf: line 13: Warning: Unknown token: rwcommunity6.
Any hint will be much appreciated.
Simon
On Tue, Jan 16, 2018 at 4:54 PM, Bill Fenner <fen...@gmail.com> wrote:
> Simon,
>
> Can you try with global addresses? I wouldn't be horribly surprised if
> scope zones were not supported properly. (Global v6 addresses have worked
> for me in net-snmp for years.)
>
> Bill
>
>
> On Mon, Jan 15, 2018 at 2:37 PM, Simon Chamlian <simon.chaml...@mpbc.ca>
> wrote:
>
>> Hi,
>>
>> Just recompiled the agent by enabling IPv6 ( --enable-ipv6).
>>
>> The agent is working fine but don't seem to be able to use IPv6.
>>
>> Example:
>>
>> # snmpget -v 3 -u Admin -a MD5 -A Admin-00 -l authNoPriv 172.27.42.199
>> MPBC-1RU-MIB::mpbc1RUNEID.0 -Oqv
>> "TestNew"
>>
>> works fine.
>>
>>
>> In Ipv6:
>>
>> # snmpget -v 3 -u Admin -a MD5 -A Admin-00 -l authNoPriv
>> udp6:'[fe80::6eff:beff:fe02:d0%eth0]':161 MPBC-1RU-MIB::mpbc1RUNEID.0
>> -Oqv
>> snmpget: Timeout
>>
>> I also tried without the port
>> # snmpget -v 3 -u Admin -a MD5 -A Admin-00 -l authNoPriv
>> udp6:'[fe80::6eff:beff:fe02:d0%eth0]' MPBC-1RU-MIB::mpbc1RUNEID.0 -Oqv
>> snmpget: Timeout
>>
>>
>> Gives me timeout. What am I doing wrong? Do I need any special
>> instructions in snmpd.conf file?
>>
>> Note that when I launch the agent, I get the following error message in
>> the log:
>> Error opening specified endpoint ""
>> Server Exiting with code 1
>>
>> But the agent works fine with IPv4.
>>
>> Thanks,
>> S
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Net-snmp-coders mailing list
>> Net-snmp-coders@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders