I'm trying to impliment the simplest possible home-office network,
one which must be so common that this note is a FAQ, but I don't find
the answer in the book, so I'll ask here, where so many good answers
have come from. This first question concerns routing. I'll worry
about NIS/NFS in another note.
Here's /etc/hosts, and /etc/networks, identical on both machines:
#/etc/hosts:
127.0.0.1 localhost
192.168.81.38 big-dog.dogswood.com big-dog
192.168.81.39 old-dog.dogswood.com old-dog
#/etc/networks:
loopback 127.0.0.0
localnet 192.168.81.0
First question: for this simple situation, what files beyond
/etc/{hosts,networks,route.conf} do I need to edit, beyond what's
done in rc.config? /etc/{host.conf,resolv.conf,yp.conf} all seem to
be generated by SuSEconfig.
Next question: what's the preferred setup of /etc/route.conf?
My best guess so far is:
#/etc/route.conf for big-dog:
127.0.0.0 0.0.0.0 255.255.255.0 lo
192.168.81.38 0.0.0.0 255.255.255.255 eth0
192.168.81.39 0.0.0.0 255.255.255.255 eth0
default 192.168.81.38
When I boot, route -n shows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.81.38 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.81.39 0.0.0.0 255.255.255.255 UH 0 0 1 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 dummy0
Why do I have to explicitly assign eth0 to old-dog on big-dog (line 3
of /etc/route.conf)? Without it, the Iface is dummy0, and the two
machines can't ping.
#/etc/route.conf for old-dog:
127.0.0.0 0.0.0.0 255.255.255.0 lo
192.168.81.39 0.0.0.0 255.255.255.255 eth0
192.168.81.38 0.0.0.0 255.255.255.255 eth0
default 192.168.81.39
When I boot, route -n shows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.81.39 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.81.38 0.0.0.0 255.255.255.255 UH 0 0 1 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
Why is eth0 assigned as Iface for 0.0.0.0? Shouldn't it be dummy0?
Here, I seem to be able to get away with a line:
192.168.81.38 192.168.81.39 255.255.255.255
as though 192.168.81.39 is a "gateway" to big-dog. In either case
the routing table is the same.
I have SETUPDUMMYDEV="yes" in rc.config on both machines.
When I shut down routing, I get this:
big-dog:
Shutting down routing.
SIOCDELRT: No such process
Error while excuting:
/sbin/route del default gw 192.168.81.38
and the routing table looks like:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 dummy0
old-dog:
Shutting down routing.
SIOCDELRT: No such process
Error while excuting:
/sbin/route del default gw 192.168.81.39
and the routing table looks like:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
Surely I shouldn't get those error messages?
This setup sort of works, the two machines can ping, but I can't
believe it's right, and I'm really, really uncomfortable not
understanding how these entries are supposed to be done, and getting
errors as above. What's the correct setup?
The Linux Network Administrator's Guide gives examples of manually
invoking route, and maybe doing that would clear up these problems,
but I don't see any graceful place to do that invocation at bootup.
Is that what I should be exploring? With all the setup stuff in
SuSE 5.3, I'd think I could at least network two machines without
mucking about in special local init scripts, but maybe not?
Thanks in advance for any insights,
[EMAIL PROTECTED]
-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html