LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2004, 06:24 AM   #1
zedrob
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Gentoo, Fedora, Ubuntu
Posts: 30

Rep: Reputation: 15
Question ADSL eth modem and ISDN serial modem configuration


Hi
In my MDK 9.2 box (standalone Workstation) I want to get at work two different Internet connections:
-ADSL through Ethernet
-ISDN through serial port (PPP)

Note that separately they work as a charm...

But I want to use ADSL only for file transferring and ISDN (less expensive) for mail/web surfing.

I really don't know how to make it...maybe I have to insert different routing rules? Should I use a script to configure one or the other when needed?

I use KPPP for modem control...

I'm totally new to networking...so please be very clear

Thanks and kind regards.

 
Old 01-16-2004, 06:58 AM   #2
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
I cannot see an easy way of doing this via the routing table, but i am no expert at complex routing configuration.

But i can tell you it is quite possible and relatively simple via squid.
U can specify all kinds of rules including destination address file size and file extension. Then all u have to do is specify how these rules access the Internet.
The down side of this method is all clients will have to go through a squid proxy server.

ummmmm maybe there is another way you can bond the 2 Internet links together and priorities traffic to use ppp0(isdn link). I am not sure if this will work and i know little about it. ??? look it up, i hope someone else has a better solution as i have been wrong.
 
Old 01-16-2004, 08:07 AM   #3
zedrob
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Gentoo, Fedora, Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
thanks leckie I'll try...

a friend of mine suggested me to use a script to add to the routing table the default line with the IP of ppp0 (through grep of ifconfig...) I'll try this too tomorrow!

Any other suggestion is more than highly welcome !!!

Thanks again for your help

Bye
 
Old 01-16-2004, 08:20 AM   #4
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
can u post what your friend said so i can see what he is doing.
thanks
 
Old 01-16-2004, 08:37 AM   #5
zedrob
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Gentoo, Fedora, Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
I'll post it when he'll send me the script...
bye
 
Old 01-19-2004, 08:45 AM   #6
zedrob
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Gentoo, Fedora, Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
Talking Script

Hi
this is the script my friend sent to me...
Basically it's a way to find IP address after ppp connection and to add the default route line...
Bye


Code:
#!/bin/sh
#
route del default
IPADDRPTP=`LANG= LC_ALL= ifconfig ppp0 | grep 'P-t-P' |
awk -F: '{ print $2 } ' | awk '{ print $1 }'`

route add default gw $IPADDRPTP ppp0
 
Old 01-19-2004, 09:02 AM   #7
zedrob
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Gentoo, Fedora, Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
Question Another little problem

Hi
Now the connection seems to be ok for both ADSL and ISDN as well.
But when I try to send an e-mail (client evolution) with ADSL connection up, I get an error message that sounds like

Quote:
"unable to send mail...no routing to Host - port 25).
I know that the port 25 is the default for SMTP protocol for outgoing mail...how can I open it (i suppose it's closed...)?

Note that when I use ISDN through PPP everything works fine...

Thanks for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
D-Link ADSL router/modem and SuSE Linux configuration sch Linux - Networking 2 06-11-2005 05:36 PM
Eicon Serial ISDN Modem not working with Fedora Core 2 galvanick Linux - Hardware 0 07-25-2004 01:18 PM
Eicon Serial ISDN Modem not working with Fedora Core 2 galvanick Linux - Newbie 0 07-24-2004 01:13 PM
Adsl Modem Configuration hemanth_020784 Linux - Hardware 0 01-03-2004 08:11 AM
isdn modem configuration jkadeesh Linux - Networking 0 10-02-2001 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration