[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

network startup script



Can anyone suggest why this script doesn't seem to work on 2.1.90?
It's my /etc/init.d/network. I added the netmask on the route line
for lo because it seemed to help, but I still get some other errors,
and ifconfig seems to hang.

#!/bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0 netmask 255.0.0.0

IPADDR=203.14.18.11
NETMASK=255.255.255.128
NETWORK=203.14.18.0
BROADCAST=203.14.18.127
GATEWAY=203.14.18.1

ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
route add default gw ${GATEWAY} metric 1


This script seems to need changing every few new kernels. I wish
they would make up their mind.

Hamish


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: