Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!news.seinf.abb.se!erinews.ericsson.se!cnn.exu.ericsson.se!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help to setup FreeBSD as a local server
Date: Fri, 28 Jun 1996 04:49:35 -0700
Organization: Erols Internet Services
Lines: 95
Message-ID: <31D3C6CF.6993@www.play-hookey.com>
References: <31D30242.1776@ns.hondunet.net>
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (Win16; I)
To: "Samuel E. Romero" <sromero@ns.hondunet.net>
Samuel E. Romero wrote:
>
> I'm trying to setup a FreeBSD box as a local server for a network using
> Windows95 over a ethernet network.
> I have setup FreeBSD on one machine with an Ethernet Card (NE2000) on
> ed0. The PC's have NE2000 ethernet cards on coax and I'm trying to
> run a web server on the FreeBSD box (Apache) and have access from the
> PC's on the network.
> When the machine boot's it start's the ed0 interface (ifconfig -
> something). I selected the apache server on the installation, i'm not
> able to connect to it neither from a prompt in the unix machine or the
> PC's.
>
> I have FreeBSD 2.1 on CDROM
> The network numbers I've used are selected at random because it will be
> a local network not an internet one (it's for learning about the web
> server).
>
> The configuration I currently have is:
>
> /etc/networks
> honnet 193.5.5 # Class C network?
> honmsk 255.255.255.224 # Subneting the network
>
> subnet1 193.5.5.32 #
> subnet2 193.5.5.64 #
> .
> .
> subnet6 193.5.5.192 #
>
> /etc/hosts
> 127.0.0.1 localhost
> 193.5.5.33 ed0lnk.hon.hn
> 193.5.5.34 main.hon.hn
> 193.5.5.35 www.hon.hn
>
> 193.5.5.66 pc1.hon.hn
> 193.5.5.67 pc2.hon.hn
>
> /etc/sysconfig
>
> .
> .
> .
> network-interface="lo0 ed0"
> ifconfig_lo0="inet localhost"
> ifconfig_ed0="inet ed0link netmask honmsk"
> .
> .
> .
> static_routes="multicast loopback"
> route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}"
> route_loopback="${hostname} localhost}"
> .
> .
> .
>
> the routes thing is the ones that the install program placed
>
> when I do a ping pc1:
> No route to host
>
> when I do a ping www:
> the machine hangs (no response ^C must be pressed to get prompt back or
> the No route to host message appears.)
>
> How can I setup this?
>
> p.s. I'm located in Honduras (Central America) and may be you can send
> me answers to sromero@ns.hondunet.net (if I or you are lucky and the
> connection is working) or you can send me a response to
> codehuhon@igc.apc.org.
>
[CC: both mail and newsgroup]
First, don't try to do distinct subnets -- using a mask of 255.255.255.224
limits the local subnet to 32 nodes, of which node 0 and node 31 have
special uses and cannot be assigned as you have used .32 and .64. I would
also suggest that you use maybe 10.0.0.x and a netmask of 255.255.255.0, so
that if you ever do hook up to the Internet it won't cause instant problems.
Either way, use a full Class C netmask if you want to spread your node IDs
around, but do not use x.x.x.0 (which identifies the subnet as a whole) or
x.x.x.255 (broadcast address).
As to Apache: if you install the package, it should be willing to run "out
of the box." Make sure your /etc/sysconfig file has its apache_http line set
to "YES" and reboot if necessary. Mine works fine on either my subnet or
over the Internet. Your HTML files will go into /usr/local/www/data and its
subdirectories.
I hope this helps!
Ken