Etch: PPPoE Racecondition



Gruss!

Ich habe hier (Etch) eine eklige Racecondition im Zusammenspiel von udev und
pppd. Die Fakten:

udev benamt das Interface anhand der MAC-Adresse und bringt es up:

/etc/network/interfaces:
# DSL Interface
allow-hotplug dsl
iface dsl inet manual
up ip link set $IFACE up
up ip -6 addr flush dev $IFACE || true
down ip link set $IFACE down

Das klappt.

Das PPPoE Interface ist wie folgt definiert:

# DSL PPPoE Uplink
auto citykom
iface citykom inet ppp
provider citykom

Das Problem ist nun, dass das physikalische Interface einige Sekunden braucht
um 'up' zu sein. Der pppd startet zu früh und das Plugin 'rp-pppoe.so' greift
ins Leere. Später kann ohne Probleme mit ifup/ifdown gearbeitet werden, alles
ist OK.

Meine erste Idee: 'pre-up sleep 5' im PPP-Interface haben leider nicht
geholfen. Ich könnte natürlich das Interface nicht per 'auto'-Option
hochfahren und ein kleines SysV-Initscript schreiben. Das erscheint mir aber
nicht schön genug. Es muss doch auch so gehen.

Wie macht Ihr das denn?


mfg Friedemann
--
registered user #56036 http://counter.li.org/
.



Relevant Pages

  • PPPoE configuration
    ... I have some trouble configuring a DSL connection. ... vpdn-group pppoe ... interface FastEthernet0/1 ... ip route 0.0.0.0 0.0.0.0 Dialer1 permanent ...
    (comp.dcom.sys.cisco)
  • Re: pppoe reliability
    ... iface clear ... That will clear the interface and also remove the address when the PPPoE goes ...
    (freebsd-questions)
  • Re: Problem with multi-aliases network interfaces
    ... A wifi iface and ethernet iface with many alises? ... When I run multiple aliases on a single interface I do the same as ... where the first 3 octets are the same as on the eth0 device. ... over diferent IP subnetworks, the "network" init script appear to forgot ...
    (Fedora)
  • Re: Etch: PPPoE Racecondition
    ... allow-hotplug dsl ... iface dsl inet manual ... up ip link set $IFACE up ... Wird das Interface statt ...
    (de.comp.os.unix.linux.misc)
  • Mapping stanzas in interfaces file not working
    ... I'm trying to switch over from commenting/uncommenting relevant iface ... stanzas (man pages call them stanzas, so no snipes about my lack of ... The problem is that when I put the mapping entry in, ... course the eth0 interface isn't being configured. ...
    (Debian-User)