>
> 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
Try changing this to:
127.0.0.1 127.0.0.1 255.255.255.0 lo
192.168.81.38 192.168.81.38 255.255.255.0 eth0
This says send 127.0.0.1/24 to 127.0.0.1 on interface lo
send 192.169.82.38/24 to 192.168.81.38 on interface eth0
You won't need default until you have a gateway to the internet.
>
> 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
127.0.0.1 127.0.0.1 255.255.255.0 lo
192.168.81.39 192.168.81.39 255.255.255.0 eth0
Give it a try, and good luck!
Tom
-
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