From: tor@tss.no (Tor Arntsen) Subject: Re: net-2 -- an answer would be nice Date: 11 Jun 1993 05:18:06 -0400
On Jun 10, 1:33pm, Charles wrote:
| Hello everybody in LINUX land.
|
| there seems to be many, many questions about /conf and net2 in general,
| but no answers. Is there no one out there that has made this work???
|
| I, too, know not what to do with /conf, and I, too, get "network unreachable".
| When I boot with p10, I, too, get the "old ioctl" warnings.
|
| I am reluctant to add to the c.o.l traffic (it is already close to unbearable),
| but there seem to be no answers, only questions posted. A net2 FAQ would be
| most excellent, but even just a post on c.o.l.a would quiet this beleaguered
| heart.
|
| Charles
Ok, here's one way to do it:
1. The /conf directory is missing, and I don't want it either. Unpack
net-base.tar.z in some scratch directory.
2. Copy the stuff that is not a symlink to /etc, if you have been using
the net software in a previous release of Linux you should have working
versions of thos files in /etc anyway (hosts, host.conf,exports,networks..)
3. Unpack net-std.tar.z (in / if you want it all, or somewhere else for
pick and choose).
4. This is a demonstration /etc/hosts file:
127.0.0.1 localhost
123.45.6.7 mylinuxbox # This is a class-C net
192.45.6.1 mynearestgateway # A router
5. This is a demonstration /etc/networks file:
loopback 127.0.0.0
localnet 123.45.6.0
6. For the above, this /etc/rc.net file will work:
# Attach the loopback device.
/etc/ifconfig lo localhost
# Set up the Ethernet connection(s).
/etc/ifconfig eth0 mylinuxbox netmask 255.255.255.0 broadcast 123.45.6.255
# Set up the primary (static) routes.
/etc/route add localhost
/etc/route add localnet
/etc/route add default gw mynearestgateway metric 1
#(continues with starting the deamons, e.g.)
/usr/etc/rpc.portmap
/usr/etc/in.inetd
The above scheme works for me.
It does not cover SLIP though.
Hope this helps,
Tor (tor@tss.no)