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
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to