ppp, disconnect and connect ereichen.

zyon

Rule Zero
Hallo,

ich habe hier ein DSL-Modem was ich über ppppe anspreche. Ich starte die Verbindung mit:

Code:
# ifconfig fxp0 up && sleep 10 && ppp -ddial pppoe
Working in ddial mode
Using interface: tun0

geht auch alles wunderbar. Nun wollte ich meine verbindung disconnecten und dann wieder connecten um so eine neue Ip vom ISP zu bezichen. Leider alles ohne erfolg. Ich wollte es so versuchen:

Code:
kill -HUP `cat /var/run/tun0.pid`

das Kill ging noch ohne Probleme. Aber dann wieder mit :

Code:
# ppp -ddial pppoe
Working in ddial mode
Warning: iface rm: ioctl(SIOCDIFADDR_IN6, fe80:6::2d0:59ff:fece:843f/64): Can't assign requested address
Using interface: tun0

jemand eine idee wie ich das machen kann?

Gruß

zyon
 
Du mußt nach <kill> noch die Default-Route löschen, sonst kann er die neue Adresse nicht anbinden.

HTH

Gruß :cool:
 
Du mußt nach <kill> noch die Default-Route löschen, sonst kann er die neue Adresse nicht anbinden.

HTH

Gruß :cool:

leider Ohne Erfolg.

so paar infos:

Code:
  1 # ifconfig fxp0 up && sleep 10 && ppp -ddial pppoe
  2 Working in ddial mode
  3 Using interface: tun0
  4 # route show
  5 Routing tables
  6 
  7 Internet:
  8 Destination        Gateway            Flags    Refs      Use    Mtu  Interface
  9 default            217.0.116.119      UGS         0        0      -   tun0
 10 loopback           localhost          UGRS        0        0  33224   lo0
 11 localhost          localhost          UH          1        0  33224   lo0
 12 217.0.116.119      p5484D18B.dip.t-di UH          1        0   1454   tun0
 13 BASE-ADDRESS.MCAST localhost          URS         0        0  33224   lo0
 14 
 15 Internet6:
 16 Destination        Gateway            Flags    Refs      Use    Mtu  Interface
 17 ::/104             localhost          UGRS        0        0      -   lo0
 18 ::/96              localhost          UGRS        0        0      -   lo0
 19 localhost          localhost          UH         12        0  33224   lo0
 20 ::127.0.0.0/104    localhost          UGRS        0        0      -   lo0
 21 ::224.0.0.0/100    localhost          UGRS        0        0      -   lo0
 22 ::255.0.0.0/104    localhost          UGRS        0        0      -   lo0
 23 ::ffff:0.0.0.0/96  localhost          UGRS        0        0      -   lo0
 24 2002::/24          localhost          UGRS        0        0      -   lo0
 25 2002:7f00::/24     localhost          UGRS        0        0      -   lo0
 26 2002:e000::/20     localhost          UGRS        0        0      -   lo0
 27 2002:ff00::/24     localhost          UGRS        0        0      -   lo0
 28 fe80::/10          localhost          UGRS        0        0      -   lo0
 29 fe80::%fxp0/64     link#1             UC          0        0      -   fxp0
 30 fe80::2d0:59ff:fec 00:d0:59:ce:84:3f  UHL         0        0      -   lo0
 31 fe80::%lo0/64      fe80::1%lo0        U           0        0      -   lo0
 32 fe80::1%lo0        link#5             UHL         0        0      -   lo0
 33 fec0::/10          localhost          UGRS        0        0      -   lo0
 34 ff01::/32          localhost          UC          0        0      -   lo0
 35 ff02::%fxp0/32     link#1             UC          0        0      -   fxp0
 36 ff02::%lo0/32      localhost          UC          0        0      -   lo0
 37 ff02::%tun0/32     fe80::2d0:59ff:fec UC          0        0      -   tun0

alles wunderbar default route ist auch drin und dann:

Code:
  1 # kill -HUP `cat /var/run/tun0.pid`
  2 # route show
  3 Routing tables
  4 
  5 Internet:
  6 Destination        Gateway            Flags    Refs      Use    Mtu  Interface
  7 loopback           localhost.my.domai UGRS        0        0  33224   lo0
  8 localhost.my.domai localhost.my.domai UH          1        0  33224   lo0
  9 BASE-ADDRESS.MCAST localhost.my.domai URS         0        0  33224   lo0
 10 
 11 Internet6:
 12 Destination        Gateway            Flags    Refs      Use    Mtu  Interface
 13 ::/104             localhost.my.domai UGRS        0        0      -   lo0
 14 ::/96              localhost.my.domai UGRS        0        0      -   lo0
 15 localhost.my.domai localhost.my.domai UH         12        0  33224   lo0
 16 ::127.0.0.0/104    localhost.my.domai UGRS        0        0      -   lo0
 17 ::224.0.0.0/100    localhost.my.domai UGRS        0        0      -   lo0
 18 ::255.0.0.0/104    localhost.my.domai UGRS        0        0      -   lo0
 19 ::ffff:0.0.0.0/96  localhost.my.domai UGRS        0        0      -   lo0
 20 2002::/24          localhost.my.domai UGRS        0        0      -   lo0
 21 2002:7f00::/24     localhost.my.domai UGRS        0        0      -   lo0
 22 2002:e000::/20     localhost.my.domai UGRS        0        0      -   lo0
 23 2002:ff00::/24     localhost.my.domai UGRS        0        0      -   lo0
 24 fe80::/10          localhost.my.domai UGRS        0        0      -   lo0
 25 fe80::%fxp0/64     link#1             UC          0        0      -   fxp0
 26 fe80::2d0:59ff:fec 00:d0:59:ce:84:3f  UHL         0        0      -   lo0
 27 fe80::%lo0/64      fe80::1%lo0        U           0        0      -   lo0
 28 fe80::1%lo0        link#5             UHL         0        0      -   lo0
 29 fec0::/10          localhost.my.domai UGRS        0        0      -   lo0
 30 ff01::/32          localhost.my.domai UC          0        0      -   lo0
 31 ff02::%fxp0/32     link#1             UC          0        0      -   fxp0
 32 ff02::%lo0/32      localhost.my.domai UC          0        0      -   lo0

natürlich lässt sich die default route nicht löschen da sie automatisch gelöscht wird.

und dann das halte spiel:

Code:
  1 # ifconfig fxp0 up && sleep 10 && ppp -ddial pppoe
  2 Working in ddial mode
  3 Warning: iface rm: ioctl(SIOCDIFADDR_IN6, fe80:6::2d0:59ff:fece:843f/64): Can't assign requested address

Wenn jemand eine Idee hat.. würde ich mich freuen


zyon
 
Zuletzt bearbeitet:
Hi,



Wie schaut Ihre ppp.conf aus ?

Folgender Eintrag sollte vorhanden sein, dann klappts auch mit IPv6:

disable ipv6cp


ansonsten

man 5|8 ppp

ppp.conf:
Code:
555 pppoe:
556  set device "!/usr/sbin/pppoe -i fxp0"
557  disable acfcomp protocomp
558  deny acfcomp
559  set mtu max 1454
560  set crtscts off
561  set speed sync
562  enable lqr
563  set lqrperiod 5
564  set dial
565  set login
566  set timeout 0
567  set authname "xxxxxx"
568  set authkey xxxxxx
569  add! default HISADDR
570  enable dns
571  enable mssfixup
572  disable ipv6cp


vielleicht findet ihr ja was.. wie macht ihr das den immer ? genau sowie ich ?
 
Ich hatte dieses Problem mal im Zusammenhang mit PF, was noch wie folgt einen Tritt bei einem IP-Up-Event bekommen muss:
Code:
pfctl -Fa -e -f /etc/pf.conf
 
Ich hatte dieses Problem mal im Zusammenhang mit PF, was noch wie folgt einen Tritt bei einem IP-Up-Event bekommen muss:
Code:
pfctl -Fa -e -f /etc/pf.conf

der pf läuft bei mir auf dem Notebook nicht. Da mein Destop Mainboard kaputt ist muss ich hier auf mein Notebook direkt über ppp online gehen!

zyon
 
Zurück
Oben