[Debian]: Re: SIOCADDRT: invalid argument
On Sun, Nov 22, 1998 at 09:28:14PM +0100, Stephan Engelke wrote:
> hier sind die angeforderten Informationen:
> /etc/init.d/network
> --------8<-----8<----------
> #! /bin/sh
> ifconfig lo 127.0.0.1
> route add -net 127.0.0.0
> IPADDR=192.168.1.1
> NETMASK=255.255.255.0
> NETWORK=192.168.1.0
> BROADCAST=192.168.1.255
> GATEWAY=ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast
> ${BROADCAST}
> route add -net ${NETWORK}
> [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
> ----->8------->8------------------
Das steht da so drin? Mit der seltsamen GATEWAY=-Zeile? Zu dem evtl.
überflüssigen 127.*-Kram sagte ja schon jemand anderes etwas. Da ich bei
mir ein 2.0.33-Kernel benutze brauch ich es noch und meine
/etc/init.d/network sieht so aus:
--------------------------------------------
#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=192.168.0.10
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAY=127.0.0.1
ifconfig dummy0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
#[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
--------------------------------------------
Da Du eine richtige Ethernetkarte hast, sollte bei Dir natürlich eth0 statt
dummy0 stehen.
--
marko - Nordisch by Nature
"And sanity is a full-time job in a world that is always changing"
'Sanity' - Bad Religion -
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 638
Reply to: