[CentOS] ADSL ppp0, persist

Sun Jan 10 15:54:02 UTC 2010
David Hláčik <david at hlacik.eu>

Hello guys,

I have two ISP's connected to my router. One via eth2, second one via
ADSL modem, with ppoe doing on my Centos 5 .

The problem I have is, that when ADSL fails , interface ppp0 is
removed. This also removes my static routes configured for this
interface. I do not want that, as I have load balancing configured and
default route is removed when ppp0 interface disapears.

This is my ifcfg-ppp0 config :

USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=yes
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=no
SYNCHRONOUS=no
ETH=eth0
PROVIDER=DSLppp0
USER=O2
PEERDNS=no
DEMAND=no
PERSIST=yes

As you can see, I have PERSIST=yes , which according to documentation
should keep ppp0 interface ON. Well it does but only for a couple of
seconds. I suspect this to be other parameters problem
(CONNECT_TIMEOUT or PPPOE_TIMEOUT).

Can you please help me with this?

Thank you in advance!

David