multiple ppp links and routing ..



Hello all,

I'm using debian stable on a machine with multiple serial modems that
would eventually simultaneously connect the machine to the Internet.

To do so, I studied ppp, serial, modem and networking HowTo's including
lartc but still I found lots of informations and I'm not sure what ever
the solution I'm adopting is the better.Also, some things were debian
related!

So at the end, to make it simplier, let's say we have two standard
serial modems (56k) one on ttyS0 and one on ttyS1 :

I configure the files : /etc/network/interfaces with :

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0

The file /etc/ppp/peers/ppp_provider1 :

hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/chat_script1"
debug
/dev/ttyS0
115200
noipdefault
user "user@xxxxxxxxxxxx"
ipparam ppp_provider1
usepeerdns

The file /etc/chatscripts/chat_script1 :

ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT
'NO DIAL TON
E' ABORT 'NO ANSWER' ABORT DELAYED
'' ATZ
OK-AT-OK "ATDT0331051010"
CONNECT \d\c

and finally both /etc/ppp/pap-secrets and /etc/ppp/chap-secrets to :

"user@xxxxxxxxxxxx" * "p455w04d"

This for one connection, for the other connection would be pretty
similar but let's say I would call the script ppp_provider2


Anyway, when I want to make a connection i use pon ppp_providerx and
this would create in ifconfig the interface pppX where X is either 0 or
1 depending on if a ppp connection was already established or not.

Because I need to apply the routing, and because pon returns
immediately I have to write some scripts to execute after ppp goes
online, ppp ip-up is the solution but this would execute every time a
ppp connection is established and I have to create a different routing
table for each ppp connection :

I allow some users of the LAN (eth0) to use ppp1, and some other users
to use ppp2 and I know at the time i lunch pon which users should use
one or the other Internet access, my problem is that the connection
could be even 10 and I should be able to create a table with iproute2
on the fly for each connection and if already exist simply delete and
flush .. I'm a bit confused!

I don't know how to write this script, I know I have $1 to $6 as
parameters of the connection and that I could use a couple of if
condition to check whatever is the first , second, third ppp connection
being bought up and then, dunno how, create/delete/update the tables ..

Thanks for any help or suggestion!

.



Relevant Pages

  • How-to: Internet connection with cellular phone
    ... and a then a Nokia 6630 ... The connection starts from Italy, with the server Vodafone or TIM. ... ABORT 'NO CARRIER' ...
    (Debian-User)
  • How-to: Internet connection with cellular phone
    ... and a then a Nokia 6630 ... The connection starts from Italy, with the server Vodafone or TIM. ... ABORT 'NO CARRIER' ...
    (Debian-User)
  • Re: Again about gprs
    ... Then I wanted to try with another cellular phone, the Nokia 6630, ... I followed the same procedure but couldn't establish connection. ... Any idea about why the same procedure works fine with Motorola c350 ... ABORT 'NO CARRIER' ...
    (comp.protocols.ppp)
  • Re: multiple ppp links and routing ..
    ... On 28 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article ... would eventually simultaneously connect the machine to the Internet. ... ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT ... ppp connection is established and I have to create a different routing ...
    (comp.os.linux.networking)
  • Re: Again about gprs
    ... DO NOT USE ATZ. ... AT&F is the standard for ordinary modems. ... >ABORT 'NO CARRIER' ... >I connected the phone to the computer and started the connection with: ...
    (comp.protocols.ppp)