Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Testing another inet connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Wed May 12, 2004 7:57 am    Post subject: Testing another inet connection Reply with quote

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 :D box that will have ppp over GPRS.

TIA,
T.
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Wed May 12, 2004 8:00 am    Post subject: Reply with quote

Code:
ping -I <interface>


For example:

Code:
ping -I eth0 -c 4 yahoo.com
ping -I eth1 -c 4 yahoo.com
Back to top
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Wed May 12, 2004 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Wed May 12, 2004 8:11 am    Post subject: Reply with quote

wget <file>

It works for both ftp and http. example:
Code:
wget http://foo.bar/foobar.tar.gz
Back to top
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Wed May 12, 2004 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Thu May 20, 2004 7:41 am    Post subject: Testing another inet connection [solved] Reply with quote

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. :D

T.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum