View previous topic :: View next topic |
Author |
Message |
tiny Tux's lil' helper
Joined: 02 Dec 2003 Posts: 102 Location: Slovenia
|
Posted: Wed May 12, 2004 7:57 am Post subject: Testing another inet connection |
|
|
Hi!
I'm going to install a ppp over GPRS on my Gentoo box. This box already has inet connection so I'm wondering how I'm going to test one that comes up with GPRS. For example I would like to transfer files only trough my (to be) ppp over GPRS connection. I want to be sure traffic is going trough it and not trough my existing eth0 inet setup. This will be only for testing since final setup will reside on a embedded gentoo box that will have ppp over GPRS.
TIA,
T. |
|
Back to top |
|
|
brenden l33t
Joined: 09 Mar 2004 Posts: 710 Location: Calgary, AB
|
Posted: Wed May 12, 2004 8:00 am Post subject: |
|
|
Code: | ping -I <interface> |
For example:
Code: | ping -I eth0 -c 4 yahoo.com
ping -I eth1 -c 4 yahoo.com |
|
|
Back to top |
|
|
tiny Tux's lil' helper
Joined: 02 Dec 2003 Posts: 102 Location: Slovenia
|
Posted: Wed May 12, 2004 8:07 am Post subject: |
|
|
Ah yes I knew it had to be something as simple as that. How would I transfer some files trough that interface (ppp0 then). I need that for testing transfers and stability of ppp over GPRS. If I'm going to use ftp it will prolly use the default setup. Is there some application that can choose network interface like ping for example. I can't think of any at this moment.
TIA,
T. |
|
Back to top |
|
|
brenden l33t
Joined: 09 Mar 2004 Posts: 710 Location: Calgary, AB
|
Posted: Wed May 12, 2004 8:11 am Post subject: |
|
|
wget <file>
It works for both ftp and http. example:
Code: | wget http://foo.bar/foobar.tar.gz |
|
|
Back to top |
|
|
tiny Tux's lil' helper
Joined: 02 Dec 2003 Posts: 102 Location: Slovenia
|
Posted: Wed May 12, 2004 8:21 am Post subject: |
|
|
brenden wrote: | wget <file>
It works for both ftp and http. example:
Code: | wget http://foo.bar/foobar.tar.gz |
|
I know wget. Great program. It just lacks the ability to choose interface. Lemme explain again. I need my default eth0 interface up becouse I'm running some nfs server stuph and all and I need to surfe and all.
Also I need some sort of file transfer program that can "bypass" my default network configuration and choose the interface I give him. I'm prolly gonna do some programming at the end but I need something for testing purposes.
So ping has -I option but I would need something like that with wget or some similar application!
TIA again,
T. |
|
Back to top |
|
|
tiny Tux's lil' helper
Joined: 02 Dec 2003 Posts: 102 Location: Slovenia
|
Posted: Thu May 20, 2004 7:41 am Post subject: Testing another inet connection [solved] |
|
|
I thought I give my reply here since I solved this one. I basicly solved my problem with routing.
I delete the default route to eth0 when ppp0 comes up and I add default route to eth0 back on when ppp0 goes off.
Simple and effective.
T. |
|
Back to top |
|
|
|