Hi,No, -i option only works for application level but not IP:
For instance:
Running Sipp with -bind_local -i 10.0.1.5 -p 5060 10.0.1.1:5060 -t t1 options
(10.0.1.5 exists on my system. As well as 10.0.1.4, see below).
= Extract of the initial TCP syn packet for Wireshark:
Internet Protocol, Src: 10.0.1.4 (10.0.1.4), Dst: 10.0.1.1 (10.0.1.1)
Transmission Control Protocol, Src Port: 59955 (59955), Dst Port: sip (5060),
Seq: 0, Len: 0
Flags: 0x02 (SYN)
= Extract of the INVITE msg (from Wireshark) running over this TCP session:
Internet Protocol, Src: 10.0.1.4 (10.0.1.4), Dst: 10.0.1.1 (10.0.1.1)
Transmission Control Protocol, Src Port: 59955 (59955), Dst Port: sip (5060),
Seq: 1, Ack: 1, Len: 1259
Session Initiation Protocol
Request-Line: INVITE sip:[EMAIL PROTECTED]:5060;transport=tcp;pt=FT SIP/2.0
Message Header
Via: SIP/2.0/TCP 10.0.1.5:5060;branch=z9hG4bK-17147-1-0;branched=TRUE
But I don't know if it can be considered as a bug...
Anyway, thanks for your help on this issue,
Best regards,
Cyrille
To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED];
sipp-users@lists.sourceforge.net; [EMAIL PROTECTED] Subject: RE:
[Sipp-users] Force source IP source Port at IP laye From: [EMAIL
PROTECTED] Date: Wed, 30 Jul 2008 12:31:56 -0400 You should be able to
use the -i option to SIPp to get the right IP. I'm not sure if you'll get
the port right though. Charles Cyrille OLIVIER [EMAIL
PROTECTED] 07/30/2008 12:26 PM To Charles P Wright/Watson/[EMAIL
PROTECTED] cc Ricardo Fernandes [EMAIL PROTECTED],
sipp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject RE:
[Sipp-users] Force source IP source Port at IP laye Hi,
Thanks for your answer. I don't speak neither about spoofing (it's bad ;-) )
nor injection file but I just want to specify *real* (= existing
configured) source IP for my sipp messages. My problem: on my eth0 device,
I've got a single 802.1q vlan (mandatory in my config): vlan431. On it, 2
virtual interfaces: 1/ vlan431:1 with IP 10.0.0.1 2/ vlan431:2 with IP
10.0.0.2 I want to run 2 sipp client instance over TCP (with single
socket, option '-t t1' is used) in 2 terminals: 1/ the first one will be
launched with IP source 10.0.0.1 and TCP source port 5060 (so the IP packet
source field must be 10.0.0.1 and TCP datagram source field will be 5060)
2/ the second one will be launched with IP source 10.0.0.2 and TCP source
port 5060 (so the IP packet source field must be 10.0.0.2 and TCP datagram
source field will be 5060) Currently, it does not work. Best regards,
Cyrille To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED];
sipp-users@lists.sourceforge.net; [EMAIL PROTECTED] Subject: Re:
[Sipp-users] Force source IP source Port at IP laye From: [EMAIL
PROTECTED] Date: Wed, 30 Jul 2008 11:48:10 -0400No. If you want to
spoof addresses it would be pretty hard to implement. If you just want
to pick from one of your IP injection files,you could implement it
without major code changes.Charles Cyrille OLIVIER
[EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 07/30/2008 10:40 AM
To Ricardo Fernandes [EMAIL PROTECTED],
sipp-users@lists.sourceforge.net ccSubject Re: [Sipp-users]
Force source IP source Port at IP laye Hi
Ricardo all, Thanks a lot for your answer. I will get the lastest
version in the trunk source code, Unfortunatelly, i need to set the
*source* IP and port of my sipp messages. so it leads to the 100$
question: does the setsrc or setsource option also exists ? :)
BR, Cyrille Date: Wed, 30 Jul 2008 15:31:57 +0100
From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re:
[Sipp-users] Force source IP source Port at IP laye Hello,
I think you had the same problem as me. You can change the place
here your sipp messages go to by specifying the host and the port in the
scenario file like this: nop action setdest
host=112.12.12.12 port=5060 protocol=udp / /action nop
This works in sipp with UDP, in TCP i don't know, never tried.
This will only work with the lastest version in the trunk source code,
the current binaries in the sourceforge stable version will not
recognized the setdest keyword. Ps: If you are using windows
get this version from the snapshots here:
http://sipp.sourceforge.net/snapshots/sipp-win32-2008-07-18.exe
Hope it helps Ricardo FernandesOn Wed, Jul 30,
2008 at 2:31 PM, Cyrille OLIVIER [EMAIL PROTECTED] wrote:Hi
all,I worried a bit about this post ;)Actually, I don't need
a very developped answer but just a short (but clear;) ) one.
Of course, if needed, i can detail more Best regards
thanks a lot,Cyrille
From: [EMAIL PROTECTED]To: sipp-users@lists.sourceforge.net
Date: Thu, 10 Jul 2008 10:13:50 +Subject