From owner-freebsd-questions Tue Nov 14 9:47:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www3.pacific-pages.com (www3.pacific-pages.com [192.41.48.219]) by hub.freebsd.org (Postfix) with ESMTP id E28E037B4E5 for ; Tue, 14 Nov 2000 09:47:10 -0800 (PST) Received: from d.tracker ([216.191.72.182]) by www3.pacific-pages.com (8.8.5) id KAA13042; Tue, 14 Nov 2000 10:46:39 -0700 (MST) Received: (from david@localhost) by d.tracker (8.9.3/8.9.3) id MAA02689; Tue, 14 Nov 2000 12:46:05 -0500 (EST) (envelope-from david) Date: Tue, 14 Nov 2000 12:37:11 -0500 From: David Banning To: Joe Loughry Cc: david@banning.com, questions@freebsd.org Subject: Re: using win95 PC off of FreeBSD Message-ID: <20001114123711.A2657@www3.pacific-pages.com> Reply-To: David Banning References: <200010071611.KAA01632@miranda.dnvr.uswest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200010071611.KAA01632@miranda.dnvr.uswest.net>; from loughry@uswest.net on Sat, Oct 07, 2000 at 10:11:59AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG OK got it working almost exactly according to your how-to description. The only problem I ran in to was that the windows computer would not accept 255.255.255.255 as netmask. It did accept 255.255.255.0 however. That posed a problem as 255.255.255.0 was being used in my /etc/ppp/ppp.conf file. So I changed the /etc/ppp/ppp.conf entry; set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 to; set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0 and changed the /etc/rc.conf line; ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.255" to; ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.0" Thanks for all your help! On Sat, Oct 07, 2000 at 10:11:59AM -0600, Joe Loughry wrote: > This the the other half of the answer. > > To use your FreeBSD machine's Internet connection to support the > Windows 95 box, you need some kind of network connection between the > two computers, i.e., a home LAN. To set this up, buy a couple of > cheap ethernet cards, one for each machine, and an ethernet hub. (You > can use a "crossover cable" between the two machines if you don't want > to buy a hub, but a hub doesn't cost very much [maybe 40 dollars] and > it will let you connect up more than two machines later.) Be sure to > get an ethernet card for the FreeBSD machine that is supported by > FreeBSD (almost all of them are); 3Com and Intel both make good ones, > and there is a list of supported cards in The FreeBSD Handbook and in > The Complete FreeBSD. If the card you want is already in the GENERIC > kernel (very likely), you won't need to do anything else; otherwise, > make an entry for the card you've bought in your kernel configuration > file (see LINT) and rebuild the kernel. > > It is necessary to make a few adjustments here and there to tell > FreeBSD about your new network. First, choose IP addresses for the > two machines. 192.168.1.1 is a good address for the FreeBSD machine, > and 192.168.1.2 is a good address for the Windows 95 machine. These > are special addresses reserved for private networks. The netmask is > 255.255.255.255 and all this information goes in your /etc/rc.conf > file on the FreeBSD machine: add "ed0" (or whatever your new ethernet > device is) to the "network_interfaces" line and add another line that > looks like this: > > ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.255" > > matching the addition to the "network_interfaces" entry. (You said > you already have dialup to the Internet working on the FreeBSD > computer, so I am assuming that your hostname, default router, DNS, > and PPP interfaces are already working.) > > On the Windows 95 computer, install the ethernet card according to > the instructions that came with it. Then configure TCP/IP networking > in the Control Panel, specifying 192.168.1.2 for the IP address and > 255.255.255.255 for the netmask, and 192.168.1.1 (the IP address of > your FreeBSD machine on the internal LAN) for the "default gateway". > Leave everything about DHCP and WINS turned off, and put your ISP's > nameserver(s) IP addresses into the DNS search list on the Windows > machine as described below. > > The FreeBSD Handbook (http://www.freebsd.org) and Greg Lehey's > excellent book "The Complete FreeBSD" both contain much more detailed > information on setting up networking on FreeBSD. > > -Joe Loughry > loughry@uswest.net > > > Yes, it's certainly possible; in fact I do it here. > > > > Once you have on-demand dialup to the Internet working on your FreeBSD > > box, make sure you have GATEWAY_ENABLE="YES" in your /etc/rc.conf file > > (then kill -HUP 1 to force init to reread the file). > > > > You'll need an ethernet card in the Windows 95 computer and one in the > > FreeBSD computer (I will assume you have a little LAN set up already). > > > > On the Windows 95 box, go into Settings, Control Panel, Network, and > > set the "default router" to the IP address of your FreeBSD machine on > > your internal LAN. Fill in the DNS name server field with the IP > > address(es) of your ISP's nameservers (same as in the /etc/resolv.conf > > file on your FreeBSD machine). Naturally, your Windows 95 computer > > has its own IP address on the internal LAN--may as well enter that in > > your /etc/hosts file on the FreeBSD box. > > > > After you reboot Windows 95 :-) it should be able to see the Internet > > through your FreeBSD connection. My wife's AOL works fine. It even > > triggers auto-dial on the FreeBSD box properly. > > > > -Joe Loughry > > loughry@uswest.net > > > > > Date: Fri, 6 Oct 2000 18:34:24 GMT > > > From: "David Banning" > > > To: questions@FreeBSD.ORG > > > Subject: using win95 PC off of FreeBSD > > > Reply-To: david@banning.com > > > > > > I would like to have a Win 95 PC running - but to get it's internet > > > connection through my FreeBSD PC. My FreeBSD is just running a > > > dialup connection - auto connect. > > > > > > Is what I want to do possible? How would I go about it? > > > > -- Cabbage, n.: A familiar kitchen-garden vegetable about as large and wise as a man's head. -- Ambrose Bierce, "The Devil's Dictionary" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message