Hallo,
es hat jetzt funktioniert. Aber nur beim ersten mal. Hier das Log:
Code:
# ./reconnect_kabel.sh
OLD-MAC: 00:1F:3F:54:5B:11
OLD-IP : 123.123.123.123
Neustart Kabelmodem
Change MAC via [COLOR="Red"]WEB[/COLOR] (00:1F:3F:54:5B:12)
Warte auf neue IP
Apr 25 11:36:36 dsld[5395]: VPN led value = 0
Apr 25 11:36:36 voipd[1748]: 0.0.0.0:5060: failed to send UDP-datagram to 217.10.79.9:5060 - Network is unreachable (128)
Apr 25 11:36:37 voipd[1748]: 0.0.0.0:5060: failed to send UDP-datagram to 217.10.79.9:5060 - Network is unreachable (128)
Apr 25 11:36:38 dsld[5773]: stopped.
Apr 25 11:36:38 voipd[1748]: 0.0.0.0:7077: failed to send UDP-datagram to 192.168.180.2:53 - Network is unreachable (128)
Apr 25 11:36:38 voipd[1748]: 0.0.0.0:7077: failed to send UDP-datagram to 192.168.180.1:53 - Network is unreachable (128)
Apr 25 11:36:38 voipd[1748]: 0.0.0.0:7077: failed to send UDP-datagram to 192.168.180.1:53 - Network is unreachable (128)
Apr 25 11:36:38 voipd[1748]: 0.0.0.0:7077: failed to send UDP-datagram to 192.168.180.2:53 - Network is unreachable (128)
Apr 25 11:36:38 voipd[1748]: xxxxxxx: UNREGISTER failed 2 status 500
NEW-IP :
Apr 25 11:36:39 dsld[5816]: startup (Apr 22 2008 11:43:28)
Apr 25 11:36:39 dsld[5816]: new cpmac driver detected
Apr 25 11:36:39 dsld[5819]: DSL Mac 00:1f:3f:54:5b:12
Apr 25 11:36:39 dsld[5819]: VOIP Mac 00:1f:3f:54:5b:c5
Apr 25 11:36:39 dsld[5819]: VCC2 Mac 00:1f:3f:54:5b:c6
Apr 25 11:36:39 dsld[5819]: VCC3 Mac 00:1f:3f:54:5b:c3
Apr 25 11:36:39 dsld[5819]: compiled tc filter to 0 classes
Apr 25 11:36:39 dsld[5819]: compiled tc filter tc:rtp,sip to 2 classes
Apr 25 11:36:39 dsld[5819]: compiled tc filter tc:tcp_ack to 1 classes
Apr 25 11:36:39 dsld[5819]: compiled tc filter tc:dns,sipdns,ntpdns,tr069dns to 4 classes
Apr 25 11:36:39 dsld[5819]: compiled tc filter tc:http_req,tr069 to 2 classes
Apr 25 11:36:39 dsld[5819]: compiled tc filter tc:icmp to 1 classes
Apr 25 11:36:39 dsld[5819]: compiled tc filter to 0 classes
Apr 25 11:36:39 dsld[5819]: speed 22080/1184 (LAN)
Apr 25 11:36:39 dsld[5819]: showtime
Apr 25 11:36:39 dsld[5819]: FactoryDefault=/etc/default/1und1/vpn.cfg (vpn)
Apr 25 11:36:39 dsld[5819]: load_config(vpn): factory default loaded
Apr 25 11:36:39 dsld[5819]: verbose: DISABLED
Apr 25 11:36:39 dsld[5819]: internet: 192.168.178.253 not an intern host, forwardrule "tcp 0.0.0.0:80 192.168.178.253:90 0 # Apache" ignored
Apr 25 11:36:39 dsld[5819]: VPN led value = 0
NEW-MAC: 00:1F:3F:54:5B:11
MAC change failed: Mostly because of wrong password or you have not set the correct AVM internet settings! Go to Einstellungen/Erweiterte Einstellungen/Internet/Zugangsdaten and set Internetzugang über LAN1 and Internetverbindung selbst aufbauen (NAT-Router mit PPPoE oder IP) and Zugangsdaten werden nicht benötigt (IP). On the bottom of the page you MUST SEE the settings of MAC-Adresse der FRITZ!Box...!
Alte MAC: 00:1F:3F:54:5B:11
Neue Mac: 00:1F:3F:54:5B:12
Bei nochmaligem Aufruf:
Code:
# ./reconnect_kabel.sh
OLD-MAC: 00:1F:3F:54:5B:11
OLD-IP : 321.321.321.321
Neustart Kabelmodem
Change MAC via WEB (00:1F:3F:54:5B:12)
Warte auf neue IP
NEW-IP : 321.321.321.321
NEW-MAC: 00:1F:3F:54:5B:11
MAC change failed: Mostly because of wrong password or you have not set the correct AVM internet settings! Go to Einstellungen/Erweiterte Einstellungen/Internet/Zugangsdaten and set Internetzugang über LAN1 and Internetverbindung selbst aufbauen (NAT-Router mit PPPoE oder IP) and Zugangsdaten werden nicht benötigt (IP). On the bottom of the page you MUST SEE the settings of MAC-Adresse der FRITZ!Box...!
Wie oben schon geschrieben, ist die jetzige (alte) MAC aber nicht die 00:1F:3F:54:5B:11 sondern die 00:1F:3F:54:5B:12
Wenn ich das jetzt per ENV aufrufe:
Code:
# ./reconnect_kabel.sh
[COLOR="Red"]OLD-MAC: 00:1F:3F:54:5B:11[/COLOR]
OLD-IP : 321.321.321.321
Neustart Kabelmodem
Change MAC via ENV ([COLOR="Red"]00:1F:3F:54:5B:12[/COLOR])
Apr 25 11:46:43 multid[5941]: stopped.
Apr 25 11:46:43 multid[5942]: startup ($Revision: 1.140 $$CompileDate: Apr 22 2008 11:43:19 $)
Warte auf neue IP
Apr 25 11:46:43 multid[5944]: new cpmac driver detected
Apr 25 11:46:43 multid[5944]: enabling ATA-Mode
Apr 25 11:46:43 multid[5944]: ata
Apr 25 11:46:43 multid[5944]: mrouter: using IGMPv3 for upstream interface dsl
Apr 25 11:46:43 multid[5944]: mrouter: using IGMPv3 for other interfaces
Apr 25 11:46:43 multid[5944]: DHCPD on lan
Apr 25 11:46:43 multid[5944]: DHCPD on lan:0 skipped, is virtual interface
Apr 25 11:46:43 multid[5944]: DDNS: xxx.dyndns.org
Apr 25 11:46:43 multid[5944]: DDNS: 1 accounts
Apr 25 11:46:43 multid[5944]: ONLINE: script /bin/onlinechanged not found.
Apr 25 11:46:43 multid[5944]: mrouter: lan: vif 0 if_index 7
Apr 25 11:46:43 multid[5944]: interface cpmac0 new.
Apr 25 11:46:43 multid[5944]: interface cpmac0 up.
Apr 25 11:46:43 multid[5944]: interface lo new.
Apr 25 11:46:43 multid[5944]: interface lo up.
Apr 25 11:46:43 multid[5944]: mrouter: lo: no multicast interface, ignored.
Apr 25 11:46:43 multid[5944]: interface wan new.
Apr 25 11:46:43 multid[5944]: interface wan up.
Apr 25 11:46:43 multid[5944]: interface eth0 new.
Apr 25 11:46:43 multid[5944]: interface eth0 up.
Apr 25 11:46:43 multid[5944]: interface lan new.
Apr 25 11:46:43 multid[5944]: DHCPD on lan
Apr 25 11:46:43 multid[5944]: interface lan up.
Apr 25 11:46:43 multid[5944]: DHCPD on lan
Apr 25 11:46:43 multid[5944]: interface wifi0 new.
Apr 25 11:46:43 multid[5944]: interface wifi0 up.
Apr 25 11:46:43 multid[5944]: interface ath0 new.
Apr 25 11:46:43 multid[5944]: interface ath0 up.
Apr 25 11:46:43 multid[5944]: interface dsl new.
Apr 25 11:46:43 multid[5944]: interface dsl up.
Apr 25 11:46:43 multid[5944]: mrouter: lan: vif 0 if_index 7
Apr 25 11:46:43 multid[5944]: mrouter: dsl: vif 1 if_index 43
Apr 25 11:46:43 multid[5944]: CONFIG_LOGD disabled: No UPnP-Device for avmlogd
Apr 25 11:46:43 multid[5944]: verbose: DISABLED
NEW-IP : 321.321.321.321
NEW-MAC: 00:1F:3F:54:5B:12
Also auch hier ließt er nicht die richtige MAC aus.
Wenn ich nun manuell die MAC auf 00:1F:3F:54:5B:15 ändere im WebIF und danach den reconnect laufen lasse, dann erscheint folgendes:
Code:
# ./reconnect_kabel.sh
[COLOR="Red"]OLD-MAC: 00:1F:3F:54:5B:12[/COLOR]
OLD-IP :
Neustart Kabelmodem
Neustart Kabelmodem: 7. Error Message: curl: (7) couldn't connect to host
Change MAC via ENV (00:1F:3F:54:5B:13)
Apr 25 11:50:22 multid[6054]: stopped.
Apr 25 11:50:22 multid[6055]: startup ($Revision: 1.140 $$CompileDate: Apr 22 2008 11:43:19 $)
Apr 25 11:50:22 multid[6057]: new cpmac driver detected
Warte auf neue IP
Apr 25 11:50:22 multid[6057]: enabling ATA-Mode
Apr 25 11:50:22 multid[6057]: ata
Apr 25 11:50:22 multid[6057]: mrouter: using IGMPv3 for upstream interface dsl
Apr 25 11:50:22 multid[6057]: mrouter: using IGMPv3 for other interfaces
Apr 25 11:50:22 multid[6057]: DHCPD on lan
Apr 25 11:50:22 multid[6057]: DHCPD on lan:0 skipped, is virtual interface
Apr 25 11:50:22 multid[6057]: DDNS: nick22.dyndns.org
Apr 25 11:50:22 multid[6057]: DDNS: 1 accounts
Apr 25 11:50:22 multid[6057]: ONLINE: script /bin/onlinechanged not found.
Apr 25 11:50:22 multid[6057]: mrouter: lan: vif 0 if_index 7
Apr 25 11:50:22 multid[6057]: interface cpmac0 new.
Apr 25 11:50:22 multid[6057]: interface cpmac0 up.
Apr 25 11:50:22 multid[6057]: interface lo new.
Apr 25 11:50:22 multid[6057]: interface lo up.
Apr 25 11:50:22 multid[6057]: mrouter: lo: no multicast interface, ignored.
Apr 25 11:50:22 multid[6057]: interface wan new.
Apr 25 11:50:22 multid[6057]: interface wan up.
Apr 25 11:50:22 multid[6057]: interface eth0 new.
Apr 25 11:50:22 multid[6057]: interface eth0 up.
Apr 25 11:50:22 multid[6057]: interface lan new.
Apr 25 11:50:22 multid[6057]: DHCPD on lan
Apr 25 11:50:22 multid[6057]: interface lan up.
Apr 25 11:50:22 multid[6057]: DHCPD on lan
Apr 25 11:50:22 multid[6057]: interface wifi0 new.
Apr 25 11:50:22 multid[6057]: interface wifi0 up.
Apr 25 11:50:22 multid[6057]: interface ath0 new.
Apr 25 11:50:22 multid[6057]: interface ath0 up.
Apr 25 11:50:22 multid[6057]: interface dsl new.
Apr 25 11:50:22 multid[6057]: interface dsl up.
Apr 25 11:50:22 multid[6057]: mrouter: lan: vif 0 if_index 7
Apr 25 11:50:22 multid[6057]: mrouter: dsl: vif 1 if_index 54
Apr 25 11:50:22 multid[6057]: CONFIG_LOGD disabled: No UPnP-Device for avmlogd
Apr 25 11:50:22 multid[6057]: verbose: DISABLED
Da erkennt er nun eine andere MAC, aber nicht die, die ich im WebIF eingetragen habe. Allerdings funktioniert nun der MAC-Wechsel wieder, denn dort erscheint jetzt die 00:1F:3F:54:5B:14 und ich bekomme eine neue IP.
So wie ich das sehe wird irgendwas beim neustart des multid nicht richtig verarbeitet, was bei einem manuellen Wechsel über das WebIF dann aber funktioniert. Hier nochmal das Log bei einem manuellem Wechsel:
Code:
# Apr 25 11:49:45 dsld[5819]: VPN led value = 0
Apr 25 11:49:47 multid[5944]: 0.0.0.0:1033: failed to send UDP-datagram to 192.168.180.1:53 - Network is unreachable (128)
Apr 25 11:49:47 dsld[5991]: stopped.
Apr 25 11:49:48 dsld[6028]: startup (Apr 22 2008 11:43:28)
Apr 25 11:49:48 dsld[6028]: new cpmac driver detected
Apr 25 11:49:48 dsld[6030]: DSL Mac 00:1f:3f:54:5b:15
Apr 25 11:49:48 dsld[6030]: VOIP Mac 00:1f:3f:54:5b:c5
Apr 25 11:49:48 dsld[6030]: VCC2 Mac 00:1f:3f:54:5b:c6
Apr 25 11:49:48 dsld[6030]: VCC3 Mac 00:1f:3f:54:5b:c3
Apr 25 11:49:48 dsld[6030]: compiled tc filter to 0 classes
Apr 25 11:49:48 dsld[6030]: compiled tc filter tc:rtp,sip to 2 classes
Apr 25 11:49:48 dsld[6030]: compiled tc filter tc:tcp_ack to 1 classes
Apr 25 11:49:48 dsld[6030]: compiled tc filter tc:dns,sipdns,ntpdns,tr069dns to 4 classes
Apr 25 11:49:48 dsld[6030]: compiled tc filter tc:http_req,tr069 to 2 classes
Apr 25 11:49:48 dsld[6030]: compiled tc filter tc:icmp to 1 classes
Apr 25 11:49:48 dsld[6030]: compiled tc filter to 0 classes
Apr 25 11:49:48 dsld[6030]: speed 22080/1184 (LAN)
Apr 25 11:49:48 dsld[6030]: showtime
Apr 25 11:49:48 dsld[6030]: FactoryDefault=/etc/default/1und1/vpn.cfg (vpn)
Apr 25 11:49:48 dsld[6030]: load_config(vpn): factory default loaded
Apr 25 11:49:48 dsld[6030]: verbose: DISABLED
Apr 25 11:49:48 dsld[6030]: internet: 192.168.178.253 not an intern host, forwardrule "tcp 0.0.0.0:80 192.168.178.253:90 0 # Apache" ignored
Apr 25 11:49:48 dsld[6030]: VPN led value = 0
edit (wegen Fragen von ukvideo)
Ich habe (und hatte auch bei der alten Version) keine mac.htm im fritzload Verzeichnis. Das reconnect_kabel.sh liegt direkt im Fritzload Verzeichnis. Dieser Befehl wird verwendet "bin/curl -d SADownStartingFrequency=1 http://192.168.100.1/goform/gscan". Ein Reconnect des Kabelmodems funktioniert. Rechte sind alle 777 (wegen fat auf USB Stick).