Versuchs mal als post-up Command in der /etc/network/interfaces ...
Danke! Hab /etc/network/interfaces wie folgt geändert
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
iface lo inet loopback
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider
post-up /sbin/routeadd
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
und in /opt/routeadd steht
Code: Alles auswählen
#!/bin/sh
route add default gw `/sbin/ifconfig ppp0 | grep -i "Adresse:" | cut -f2 -d: | cut -f1 -d " "`
doch beim hochfahren kommt dann etwas wie
Code: Alles auswählen
ppp0: error fetching information: Device not found
Usage: inet_route [-vF] add {-host:-net} Target ...
unabhängig davon, ob in /opt/routeadd noch eine Wartezeit mit sleep eingebaut wird. Stimmt da etwas mit dem Befehl in /opt/routeadd nicht?
habe ja auch nicht von "DEINEM ROUTER" sondern von "DEM ROUTER" ...
Danke, aber leider weiß ich nicht so recht wie da vorgehen könnte.
Zur Vervollständigung hier die Ausgabe von ifconfig
http://nopaste.debianforum.de/6102
die Ausgabe von route
http://nopaste.debianforum.de/6103
und der Inhalt von /etc/ppp/options.
http://nopaste.debianforum.de/6104
Weiß echt nicht, wie ich das hinbiegen kann, bzw. was eventuell an meiner Konfiguration nicht stimmt. Möglich sollte es doch bestimmt sein, oder?