Bug 1326850 - snmpwalk lack IPv6 support for talking to snmpd
Summary: snmpwalk lack IPv6 support for talking to snmpd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: net-snmp
Version: 7.2
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Josef Ridky
QA Contact: Jan Blazek
URL:
Whiteboard:
Depends On:
Blocks: 1380364
TreeView+ depends on / blocked
 
Reported: 2016-04-13 14:28 UTC by Dalibor Pospíšil
Modified: 2017-08-01 15:58 UTC (History)
5 users (show)

Fixed In Version: net-snmp-5.7.2-27.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1227640
Environment:
Last Closed: 2017-08-01 15:58:57 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1863 0 normal SHIPPED_LIVE net-snmp bug fix update 2017-08-01 17:50:34 UTC

Description Dalibor Pospíšil 2016-04-13 14:28:08 UTC
This issue seems to be present also here net-snmp-5.7.2-24.el7

+++ This bug was initially created as a clone of Bug #1227640 +++

Description of problem:

When running snmpd on a machine with IPv6 UDP listening enabled (used udp6:161 as
argument), the snmpwalk program is unable to connect to the server from another
machine on the same network.

I'm using net-snmp version 50.el6_6.1.  This is the result when I try with the
IPv6 address of the machine in question:

[root@server-prod01 ~]# snmpwalk -Os -c public -v 1 2001:700:110:1::80 system 
No log handling enabled - turning on stderr logging
snmpwalk: Unknown host (2001:700:110:1::80) (No such file or directory)
[root@server-prod01 ~]#

strace show that the program do not try to connect to the other end at all.

Because the machines in question only have IPv6 connectivity between them, we need
to use IPv6.

--- Additional comment from Jan Safranek on 2015-10-22 13:34:24 CEST ---

net-snmp-5.5-54 in RHEL6 does support IPv6, just the address specification is not that obvious. The format is: udp6:ipaddr:port or udp6:[ipaddr]:port (so ':' in IPv6 address does not clash with ':' before port).

I tested today that all these works:
snmpget ... udp6:::1:161
snmpget ... udp6:[::1]:161

Indeed, these do not work (and they work in recent net-snmp-5.7.3-7.fc23) :
snmpget ...  ::1:161
snmpget ...  [::1]:161 

We need to backport https://sourceforge.net/p/net-snmp/code/ci/df863a5348aabf71bbca7bfefcf8beb8bb9e7762 into RHEL 6. Please use 'udp6:' prefix in the meantime.

Comment 7 errata-xmlrpc 2017-08-01 15:58:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1863


Note You need to log in before you can comment on or make changes to this bug.