Re: Force an application to use the IP I want for outgoing packets
- From: habibielwa7id <fouad012@xxxxxxxxx>
- Date: Wed, 23 Jan 2008 01:19:08 -0800 (PST)
On Jan 22, 12:52 pm, Gdss <g...@xxxxxxxxxxx> wrote:
Hello everybody,-It's all about routing man, I use the ping command with -i only when
I'm in a situation where I have 2 network interfaces, each one has a public
ip address, and the default route is set on the interface 0.
If I wanted to use interface 1 for the application I'm about to launch, how
could I do?
Let's imagine I want to do a ping using as source address the IP of the
interface 1, and I want packets generated by it routed through interface 1.
Is that possible?
I have 2 gateways to the Internet, And this setup called multipath
routing or dual routing, Check www.lartc.org for details.
-But if you don't have 2 Internet connections so why you use -i or
whatever, The Linux routing table will lead the application to it's
destination as it should go according to the routing table. You can
force your system to go through a specific interface when you want to
reach specific host through this interface with the route command
like, route add -host 11.22.33.44 gw 192.168.1.2, This way your system
will go to 11.22.33.44 through 192.168.1.2 interface. I wish I could
help someway.
I tried doing "ping -I <address of interface 1> destination" and it seems toRegards,
work. I also tried to do an ssh -b <address of interface 1> destination,
but it doesn't work.
Any hints?
Thank you very much.
.
- Follow-Ups:
- References:
- Prev by Date: Re: USB wifi adaptor and WPA network
- Next by Date: Re: Force an application to use the IP I want for outgoing packets
- Previous by thread: Re: Force an application to use the IP I want for outgoing packets
- Next by thread: Re: Force an application to use the IP I want for outgoing packets
- Index(es):
Relevant Pages
|