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

Re: escaping novell network and 21041 ethernet card



"Richard E. Hawkins Esq." wrote:

> jens wrote,
>
> > Ok. SIOCADDRT is the ioctl call which adds a route. My guess is that the
> > error comes when the script is trying to add the default route, i.e. the
> > default gateway that's specified isn't reachable on the network your
> > ethernet card is connected to (at least according to the route that's set
> > for the card). Why don't you send along your /etc/init.d/network and
> > perhaps the output of 'ifconfig' and 'netstat -nr' after the networks
> > script has run.
>
> Script started on Mon Aug 23 13:54:27 1999
>                                           hawkins:~# modprobe tulip
> hawkins:~# /etc/init.d/netbase start
> Setting up IP spoofing protection...done.
> Starting base networking daemons: portmap inetd.
> hawkins:~# /etc/init.d/network start
> SIOCADDRT: Network is unreachable
> hawkins:~#
> hawkins:~#
> hawkins:~# cat /etc/in
> inetd.conf  init.d      inittab     inputrc
> hawkins:~# cat /etc/init.d/network
> #! /bin/sh
> ifconfig lo 127.0.0.1
> route add -net 127.0.0.0
> IPADDR=134.161.248.148
> NETMASK=255.255.255.0

Ok, here's the problem. Your network by the looks of it should be a class B
network, which means that your netmask should be 255.255.0.0. That should fix
it.

>
> NETWORK=134.161.248.0
> BROADCAST=134.161.248.255
> GATEWAY=134.161.1.1

> ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
> route add -net ${NETWORK}
> [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
> hawkins:~#
> hawkins:~#

[superfluous info snipped]

--
Jens B. Jorgensen
jjorgens@bdsinc.com



Reply to: