Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89061 - After configuring pppoe with adsl-setup the configuration is lost after restart
Summary: After configuring pppoe with adsl-setup the configuration is lost after restart
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-14 04:15 UTC by Emilio
Modified: 2005-06-07 05:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
adsl-start.patch (adsl-start.patch,449 bytes, patch)
2005-04-18 15:09 UTC, Alin Năstac (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio 2005-04-14 04:15:15 UTC
After running adsl-setup and adsl-start the script connects to the ISP without problems. After a restart there is no possibility to bring up the connection again. adsl-start gives the message "TIMED OUT".

When I run adsl-setup again, the default username for the adsl-connection is my username i gave in before. I have only to confirm everything and retype my password. then adsl-start makes a connection without errors. ...until the next restart.... 

Reproducible: Always
Steps to Reproduce:
1.adsl-setup
2.adsl-start (connected)
3.[restarting the computer]
4.adsl-start (timed out)
5.adsl-setup
6.adsl-start (connected)

Actual Results:  
see @ "Details"

Expected Results:  
It should save my settings
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-04-14 07:04:53 UTC
did you tried to run adsl-stop followed by an adsl-start?
Comment 2 Emilio 2005-04-14 07:14:52 UTC
yes that works, but thats not the problem. i can teminate the connection and reconnect as often as i want to. ADSL works fine until a reboot. After rebooting it wont connect anymore and i have to rerun adsl-setup. thats forbits for example to bring the connection automatically up when the system starts.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-04-14 07:42:30 UTC
I think you didn't understand.
You should run adsl-stop after restarting your computer. 
adsl-* scripts are not services so the system will not automatically run adsl-stop at reboot/poweroff.

btw, your settings are already saved; you don't need to re-launch adsl-setup.
Comment 4 Emilio 2005-04-14 14:41:55 UTC
oh okay... but that doesn't work as well... here the way I did (I replaced my ISP's username with "X"-es:

bash-2.05b$ su
Password:
bash-2.05b# adsl-stop
adsl-stop: No ADSL connection appears to be running
bash-2.05b# adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 196: 10443 Terminated              $CONNECT <(echo "$CONFREAD") >/dev/null 2>&1
bash-2.05b# adsl-setup
Welcome to the Roaring Penguin ADSL client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default XXXXXXXXXXXXXXXXXXXXXXXXX#0001@t-online.de):

INTERFACE

>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0):

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.
>>> Enter the demand value (default no):

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: server

PASSWORD

>>> Please enter your PPPoE password:
>>> Please re-enter your PPPoE password:

FIREWALLING

Please choose the firewall rules to use.  Note that these rules are
very basic.  You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security.  If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself.  Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc.  If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules.  You are responsible
          for ensuring the security of your machine.  You are STRONGLY
          recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
                for a LAN
>>> Choose a type of firewall (0-2): 0

** Summary of what you entered **

Ethernet Interface: eth0
User name:          XXXXXXXXXXXXXXXXXXXXXXXX#0001@t-online.de
Activate-on-demand: No
DNS addresses:      Supplied by ISP's server
Firewalling:        NONE

>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
  (But first backing it up to /etc/ppp/pap-secrets-bak)
  (But first backing it up to /etc/ppp/chap-secrets-bak)



Congratulations, it should be all set up!

Type 'adsl-start' to bring up your ADSL link and 'adsl-stop' to bring
it down.  Type 'adsl-status' to see the link status.
bash-2.05b# adsl-start
. Connected!
bash-2.05b#
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2005-04-18 15:03:53 UTC
hmm.. this is strange

what does the adsl-status command return in such conditions? I'm interested in both output and return code.
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2005-04-18 15:09:17 UTC
Created attachment 56606 [details, diff]
adsl-start.patch

Apply attached patch and tell me if it solved the problem
Comment 7 Alin Năstac (RETIRED) gentoo-dev 2005-04-19 23:26:55 UTC
well, did it worked?
Comment 8 Emilio 2005-04-20 12:14:09 UTC
at this moment i'm abot 700km away from my computer. I'll be back on Saturday. Then I'll try to use your patch. :)
Comment 9 Alin Năstac (RETIRED) gentoo-dev 2005-04-23 03:37:54 UTC
just a reminder: I am waiting the results

also, I see there is a /etc/init.d/rp-pppoe script. maybe it is best to use it.
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2005-04-28 10:44:21 UTC
the reporter has vanished
Comment 11 Tobi Günter 2005-06-06 20:46:44 UTC
Hi! Ive exactly the same problem. there is no new situation using that patch.
What shal i do?
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2005-06-06 22:02:08 UTC
maybe you should consider that adsl-* scripts aren't services per se.
use /etc/init.d/rp-pppoe if you want connection automatically closed when
computer shuts down
Comment 13 Tobi Günter 2005-06-07 01:03:00 UTC
Oh yes I know. I tried to set up a ADSL-connection at startup - there is used
/etc/init.d/rp-pppoe . isnt it? but the connection was terminated by time-out
too, because it seems to not know the username/password-settings. Maybe i have
to load the password/username into memory manually before bringing up a
connection? Anyway - ive no idea how to do this :)
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2005-06-07 01:56:33 UTC
use adsl-setup.

anyway, bugs.gentoo.org isn't the right place for this kind of help.
you should use forums.gentoo.org.
Comment 15 Tobi Günter 2005-06-07 03:52:44 UTC
I know how to use adsl-setup! im forced to use it always before bringing up a
connection. please read the story, the user "Emilio" wrote! So i do not beleve
that this is my fault and im not the only one who has this problem with this
issue. Please fix that bug. Thaks.