🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.sun
Article #6522

Re: Adding a Sparc IPC to my network?

#6522
From: Carl Brewer
Date: Thu, 16 Nov 1995 00:00
122 lines
4434 bytes
In article <48cq35$bs7@ob1.uws.EDU.AU>,
Rachel Polanskis  <r.polanskis@nepean.uws.edu.au> wrote:

>I added all the hosts I have in my hosts file on my linux machine (which is
>used to get onto the internet via dialup) which includes both PCs on the
>network and systems on the internet.
>
>I also added this information to /etc/networks.
>
>Running ifconfig tells me I have no ether device, although I do.
>I have an ethernet number I can see at boot time.
>
>Also at boot, I get the following errors:

Did you do a boot -r ?  Solaris 2.x dynamically loads drivers for 
devices, if you add a new device, you need to boot -r to make
the kernel recheck the devices.

>machine is a router

Do you want it to be a router?

>"Setting default interface for multicast: add net 224.0.0.0: gateway juno:
>Network is unreachable."
>
>The name I gave the IPC is 'juno' and the 224.0.0.0 address I cannot find to
>change...
>Also the machine is *not* a router?

Ok, you want to turn off routing.  Forget about the multicast stuff,
that's unneccesary for your network, just ignore it.  To turn off
routing, you need to RTFM for routing. 

Firstly, make sure you've created the file /etc/defaultrouter, and put
the address of your router in it (as a FQDN, and have that FQDN in your
/etc/hosts file).  The basics, from a Sun techtip :

3.1: How to Set a defaultrouter
-------------------------------
 
If you want to define a default router, so that you can send all of
your non-local packets through one standard machine, simply create the
file /etc/defaultrouter. It should have as its sole contents, the name
of your router:
 
  % cat /etc/defaultrouter
  router-1
 
Note that any machine listed as a defaultrouter _must_ be on the same
subnet as your machine.
 
On Solaris 2.4, and later, you can actually list multiple routers in
the /etc/defaultrouter file, one default router per line:
 
  % cat /etc/defaultrouter
  router-1
  router-2
  router-3
 
You also need to make sure that every name which appears in
/etc/defaultrouter has an entry in your /etc/hosts file:
 
  % cat /etc/hosts
  ...
  150.101.16.1  router-1
  150.101.16.2  router-2
  150.101.16.3  router-3
 
After you have created /etc/defaultrouter, and made sure that any
names listed in that file are also listed in /etc/hosts, you can
reboot your machine. When it comes back up, it will automatically be
routing through the defaultrouter that you have defined.
 
If you have a simple network, or if you are just trying to get routing
to work after your Sun machine is first installed, you probably want
to set up a defaultrouter, as is described here. Section 4.1 gives
some further advice on what type of routing to use.
 
3.7: How to Force a Solaris Machine Not to Be a Router
------------------------------------------------------
 
If you do not want your multiple-interface machine, running Solaris
2.4 or lower, to route packets, you just need to make a small change
to the file /etc/init.d/inetinit. Find the following two lines:
 
  numifs=`ifconfig -au | grep inet | wc -l`
  numptptifs=`ifconfig -au | grep inet | egrep -e '--&GT' | wc -l`
 
And immediately after them, insert the following:
 
  numifs=2
  numptptifs=0
 
After the machine next reboots, it will not act as a router.
 
If you are using Solaris 2.5 or greater, it's even easier to make your
machine not route packets. Simply create a norouter file:
 
  % touch /etc/norouter
 
Afterwards, reboot the machine.
 
It may be useful to note, that on Solaris machines, ip_forwarding can
have three values:
 
  0     Never Forward
  1     Always Forward
  2     Only forward when two or more interfaces are up
 
The above steps result in the ndd /dev/ip ip_forwarding variable being
changed from "1" to "0", which prevents routing.
 





-- 
carl@oversteer.library.uwa.edu.au
#include <generic_disclaimer.h>

finger cbrewer@uniwa.uwa.edu.au for my pgp public key
Technical Details
Message-ID: <48e6id$isi@oversteer.library.uwa.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <48cq35$bs7@ob1.uws.EDU.AU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d053,4fe7367caa1e6c84
X-Google-Attributes: gid10d053,public
From: carl@oversteer.library.uwa.edu.au (Carl Brewer)
Subject: Re: Adding a Sparc IPC to my network?
Date: 1995/11/16
Message-ID: <48e6id$isi@oversteer.library.uwa.edu.au>
X-Deja-AN: 119415978
references: <48cq35$bs7@ob1.uws.EDU.AU>
organization: UWA Library
newsgroups: aus.computers.sun