Hi list,

I'm connecting to to iNet using pelephone POZ, via ppp connection. The
thing is I need to add custom route each time I get the connection up.
My question is am I doing something wrong or is this the way it's
supposed to work or do I need to script the grepping of ifconfig by
myself?

In case anyone wonders, I'm attaching the config files I'm using to
connect with pelephones' DATA POZ thingy on Ubuntu 6.10 (copy paste
from dokuwiki format).

==== Configuration files ====

 * cat /etc/wvdial.conf
<file>
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyACM0
Username = [EMAIL PROTECTED]
Password = pcl
Baud = 460800
</file>

 * cat /etc/ppp/peers/pelephone
<file>
# This optionfile was generated by pppconfig 2.3.11.
#
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/pelephone"
debug
/dev/ttyACM0
115200
defaultroute
noipdefault
user "[EMAIL PROTECTED]"
</file>

 * cat /etc/chatscripts/pelephone
<file>
# This chatfile was generated by pppconfig 2.3.11.
# Please do not delete any of the comments.  Pppconfig needs them.
#
# ispauth CHAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT
'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK "ATDT#777"
# ispconnect
CONNECT \d\c
# prelogin

# ispname
# isppassword
# postlogin

# end of pppconfig stuff
</file>


==== Connection Method ====

<code>
sudo wvdial pelephone
ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
         inet addr:10.x.x.x  P-t-P:85.159.x.x  Mask:255.255.255.255
route add -net 10.11.12.13/24 gw 85.159.x.x
</code>


Tips for tricks.
Maxim.

--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to