Re: NET-SNMP version: 5.7.3 and IPv6

Simon Chamlian <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CANmTPBYRfS8eU9D7MKoaE8g8wxYsMCQC=teRXUuVwBMFb7RCuA@mail.gmail.com>
Seems like --enable-ipv6  is not enough to make SNMPv2 work with IPv6 since:

# ./snmpd  -H 2>&1 | grep community
    trapsink                 host [community] [port]
    trap2sink                host [community] [port]
    informsink               host [community] [port]
    trapcommunity            community-string
    com2sec                  [-Cn CONTEXT] secName
IPv4-network-address[/netmask] community
    com2sec6                 [-Cn CONTEXT] secName
IPv6-network-address[/netmask] community
    com2secunix              [-Cn CONTEXT] secName sockpath community
    authcommunity            authtype1,authtype2 community
[default|hostname|network/bits [oid|-V view [context]]]
    rwcommunity              community [default|hostname|network/bits
[oid|-V view [context]]]
    rocommunity              community [default|hostname|network/bits
[oid|-V view [context]]]

does not show  rwcommunity6 and rocommunity6 .

So what other flags do I need in addition to (--enable-ipv6) to re-compile
to make rwcommunity6/rocommunity6 available?

S.



On Mon, Jan 15, 2018 at 2:37 PM, Simon Chamlian <[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.