Hi All,

We are not able to enable IPv6 support on Solaris 9 when building Net-SNMP_5.3.1

The software versions we are using are as follows
1) Net-SNMP 5.3.1
2) GCC 3.3
3) Solaris 5.9

The steps we are following are as follows

1) Running configure
../configure --prefix=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol --enable--ipv6 --with-cc=gcc --with-persistent-directory=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/var/net-snmp --with-logfile=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/log/snmpd.log

When the configure is running we see following message on console
Ipv6 stack ... [unknown, no]

When we look inside config.log we find following details
configure:12581: checking ipv6 stack type
conftest.c:43:45: /usr/local/v6/include/sys/types.h: No such file or directory
conftest.c:43:22: features.h: No such file or directory
configure:12755: result: "unknown, no"

2) We ignore the message and run make, make test, make install
make runs successfully
make test passes all test cases
make install runs successfully

3) We start the snmp agent
We prepare snmpd.conf file as follows
rocommunity SNMP_COMMUNITY-1
rwcommunity SNMP_COMMUNITY-2
rocommunity6 SNMP_COMMUNITY-61
rwcommunity6 SNMP_COMMUNITY-62

We start the agent using following command
../snmpd -d -p udp:161,udp6:161

The snmpd.log says following when agent is started

NET-SNMP version 5.3.1 restarted
/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/share/snmp/snmpd.conf: line 11: Warning: Unknown token: rocommunity6.
/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/share/snmp/snmpd.conf: line 12: Warning: Unknown token: rwcommunity6.
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)

4) We Execute snmpget commands
a) snmpget -v1 -c SNMP_COMMUNITY-1 kaveri sysName.0 -> Response - OK
b) snmpget -v1 -c SNMP_COMMUNITY-2 kaveri sysName.0 -> Response - OK
c) snmpget -v1 -c SNMP_COMMUNITY-3 kaveri sysName.0 -> Timeout - OK
a) snmpget -v1 -c SNMP_COMMUNITY-61 udp6:[fe80::203:baff:fe2a:a645] sysName.0 -> No match - NOT OK
b) snmpget -v1 -c SNMP_COMMUNITY-62 udp6:[fe80::203:baff:fe2a:a645] sysName.0 -> No match - NOT OK

5) Support Information
For the IPv6 enabled host we have checked that IPv6 support is up and running using following tools from another Ipv6 enabled host
1) ping (works ok)
2) telnet 13 (works ok)
3) netstat -a (shows IPv6 connections between the hosts)

The output of command "./snmpd -H" does not shows rocommunity6 and rwcommunity6 directives.

Output of ifconfig -a on the host on which snmpd is running is as follows

lo0: flags=1000849 mtu 8232 index 1
inet netmask ff000000
eri0: flags=1000843 mtu 1500 index 2
inet netmask fffffc00 broadcast
ether 0:3:ba:2a:a6:45
lo0: flags=2000849 mtu 8252 index 1
inet6 ::1/128
eri0: flags=2000841 mtu 1500 index 2
ether 0:3:ba:2a:a6:45
inet6 fe80::203:baff:fe2a:a645/10

Further attempts for starting agent with udp6 yields errors and none of the snmpget command fetches replies from the agent when IPv6 address is used.

Please provide help/pointers to enable Net-SNMP IPv6 support on Solaris 9.

Rahul K, AK Sunil

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Net-snmp-coders mailing list