PDA

View Full Version : Sharing my network cards with different application


techman2006
2007-11-23, 02:24 AM CST
Hi!

In my laptop i have two network addopter one normal ethernet card & other the wireless one. Now i have a single internet connection which is shared to all users using a dlink wireless router. So now i want that some application use my wireless interface & some my ethernet interface i.e. say my torrent client use my wireless lan card & firefox uses my ethernet card (i.e. wired connection).

Also i have assigned static IPs to both cards.
The things i have to solve

1)How to activate the both the interface same time as when i try to activte my wireless lan then my wired connection is lost & vice versa
2)share my same connection & if yes then how will it be done.

Thanks in advance......... :confused:

stevea
2007-11-23, 03:05 AM CST
Packets are sent to the several interfaces on a multihome'ed system according to the routing tables, not the source application.

Look at the "ip route" command and particularly the "table" parameter. You can't do what you want but you can split up the trafic.

techman2006
2007-11-23, 03:13 AM CST
Thanks for a reply.....
Ihave a dobut that if i use a proxy which filter the request based on mac address of the network interface card then also this not possible.
As i know that by giving static ip or some routing table info i can achive some part of it but not fully but i dont want to mess with my ip table.

Thanks once again

stevea
2007-11-23, 01:37 PM CST
You don't need to mess w/ your IP's, only the routing tables.

The alternative is to cause the application to select a specific interface.
I see that "rtorrent" has a "-b ipaddress" option that causes the app to use only that interface.
A few applications allow this sort of binding to th interface, many do not.