Configure snmptrapd for IPv6?

"Gorman, Kevin" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <D766108A50CB764ABA88C4DC46D5B57904023F82B9@GAALP1EXCV32.uswin.ad.vzwcorp.com>
In reading the snmptrapd man page, it refers to the snmpd manpage for configuring it to listen on IPv6 interfaces for traps over IPv6. I see the traps arrive on the interface with tcpdump.

I tried adding the following (one at a time) to snmptrapd.conf and restarting snmptrapd. No errors but traps still aren't processed. The first is a slight mod to what's in example.conf.

snmpTrapdAddr udp:162,udp6:[::1]:162
snmpTrapdAddr udp:162,udp6:[2001:4888:a03:311f:c0:a:0:1f5]:162

I updated net-snmp to the latest version 5.7.2 with no change.

I've also tried adding the args directly in various forms as shown below:

/usr/sbin/snmptrapd -D -Lsd udp:162,udp6:[::]162
./snmptrapd -Lsd udp:162,udp6:162 -p /var/run/snmptrapd.pid
./snmptrapd -Lsd udp,udp6 -p /var/run/snmptrapd.pid
./snmptrapd -Lsd udp6:162 -p /var/run/snmptrapd.pid
./snmptrapd -Lsd -p /var/run/snmptrapd.pid udp6:162
./snmptrapd -Lsd -p /var/run/snmptrapd.pid udp6:162,udp:162
./snmptrapd -Lsd -p /var/run/snmptrapd.pid udp6:162,udp:[::1]:162
./snmptrapd -Lsd -p /var/run/snmptrapd.pid udp:162,udp6:[::1]:162
./snmptrapd -D all -Lsd -p /var/run/snmptrapd.pid udp:162,udp6:[::1]:162 2>&1 > /tmp/snmptrapd.log
./snmptrapd -Lsd -p /var/run/snmptrapd.pid udp:162,udp6:[2001:4888:a03:311f:c0:a:0:1f5]:162
./snmptrapd -Lf /var/log/snmptrapd.new.log -p /var/run/snmptrapd.pid udp:162,udp6:[2001:4888:a03:311f:c0:a:0:1f5]:162
./snmptrapd -Lf /var/log/snmptrapd.new.log -n -M /usr/share/snmp/mibs -p /var/run/snmptrapd.pid udp:162,udp6:[2001:4888:a03:311f:c0:a:0:1f5]:162
./snmptrapd -Lf /var/log/snmptrapd.new.log -n -M /usr/share/snmp/mibs -p /var/run/snmptrapd.pid udp:162,udp6:162

I also compiled a new net-snmp including --enable-ipv6, and it also ignores all IPv6 traps.

./configure --with-mib-modules="mibII/ipv6" --enable-ipv6 --with-sys-contact=root --with-sys-location="Unknown" --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp --with-default-snmp-version=2

Interestingly if I only add udp6:162 and not udp:162, it stops processing v4 traps.

./snmptrapd -Lsd udp6:162 -p /var/run/snmptrapd.pid

Traps can be seen arriving using tcpdump.

So how can snmptrapd be configured to listen for traps over IPv6?

Thanks!

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.