Re: escaping novell network and 21041 ethernet card
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
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:~#
hawkins:~#
hawkins:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
eth0 Link encap:Ethernet HWaddr 00:00:C0:77:41:E6
inet addr:134.161.248.148 Bcast:134.161.248.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:247 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:11 Base address:0xf880
hawkins:~#
hawkins:~#
hawkins:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
134.161.248.0 0.0.0.0 255.255.255.0 U 1500 0
0 eth0
hawkins:~#
hawkins:~#
hawkins:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
eth0 Link encap:Ethernet HWaddr 00:00:C0:77:41:E6
inet addr:134.161.248.148 Bcast:134.161.248.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:247 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:11 Base address:0xf880
hawkins:~#
hawkins:~#
hawkins:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
134.161.248.0 0.0.0.0 255.255.255.0 U 1500 0
0 eth0
> Ok, well if that's helping you not get nasty messages then that's gotta be
> a good thing, right!
:)
btw, this is the stock base2_1, with nothing more (i do have a minimal
sstem on another hard disk that I can stick in, if necessary )
rick
Reply to: