Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatische DSL Einwahl beim Start
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Mon Apr 09, 2007 6:41 pm    Post subject: Automatische DSL Einwahl beim Start Reply with quote

Hi,

ich suche schon Ewig eine Möglichkeit mich automatisch nach oder beim Start einzuwählen (DSL).
Ich will also kein Dial on Demand, weil da müsste ja schon
ein Dienst aufs Internet zugreifen wollen -- ich will
aber das sich der Rechner auf jeden Fall und immer einwählt.

Hat jemand nen Tipp?
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Mon Apr 09, 2007 6:44 pm    Post subject: Reply with quote

Wie waehlst du dich denn im moment ein? Ich habe auf meinem router einfach das script zum connecten in den default runleel gesteckt
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Mon Apr 09, 2007 7:04 pm    Post subject: Reply with quote

Hi,

im Moment einfach mit:


pppoe-start
Back to top
View user's profile Send private message
76062563
l33t
l33t


Joined: 16 Aug 2004
Posts: 637
Location: 127.0.0.1

PostPosted: Mon Apr 09, 2007 7:05 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/de/home-router-howto.xml#doc_chap3
_________________
gentoo - compile your own world
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Mon Apr 09, 2007 7:21 pm    Post subject: Reply with quote

Mhhh, kann da nichts finden, was mit automatischer Einwahl zu tun hat....
Back to top
View user's profile Send private message
76062563
l33t
l33t


Joined: 16 Aug 2004
Posts: 637
Location: 127.0.0.1

PostPosted: Mon Apr 09, 2007 7:23 pm    Post subject: Reply with quote

Naja, mach das halt so wies da drinsteht... und dann
Code:
rc-update add net.ethX default

_________________
gentoo - compile your own world
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Mon Apr 09, 2007 7:45 pm    Post subject: Reply with quote

Tjaaa, habe meine ganzen Ethernet interfaces schon geaddet:

net.ath0 | default
net.eth0 | default
net.eth1 | default
net.lo | boot

aber der Rechner wählt sich nicht automatisch ein!

meinst du, ich soll dass pppoe interface 'ppp0' hinzufügen?
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Mon Apr 09, 2007 7:53 pm    Post subject: Reply with quote

RAPHEAD wrote:
meinst du, ich soll dass pppoe interface 'ppp0' hinzufügen?

Ja, die Verbindung wird über das ppp0 Interface gestartet - auch wen das physikalische Interface darunter z.B. eth0 sein mag.
Back to top
View user's profile Send private message
76062563
l33t
l33t


Joined: 16 Aug 2004
Posts: 637
Location: 127.0.0.1

PostPosted: Mon Apr 09, 2007 8:25 pm    Post subject: Reply with quote

Du musst trotzdem ethX eintragen.
_________________
gentoo - compile your own world
Back to top
View user's profile Send private message
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 578

PostPosted: Tue Apr 10, 2007 10:35 am    Post subject: Reply with quote

Und du musst in der Datei /etc/conf.d/net deine DSL Zugangsdaten konfigurieren und welches interface er benutzen soll, also eth0 oder eth1 oder so, und dann kannst du per rc-update net.ppp0 default dich bei jedem booten automatisch einwählen, mache es hier genauso.

CoS24
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Tue Apr 10, 2007 12:53 pm    Post subject: Reply with quote

Hier, so sehen die entsprechenden Stellen bei mir aus, klappt wunderbar. Und ich brauchte nur ein "rc-update add net.ppp0".

Code:

config_eth2=( "adsl" )
config_ppp0=( "ppp" )
        link_ppp0="eth2"
        plugins_ppp0=( "pppoe" )
        pppd_ppp0=(
                "defaultroute"         #Default-Route automatisch setzen
                "usepeerdns"           #vom Provider übermittelte Nameserver nutzen
                "lcp-echo-interval 15" #alle 15 Sekunden Verbindung prüfen
                "lcp-echo-failure 2"   #nach drei Fehlern Verbindung neu aufbauen
         )
        username_ppp0="denkste"
        password_ppp0="wa"

postup() {

        if [[ "${IFACE}" == "ppp0" ]]; then
                killall -HUP mlnet;
                /usr/local/sbin/traffic-shape.sh;
                /usr/sbin/ez-ipupdate -S dyndns pustekuchen
                /usr/sbin/ntpdate -b -u time.uni-bonn.de;
                /etc/init.d/ntpd restart;
        fi
}


Gruss,
strowi
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Tue Apr 10, 2007 6:10 pm    Post subject: Reply with quote

Bei mir reichten diese Einträge (ohne Passwort bei Hansenet) :
Code:
config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe" )
username_ppp0="<meine tel.nr.>"
password_ppp0=
pppd_ppp0=(
        "defaultroute"
        "usepeerdns"
        "maxfail 1"
)
und ein
Code:
ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0
. Anbei bemerkt, ist hier ein netter bug zu rp-pppoe: https://bugs.gentoo.org/show_bug.cgi?id=159747
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Thu Apr 12, 2007 4:29 pm    Post subject: Reply with quote

So, habs probiert das ETH interface auf dem das DSL läuft einzutragen,
wie vermutet geht das aber nicht.
Ich denke, dass das auch nicht gehen kann, woher soll denn das
Startskript des Interfaces wissen, dass es

pppoe-start

ausführen muss?
Back to top
View user's profile Send private message
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 578

PostPosted: Thu Apr 12, 2007 5:20 pm    Post subject: Reply with quote

In dem Post über deinem steht eigentlich alles drin, du musst /etc/conf.d/net anpassen und per "ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0" einen Symlink für das startscript erstellen und dann per "rc-update add net.ppp0 default" noch den Dienst beim starten ausführen.

Wo hast du denn das Interface eingetragen ?

CoS24
Back to top
View user's profile Send private message
blice
Guru
Guru


Joined: 12 Feb 2005
Posts: 598
Location: D- 26188

PostPosted: Thu Apr 12, 2007 6:40 pm    Post subject: Reply with quote

Seit wann funzen DSL-Moden einwahlen so kompliziert ? ich habe noch irgendwas mit ppp0/1 oder so gebraucht..

adsl-setup ausführen , die richtige schnittstelle (meist eth0) eintragen.

mit den Daten aus /etc/ppp/pap-secrets bzw chap-secrets baut sich dsl beim booten auf.

Du stellt in /etc/conf.d/net : "config_eth0('adsl') " ein, addest /etc/init.d/net.eth0 zum boot-level und dann klappts auch beim booten

Wenn rp-ppoe eingerichtet ist, startet "/etc/init.d/net.eth0 restart" automatisch eine dsl-verbindung.

ps: adsl-setup kann auch pppoe-setup heissen, kommt die version von rp-pppoe an :)
_________________
Gentoo seit 2004.3
Skype: bodokhan
SecondLife: Bodokhan Fall
Email: blice@gmx.de
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Fri Apr 13, 2007 3:18 pm    Post subject: Reply with quote

Na endlich!

blice, dein Weg hat perfekt funktioniert! DANKE!

ich finds verwunderlich, wieviele andere Lösungswege hier gepostet wurden
aber letztlich hat nur blice recht gehabt bzw. mich verstanden.
Es hat also tatsächlich nur daran gelegen, das Ethernet Interface mit
'ADSL' zu deklarieren.

@Child_of_Sun_24:

das habe ich auch shon probiert -- ohne Erfolg.
und selbst wenn das irgendwie geht, der Weg von blice erscheint mir sauberer.
Back to top
View user's profile Send private message
76062563
l33t
l33t


Joined: 16 Aug 2004
Posts: 637
Location: 127.0.0.1

PostPosted: Fri Apr 13, 2007 3:27 pm    Post subject: Reply with quote

RAPHEAD wrote:
...
Es hat also tatsächlich nur daran gelegen, das Ethernet Interface mit
'ADSL' zu deklarieren.
So wie es auch in dem Link von mir steht.
_________________
gentoo - compile your own world
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Fri Apr 13, 2007 5:24 pm    Post subject: Reply with quote

upps!

dann hatte ich das überlesen -- SORRY!
Back to top
View user's profile Send private message
blice
Guru
Guru


Joined: 12 Feb 2005
Posts: 598
Location: D- 26188

PostPosted: Fri Apr 13, 2007 7:51 pm    Post subject: Reply with quote

Ich muss Raphead hier in Schutz nehmen, der Artitkel aus dem Link von 76062563 ist doch ziemlich verwirrend.

Es ist wohl so, daß fast alle Linux-Nutzer irgendwo script-kiddies sind, aber warum mit nano rumspielen (an dateien die womöglich bis dahin noch gar nicht existieren) .. wenn eine a-b-c anleitung das selbe tut?

Thema Solved :)
_________________
Gentoo seit 2004.3
Skype: bodokhan
SecondLife: Bodokhan Fall
Email: blice@gmx.de
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum