From owner-freebsd-questions Mon Jan 15 22:19:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA15387 for questions-outgoing; Mon, 15 Jan 1996 22:19:43 -0800 (PST) Received: from intele.net (quervo.intele.net [204.118.149.20]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA15372 for ; Mon, 15 Jan 1996 22:19:37 -0800 (PST) Received: (wes@localhost) by intele.net (8.6.12/8.6.5) id XAA27426; Mon, 15 Jan 1996 23:18:15 -0700 From: Barnacle Wes Message-Id: <199601160618.XAA27426@intele.net> Subject: Re: PLEASE HELP: Ethernet Hub, Sparc, FreeBSD To: questions@freebsd.org Date: Mon, 15 Jan 1996 23:18:15 -0700 (MST) Cc: tianlin@iguana.ruralnet.net X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-questions@freebsd.org Precedence: bulk > I am currently working for a small agricultural company, which > has no internet access right now. OK. > I want to build a local network system within an office with > Pentium PC (FreeBSD 2.1.0), SparcStation (Solaris 2.5) and an > ethernet Hub. But I have serious problems to make it work. > > Pentium PC has an ethernet card and moden. The FreeBSD has been > working for months. Because I have no direct internet access, > I changed a line in /etc/sysconfig > from > network_interfaces="ed0 lo0" > to > network_interfaces="lo0" This was probably a mistake. "ed0" is your network card; "lo0" is the software loopback device used to talk to "localhost". You will need "ed0" in there to talk to the SPARCstation over the ethernet. > Last week, I purchased a Smart EtherHub with 16 port, and > a Sun SparcStation with Solaris 2.5. When I > turned power on at very begining, it asked me hostname, IP > number, and whether it is networked. I gave a hostname, pick up > a random IP number. Thus, SparcStation itself is up. Bad choice. DON'T PICK RANDOM IP ADDRESSES! In RFC 1597, the IETF has set aside several addresses to use for "non-attached networks" and you should use one (or more) of those. In general, for small networks, pick host addresses within the Class C network address 192.168.0.0. For more information on this topic, including on-line versions of RFC 1597 "Address Allocation for Private Internets" and RFC 1178 "Choosing a Name for Your Computer", see http://www.censoft.com/webfacts/naming.html. > I connected Sparc to the hub (port 1) using patch cord, and connected > PC to the hub (port 2) using patch cord. OK. The hub is powered on, right? ;^) > Sparc has its hostname 'ultralean' and PC has its hostname 'supanee'. > My question is how can I access one machine from another? > Say, I want to telnet to supanee from ultralean, how? > The following commend > telnet ultralean > does not work. First, you need to make the network card on your FreeBSD machine work, as noted above. Then you need to make sure the IP addresses for both machines are in the same network. My recommendation is to make the SPARCstation, ultralean, 192.168.0.1 and the FreeBSD machine, supanee, 192.168.0.2. Your hosts file on each machine should contain the following lines: 127.0.0.1 localhost 192.168.0.1 ultralean 192.168.0.2 supanee On the FreeBSD system, edit /etc/host.conf to contain a single line containing the word "hosts". On the Solaris system, you will need to edit /etc/nsswitch.conf and setup the machine to get hostnames *only* from the hosts file. Reboot both and see if it works. > Your hints and help will be greatly appreciated. My other suggestion is to run, not walk, but RUN to your local bookstore and get a copy of "TCP/IP Network Administration" by Craig Hunt (1992: O'Reilly and Associates, ISBN 0-937175-82-X). This will explain how the magic of TCP/IP works, and does a good job of explaining *most* UNIX implementations also. With that and the man pages and the FreeBSD FAQs, you should be able to get your system up and running. It'll even help you set up a nameserver, if you do get connected to the internet. Good Luck!