dsl0 disconnect

Hi!
I’m just trying to set up a simple Internet Connection Sharing between openSuSE 11.1 and my other PCs. My problem is when dsl0(connected with pppoe to a wlan access point) disconnects from the Internet I need to execute


rcnetwork restart

on the server to get Internet connection again on my local network.
Can I set it to automatically reconnect?
I’ll post the last messages from ifcfg-dsl0 when it disconnects again.

Change the IDLETIME parameter value in /etc/sysconfig/network/providers/provider? file.

Or, the “Idle Seconds” value in /etc/wvdial.conf file.

Thanks, I modified it. Waiting for the next disconnect. :slight_smile:

So, it’s happened again. The last message from smppd:


....
pppd[0]: Script /etc/ppp/ip-up finished (pid 6535), status = 0x0
Status is: connected
pppd[0]: Terminating connection due to lack of activity.
The connection was idle and shut down.
Status is: disconnecting
pppd[0]: Connect time 12.3 minutes.
pppd[0]: Sent 188163 bytes, received 2076787 bytes.
pppd[0]: Connection terminated.
pppd[0]: Script /etc/ppp/ip-down finished (pid 6915), status = 0x0
Status is: disconnected
pppd[0] died: Link idle: Idle Seconds reached. (exit code 12)
terminating

and it doesn’t want to reconnect unless I type (through ssh) on the server


rcnetwork restart

.
The IDLETIME in /etc/sysconfig/network/providers/
is set to 30.
Any ideas?

Exit code 12 says:*
12 The link was established successfully and terminated because it was idle.*.
What’s happening? It’s restarting in every 2 minutes!

Hmmm… this is because the idle time. The DEMAND parameter is set to no. Can I just delete the IDLETIME, or set it to infinite?

I don’t have the documentation but I think IDLETIME = ‘0’ is for infinity. You can just try deleting it too.

DEMAND=‘yes’ will be dangerous because any program can dial in the background when it wants to access the net.

Also, there is an “Idle Seconds” entry in /etc/wvdial.conf file. I don’t know which one overrides the other. So, just set both to the same value.

After I set the IDLETIME=‘-1’ in the provider0 file, I think it’s worked.
Thank you for your help!

Nice to hear that it worked. I also learned something from that - we can set IDLETIME=’-1’.