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?

Cheers, Henry


> Date: Mon, 18 Aug 2008 10:41:48 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Is it possible to set the L3 source interface IP address in a 
> trap       packet?
> 
> Zhouhuai Shen wrote:
> > Hi Jan,
> > 
> > I have put the '[snmp] clientaddr' option to set source address of UDP 
> > packet with the trap as in the following in my snmpd.conf file:
> > 
> > [snmp]
> > clientaddr 192.168.1.1
> > [snmpd]
> > .....(The rest of commands in my snmpd.conf file)
> > 
> > But when I capture the trap packet, it still shows the IP address of the 
> > outgoing interface. Did i do something wrong in my config file?
> 
> clientaddr option affects only UDP source address of the traps. It 
> should be 192.168.1.1, right? The agent address inside the UDP payload 
> will still be wrong. You need to apply the patch I mentioned before to 
> have possibility to set also this address.
> 
> Jan

_________________________________________________________________
Get inspired - dream, research, plan and book your next holiday online with MSN 
NZ Travel 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Ftravel%2Emsn%2Eco%2Enz&_t=771497011&_r=MSN_NZ_travel_hmtagline&_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

Reply via email to