Results 1 to 6 of 6

Thread: Specifying network adapter

  1. #1
    Join Date
    Jun 2007
    Beans
    24

    Specifying network adapter

    I have two network adapters named eth0 and eth1.

    Say that I have two programs, A and B. Is it possible to make A only use eth0 and B only used eth1?

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Specifying network adapter

    Generally,yes.
    Depends on A and B.
    Will you tell us whats A and B?

  3. #3
    Join Date
    Jun 2007
    Beans
    24

    Re: Specifying network adapter

    Quote Originally Posted by realzippy View Post
    Generally,yes.
    Depends on A and B.
    Will you tell us whats A and B?
    A is rtorrent and B is everything else basically.

  4. #4
    Join Date
    May 2007
    Location
    Minneapolis
    Beans
    123
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Specifying network adapter

    Usually there is a setting in the config file (per application) which can specify what interface it should use. However, even if you do specify what interface rtorrent uses, that doesn't mean *everything else* will use the second interface. I'm also interested on how one could do this.
    --iissmart--

  5. #5
    Join Date
    Jun 2007
    Beans
    24

    Re: Specifying network adapter

    Quote Originally Posted by iissmart View Post
    Usually there is a setting in the config file (per application) which can specify what interface it should use. However, even if you do specify what interface rtorrent uses, that doesn't mean *everything else* will use the second interface. I'm also interested on how one could do this.
    Well the important thing for me is that rtorrent uses a specified interface. The other programs can really do what they want

  6. #6
    Join Date
    May 2007
    Location
    Minneapolis
    Beans
    123
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Specifying network adapter

    This looks easy. Run rtorrent -h, and take a look at the -b and -i switches. Using some combination of those (probably just -b then the IP that is on the interface you want it to use) when you run rtorrent should make it work how you expect, assuming your routing is set up properly. If it's not, I can probably help you with that as well

    I'm still curious as to whether it's possible to have *all other* traffic go to a specific interface, if anyone else knows (assuming you're getting two IPs on the same subnet).
    Last edited by iissmart; March 31st, 2010 at 11:18 PM.
    --iissmart--

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •