[Voyage-linux] bring up ppp automaticaly during boot

Darshaka Pathirana (spam-protected)
Tue Sep 8 19:05:17 HKT 2009


Hi!

On 09/08/2009 11:42 AM, Robert Rawlins - Think Blue wrote:
> 
> I've just had time to site and try your approach, it appears to work very
> well!!!! I still have some testing to do but everything looks to work very
> nicely.

My approach looks like this:

% cat /etc/network/interfaces

auto eth0
iface eth0 inet static
  address 192.168.1.3
  netmask 255.255.255.0
  broadcast 192.168.1.255
  network 192.168.1.0

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider

(pppoeconf is helpful but not absolutely necessary)

I have to admit that the reconnection is solved by a cron-job which looks like this:

% cat /etc/cron.d/ppp-chceck

#
* * * * *       root    /sbin/ip link show ppp0 1>/dev/null 2>&1 || ( /sbin/ifdown ppp0; /sbin/ifup ppp0=dsl-provider && logger -t ppp-check "ppp0 (dsl-provider) has been reconnected!" )
#

Greetings,
 - Darsha





More information about the Voyage-linux mailing list