PPPOE Qinternet

Hello, i cant get Qinternet to auto reconnect when connection is lost due to dynamic IP changes from my ISP.

Im using Ifup method.

Thing is, every 24 hours, ISP changes my IP and thus, disconnects me from the internet. I need it to reconnect but dont know how to do it.

OpenSUSE 11.2 x86_64

Thanks

Post more details on how exactly you are connected and what equipment you use. Not everybody (including me) knows about the provider Qinternet.

Qinternet is not a provider, its a simple program to connect to a pppoe connection.

Its the Kinternet version for KDE4.

Its a pppoe connection that needs username and password.
And it disconnects from time to time to get a new IP direction.

What i may actually need is a reconnect script.

No one else uses PPPOE ?

Look at /usr/share/doc/packages/smpppd/config.txt
You need to add AUTO_RECONNECT to the file /etc/sysconfig/network/providers/<provider>.

Generally it is:
AUTO_RECONNECT=‘yes’
AUTO_RECONNECT_DELAY=‘5’
AUTO_RECONNECT_EXITS=‘0 15’

For AUTO_RECONNECT_EXITS read ‘man 8 pppd’, section EXIT STATUS.

So i should copy/paste those 3 lines into for example Kwrite, save a .txt file and then make kinternet use the script after disconnect ?

No. Add these lines to /etc/sysconfig/network/providers/<provider>

<provider> – name of your file.

Ok, just did, hope it works

No news is good news.
Hope it works. :slight_smile:

Nope its not good news hehehe.

It was a matter of time until i got disconnected. And Qinternet didnt reconnect, even after addind those 3 lines you wrote :frowning:

If this helps at all, heres my provider0 file:

ASKPASSWORD='no'
AUTODNS='yes'
AUTO_RECONNECT='yes'
DEMAND='no'
DSLSUPPORTED='yes'
IDLETIME='0'
ISDNSUPPORTED='no'
MODEMSUPPORTED='no'
MODIFYDNS='yes'
PASSWORD='1234'
PHONE=''
PROVIDER='Telefonica'
USERNAME='0020002114127@tchile'
AUTO_RECONNECT_DELAY='5'
AUTO_RECONNECT_EXITS='0 15'

Looks correct. The same config works for me.
The problem is not in Qinternet. Qinternet is a front-end for smpppd.

what is output ?

/sbin/ifconfig -a
dsl0      Link encap:Point-to-Point Protocol  
          inet addr:201.222.153.200  P-t-P:10.52.94.3  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:1334041 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1427658 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:289165364 (275.7 Mb)  TX bytes:404900908 (386.1 Mb)

eth0      Link encap:Ethernet  HWaddr 00:1D:92:A0:BA:D6  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:8419788 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10313981 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1745735615 (1664.8 Mb)  TX bytes:7222796281 (6888.1 Mb)
          Interrupt:26 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1401622 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1401622 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:119304214 (113.7 Mb)  TX bytes:119304214 (113.7 Mb)

Found some options, maybe useful:

/etc/sysconfig/network/providers/provider0
MODIFYIP=‘yes’

/etc/smpppd.conf
stop-on-disconnect = never

Ok, just wrote those 2 lines on the appropiate files.
Just a matter of time now to see if they work :slight_smile:

Thanks for your research!

And… no it didnt work :frowning: sadly :frowning:

But i got this from Qinternet log:

SuSE Meta pppd (smpppd-ifcfg), Version 1.60.45 on dhcppc1.
Status is: disconnected
trying to connect to smpppd
connect to smpppd
Status is: disconnected
Status is: connecting
trying to connect to smpppd
already connected to smpppd
pppd[0]: Plugin rp-pppoe.so loaded.
pppd[0]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: Interface eth0 has MTU of 1492 -- should be at least 1500.
pppd[0]: This may cause serious connection problems.
pppd[0]: PPP session is 1845
pppd[0]: Connected to 00:90:1a:41:34:6f via interface eth0
pppd[0]: Renamed interface ppp0 to dsl0
pppd[0]: Using interface dsl0
Status is: connecting
pppd[0]: Connect: dsl0 <--> eth0
pppd[0]: PAP authentication succeeded
pppd[0]: peer from calling number 00:90:1A:41:34:6F authorized
pppd[0]: replacing old default route to eth0 [192.168.1.1]
pppd[0]: local  IP address 201.222.151.189
pppd[0]: remote IP address 10.52.94.3
pppd[0]: primary   DNS address 200.28.4.129
pppd[0]: secondary DNS address 200.28.4.157
pppd[0]: Script /etc/ppp/ip-up finished (pid 3646), status = 0x0
Status is: connected
pppd[0]: LCP terminated by peer
pppd[0]: Connect time 1740.1 minutes.
pppd[0]: Sent 2929761340 bytes, received 1551133773 bytes.
pppd[0]: restoring old default route to eth0 [192.168.1.1]
pppd[0]: Script /etc/ppp/ip-down finished (pid 1174), status = 0x0
Status is: disconnected
pppd[0]: Connection terminated.
pppd[0]: Modem hangup
pppd[0] died: A modem hung up the phone (exit code 16)

Add 16 to AUTO_RECONNECT_EXITS:
AUTO_RECONNECT_EXITS=‘0 15 16’

Done, just a matter of waiting now

SuSE Meta pppd (smpppd-ifcfg), Version 1.60.45 on dhcppc1.
Status is: disconnected
trying to connect to smpppd
connect to smpppd
Status is: disconnected
Status is: connecting
pppd[0]: Plugin rp-pppoe.so loaded.
pppd[0]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: Interface eth0 has MTU of 1492 -- should be at least 1500.
pppd[0]: This may cause serious connection problems.
pppd[0]: Timeout waiting for PADS packets
pppd[0]: Unable to complete PPPoE Discovery
Status is: disconnected
pppd[0] died: Connection terminated at peer's request (exit code 0)
Auto reconnect in 5 seconds.
Auto reconnecting.
Status is: connecting
pppd[0]: Plugin rp-pppoe.so loaded.
pppd[0]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: Interface eth0 has MTU of 1492 -- should be at least 1500.
pppd[0]: This may cause serious connection problems.
pppd[0]: Timeout waiting for PADS packets
pppd[0]: Unable to complete PPPoE Discovery
Status is: disconnected
pppd[0] died: Connection terminated at peer's request (exit code 0)
Auto reconnect in 5 seconds.
Auto reconnecting.
Status is: connecting
pppd[0]: Plugin rp-pppoe.so loaded.
pppd[0]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: Interface eth0 has MTU of 1492 -- should be at least 1500.
pppd[0]: This may cause serious connection problems.
pppd[0]: PPP session is 2126
pppd[0]: Connected to 00:90:1a:41:34:6f via interface eth0
pppd[0]: Renamed interface ppp0 to dsl0
pppd[0]: Using interface dsl0
Status is: connecting
pppd[0]: Connect: dsl0 <--> eth0
pppd[0]: PAP authentication succeeded
pppd[0]: peer from calling number 00:90:1A:41:34:6F authorized
pppd[0]: replacing old default route to eth0 [192.168.1.1]
pppd[0]: local  IP address 201.222.129.191
pppd[0]: remote IP address 10.52.94.3
pppd[0]: primary   DNS address 200.28.4.129
pppd[0]: secondary DNS address 200.28.4.157
pppd[0]: Script /etc/ppp/ip-up finished (pid 3696), status = 0x0
Status is: connected
pppd[0]: LCP terminated by peer
pppd[0]: Connect time 1740.0 minutes.
pppd[0]: Sent 2153125368 bytes, received 924014163 bytes.
pppd[0]: restoring old default route to eth0 [192.168.1.1]
pppd[0]: Script /etc/ppp/ip-down finished (pid 17679), status = 0x0
Status is: disconnected
pppd[0]: Connection terminated.
pppd[0]: Modem hangup
pppd[0] died: A modem hung up the phone (exit code 16)

Thats what i got now :frowning:
I only added the “16” u said but didnt restart Kinternet neither rebooted the machine.
So now, I rebooted and will wait for the next desconnection.

SUCCESS!!

It has finally reconnected on its own today :slight_smile:

I think what did the trick was adding that “16” on provider0 file.

Thank you very much Lazy_Kent!!!