[comp.unix.wizards] Dual Networks on One Ethernet

jgd@pollux.UUCP (Dr. James George Dunham) (07/29/87)

We have a host of machines that are currently connected via an
ethernet using network address 180.0 . All the machines support the
Bsd 4.2 UNIX style remote commands, shells and logins. We would like
to extend our ethernet to communicate with another group of machines.
They want to have a seperate network address of 192.0 and again use
the Bsd 4.2 UNIX type of commands. I ran a test and there was no
problems in doing this over one ethernet. The problem I have is how to
communicate between the two networks. I put both networks hosts
address in /etc/hosts yet they apparently did not recognize the other
network. When I tried telnet and ftp, they told me the network was
unreachable when I tried to access a machine from the other network.
My first question is how do I access the other network sharing the
same ethernet. My second question is if I can somehow access the other
network, can I get the usual Bsd 4.2 UNIX type of remote commands?
				-Jim Dunham
				 jgd@pollux

hedrick@topaz.rutgers.edu (Charles Hedrick) (08/06/87)

You asked how to put two networks on one Ethernet.  You need to use a
variant of "route add" to tell your machine that the other network is
present.  Assume that the other network is 192.13.2.0.  You would say
  route add 192.13.2.0 `/bin/hostname` 0
The hop count of 0 says that the network specified is directly
connected.  Note that you have to put the command in /etc/rc.local
for every machine on your network.  Machines on the other network
of course get a command that points at your network.

I note that your network addresses seem a bit odd.  180.0 is certainly
a legal class B network number, but it has not been allocated.  You
don't just make up network numbers: they are allocated by the Network
Information Center.  SMU is quite likely to be connected to the rest
of the Internet at some point, if it isn't already.  When that
happens, if you are using random addresses, other sites are likely to
get quite upset at you.  It's better to start out with officially
allocated numbers from the beginning, since otherwise you'll have to
change all your addresses, which is a painful process.  To start the
process for having a network number assigned, send mail to
registrar@sri-nic.arpa.