[Voyage-linux] bring up ppp automaticaly during boot
Robert Rawlins - Think Blue
(spam-protected)
Thu Sep 10 16:51:40 HKT 2009
Hey Beat, and everyone else!
Thanks a great deal for all your suggestions! I've built a couple of systems
working on different approaches which I can now test and see which does the
best job for me J I'll keep you all up to date on things and the final
descision that we make.
Rob
From: Beat Meier [mailto:mbe_ml at swiss-wireless.com.ar]
Sent: 10 September 2009 00:08
To: Robert Rawlins - Think Blue
Cc: Voyage-linux at voyage.hk
Subject: Re: [Voyage-linux] bring up ppp automaticaly during boot
Robert
You can tell pppd to try endless to reconect if ppp line goes down i.e. pppd
will reconnect.
address and netmask is in case you have fix ip. I have dynamic ip but
configured so...
My system is configured as follows:
My provider script is /etc/ppp/peers/telecom
/etc/network/interface entry:
auto telecom
iface telecom inet ppp
provider telecom
address 200.200.200.123
netmask 255.255.255.0
# please do not modify the following line
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
up /etc/network/telecom_config_interface || true
The script
/etc/network/telecom_config_interface
will enable masquerading and port forwarding stuff etc.
Add the following options to the file /etc/ppp/peers/telecom:
persist
maxfail 0
To try endless with the modem to connect (mz provider use pppoe).
Greetings
Beat
Robert Rawlins - Think Blue wrote:
Hello Guys,
There seem to be a lot of network related questions on the list recently,
thought I'd add another one ;-)
I've got a ppp script configured on the system which connects just fine with
'pon' and likewise disconnects with 'poff'. I'm now looking to have the
system treat it like the Ethernet, bringing ppp0 up when the system boots
and then maintain that connection if it is dropped.
What would you suggest is the best way to go about this? I've added the ppp0
as an interface to /etc/network/interfaces like so:
auto ppp0
iface ppp0 inet ppp
provider three
with 'three' being the name of the ppp dialer that I'm looking to use.
However when I run 'ifconfig ppp0 up' I simply get an error message which
says: 'ppp0: ERROR while getting interface flags: No such device' and if I
restart networking I get an error like so:
voyage:~# /etc/init.d/networking restart
Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for
interface ppp0 before doing NFS mounts (warning).
/lib/udev/hotplug.functions: line 10: [: : integer expression expected
/lib/udev/hotplug.functions: line 10: [: : integer expression expected
done.
I'd appreciate your thoughts guys, let me know how you would go about doing
this, like I say, I want to bring the connection up as early as possible in
the boot and then ensure it is maintained and reconnected if dropped.
Also, getting the system to do a timesync once connection is made would also
be good so the system has the latest time, in the same was it does when
connecting over Ethernet.
Cheers,
Rob
_____
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20090910/79666da3/attachment-0001.html>
More information about the Voyage-linux
mailing list