wang_jiabo wrote:
> hello, all : :-)
> when I test snmpv2 test suite, all the case failed :'(
> when I check tcpdump file , I read that :
>
> IP6 3ffe:501:ffff:100::10 > 3ffe:501:ffff:100::20: ICMP6, destination
> unreachable, unreachable port, 3ffe:501:ffff:100::10 udp port snmp,
> length 96
>
> 3ffe:501:ffff:100::10 is NUT(redhat), 3ffe:501:ffff:100::20 is
> TN(FreeBSD).
>
> I think I opened the snmp port on freebsd, but why report destination
> unreachable.
>
> please help me
> Thanks
>
>
my log file
Test Sequence Execution Log
13:25:17 Start
13:25:18 SNMP Connect
SrcAddr:3ffe:501:ffff:100::20 SrcPort:2000
DstAddr:3ffe:501:ffff:100::10 DstPort:161
done
SocketID:3
13:25:18 SNMP try to send...
SrcAddr:3ffe:501:ffff:100::20 SrcPort:2000
DstAddr:3ffe:501:ffff:100::10 DstPort:161
done
send to SocketID:3
send 1st SNMP packet
<http://10.66.70.9/ct-snmpv2c-ag-0.9.0a/AG/1.html#snmpSENDPacketDump1>
13:25:18 SNMP try to receive...
SrcAddr:3ffe:501:ffff:100::10 SrcPort:161
DstAddr:3ffe:501:ffff:100::20 DstPort:2000
__SNMPRecv: unable to receive any SNMP message.
*FAIL*
13:26:18 End
------------------------------------------------------------------------
Packet Reverse Log
Send 1st SNMP packet at 13:25:18
<http://10.66.70.9/ct-snmpv2c-ag-0.9.0a/AG/1.html#snmpSENDPacket1>
IP Packet
| IP Header
| | Version = 6
| | Source Address = 3ffe:501:ffff:100::20
| | Destination Address = 3ffe:501:ffff:100::10
| UDP Header
| | Source Port = 2000
| | Destination Port = 161
| +SNMP ASN.1 Message (40 bytes)
| | type = 48 (0x30)
| | length = 38 (0x26)
| | +version (3 bytes)
| | | type = 2 (0x02)
| | | length = 1 (0x01)
| | | value = 1 (0x01)
| | +community (8 bytes)
| | | type = 4 (0x04)
| | | length = 6 (0x06)
| | | value = public (0x7075626c6963)
| | +PDU (27 bytes)
| | | type = 160 (0xa0)
| | | length = 25 (0x19)
| | | +request-id (3 bytes)
| | | | type = 2 (0x02)
| | | | length = 1 (0x01)
| | | | value = 12 (0x0c)
| | | +error-status (3 bytes)
| | | | type = 2 (0x02)
| | | | length = 1 (0x01)
| | | | value = 0 (0x00)
| | | +error-index (3 bytes)
| | | | type = 2 (0x02)
| | | | length = 1 (0x01)
| | | | value = 0 (0x00)
| | | +VarBindList (16 bytes)
| | | | type = 48 (0x30)
| | | | length = 14 (0x0e)
| | | | +VarBind[1] (14 bytes)
| | | | | type = 48 (0x30)
| | | | | length = 12 (0x0c)
| | | | | +VarBind[1]{name} (10 bytes)
| | | | | | type = 6 (0x06)
| | | | | | length = 8 (0x08)
| | | | | | value = 1.3.6.1.2.1.1.1.0 (0x2b06010201010100)
| | | | | +VarBind[1]{value} (2 bytes)
| | | | | | type = 5 (0x05)
| | | | | | length = 0 (0x00)
| | | | | | value = 0 (0x00)
------------------------------------------------------------------------