pon funktioniert, pon on-demand nicht

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
Michael121
Beiträge: 21
Registriert: 07.09.2009 12:02:02

pon funktioniert, pon on-demand nicht

Beitrag von Michael121 » 10.10.2009 18:20:54

Guten Abend,

ich möchte mit pon dsl-provider eine on-demand Verbindung aufbauen.

Mit folgender Einstellung kommen ich normal ins Netz:

Code: Alles auswählen

noipdefault
usepeerdns
#demand
#idle 300
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
connect /bin/true
noauth
persist
mtu 1492
noaccomp
default-asyncmap
plugin rp-pppoe.so eth0
defaultroute
replacedefaultroute
user "xxxxxxxxxxxxxxxxxxxxxxxxxx@t-online.de"
Ausgabe von plog:

Code: Alles auswählen

Oct 10 17:32:31 localhost pppd[3286]: Plugin rp-pppoe.so loaded.
Oct 10 17:32:31 localhost pppd[3288]: pppd 2.4.4 started by michael, uid 1000
Oct 10 17:32:32 localhost pppd[3288]: PPP session is 3118
Oct 10 17:32:32 localhost pppd[3288]: Using interface ppp0
Oct 10 17:32:32 localhost pppd[3288]: Connect: ppp0 <--> eth0
Oct 10 17:32:32 localhost pppd[3288]: PAP authentication succeeded
Oct 10 17:32:32 localhost pppd[3288]: peer from calling number 00:15:0C:19:CD:B9 authorized
Oct 10 17:32:32 localhost pppd[3288]: replacing old default route to eth0 [10.131.26.1]
Oct 10 17:32:32 localhost pppd[3288]: Cannot determine ethernet address for proxy ARP
Oct 10 17:32:32 localhost pppd[3288]: local  IP address 91.49.195.27
Oct 10 17:32:32 localhost pppd[3288]: remote IP address 217.0.118.92
Oct 10 17:32:32 localhost pppd[3288]: primary   DNS address 217.0.43.145
Oct 10 17:32:32 localhost pppd[3288]: secondary DNS address 217.0.43.129
Wenn ich in obiger dsl-provider-Datei demand und idle entkommentiere, komme ich nicht mehr ins Internet.

Plog ergibt:

Code: Alles auswählen

Oct 10 17:37:17 localhost pppd[3386]: Plugin rp-pppoe.so loaded.
Oct 10 17:37:17 localhost pppd[3387]: pppd 2.4.4 started by michael, uid 1000
Oct 10 17:37:17 localhost pppd[3387]: Using interface ppp0
Oct 10 17:37:17 localhost pppd[3387]: replacing old default route to eth0 [10.131.26.1]
Oct 10 17:37:17 localhost pppd[3387]: Cannot determine ethernet address for proxy ARP
Oct 10 17:37:17 localhost pppd[3387]: local  IP address 10.64.64.64
Oct 10 17:37:17 localhost pppd[3387]: remote IP address 10.112.112.112
Mit der demand - Option wird also anscheinend keine Einwahl mehr vorgenommen. Ein ping oder ein Seitenaufruf im Browser verläuft erfolglos.

Muss ich noch andere Scripte ändern?

borish
Beiträge: 195
Registriert: 31.08.2009 23:47:21

Re: pon funktioniert, pon on-demand nicht

Beitrag von borish » 10.10.2009 20:06:15

Ich verstehe das Problem nicht. Willst du mit pon dsl-provider bei Bedarf eine Verbindung aufbauen?

Ich mache das so:

Code: Alles auswählen

~% cat /etc/network/interfaces 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

#auto cs
iface cs inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider cs

auto eth0
iface eth0 inet static
    address 84.162.15.53
    netmask 255.255.255.0
    network 192.168.6.0
    broadcast 192.168.6.255
~% 
dsl-provider heißt bei mir cs.

Michael121
Beiträge: 21
Registriert: 07.09.2009 12:02:02

Re: pon funktioniert, pon on-demand nicht

Beitrag von Michael121 » 10.10.2009 22:11:51

Hallo Borish,

ich möchte bei Bedarf die Internetverbindung aufbauen und bei Inaktivität wieder trennen. Sollte mit demand eigentlich gehen, nur erfolgt keine Einwahl (kein connect etc.). Der einzige Unterschied zwischen den beiden Dateien ist demand und idle, alles andere bleibt identisch. Nur einmal wählt er ein, einmal nicht...

Meine /etc/network/interfaces sieht identisch aus, nur dass ich eth0 über dhcp vom router konfigurieren lasse.

Michael



Code: Alles auswählen

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo eth0 eth1
iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0
        allow-hotplug eth0

# The primary network interface
iface eth0 inet dhcp

iface eth1 inet static
        address 192.168.1.1
        netmask 255.255.255.0

iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

Antworten