Hi Jan,
Thanks for pointing out the patch for 'clientaddr', it works.
I wonder if both the 'v1trapaddress' and 'clientaddr' could be binded into one,
such as 'trapsrcaddr HOST' in the future release. As they are basically doing
the same job. In other word, we can look at the HOST ip address specified in
'trapsrcaddr' to set the v1 trap agent-addr in the trap UDP part and also the
L3 source IP address for the trap.
Cheers, Henry
> Date: Wed, 27 Aug 2008 13:27:01 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: Is it possible to set the L3 source interface IP address in a
> trap packet?
>
> Zhouhuai Shen wrote:
> > Hi Jan,
> >
> > Thanks a lot for the patch. It fixed the agent address inside the UDP
> > payload.
> >
> > The '[snmp] clientaddr 192.168.1.1' in my snmpd.conf doesn't fix
> > the IP address in the UDP packet in my case. For example, the
> > outgoing interface IP for the trap is 172.16.1.1, but I expect the ip
> > address in the UDP packet of the trap to be 192.168.1.1. Even if I
> > configured with '[snmp] clientaddr 192.168.1.1', I can see that the
> > source IP is still 172.16.1.1. I wonder it might be the snmp.conf file
> > is not defined.
> >
> > Is there a easy way to get around with this?
> There was bug, which caused snmpd to ignore the clientaddr option in the
> config file, but this should be already fixed by patch #1775124 - please
> try latest version of net-snmp, i.e. net-snmp-5.4.2.rc1. You snmpd.conf
> looks OK, snmp.conf is not necessary.
>
> Jan
>
>
_________________________________________________________________
SEEK New Zealand's #1 jobsite
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fmsn%2Eseek%2Eco%2Enz%2FID%5FSEEKNZMAIN%5FUSR%2FPages%2Falliance%5Fhomepage%2Eascx%3FComeFrom%3Dmsnnz%26tracking%3Dsk%3Asptlmini%3Ask%3Amsnnz%3A0%3Awindowslive%3A%231&_t=757263783&_r=Seek_NZ_tagline_no1&_m=EXT
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders