From owner-freebsd-questions Mon Oct 12 12:27:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA19623 for freebsd-questions-outgoing; Mon, 12 Oct 1998 12:27:25 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cyclops.xtra.co.nz (cyclops.xtra.co.nz [202.27.184.96]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA19616 for ; Mon, 12 Oct 1998 12:27:22 -0700 (PDT) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker (210-55-210-87.ipnets.xtra.co.nz [210.55.210.87]) by cyclops.xtra.co.nz (8.9.1/8.9.1) with SMTP id IAA12912; Tue, 13 Oct 1998 08:26:35 +1300 (NZDT) Message-Id: <199810121926.IAA12912@cyclops.xtra.co.nz> From: "Dan Langille" Organization: DVL Software Limited To: "Russell D. Murphy" Date: Tue, 13 Oct 1998 08:26:34 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: 2 ethernet cards Reply-to: junkmale@xtra.co.nz CC: questions@FreeBSD.ORG In-reply-to: <199810121843.OAA09142@neale.econ.vt.edu> X-mailer: Pegasus Mail for Win32 (v3.01b) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12 Oct 98, at 14:43, Russell D. Murphy wrote: > I have an extra ethernet card I would like to place in my office > machine and use to (sometimes) connect my laptop: > > laptop desktop > ------ ------- > e-net card ---> e-net card 2 > e-net card 1 ---> office net/world > > 1. Is this feasible? I think so. At least you'll need a cross-over cable to connect one card to the other. At best, you could use one of those small hubs. > 2. My laptop and desktop machines have IP addresses. Do I need a new > (legitimate) one for the second card, or can I use one of the > "private" addresses since no one should need to address card2 from > anywhere outside of my office? If FreeBSD is installing on your desktop, it can effectively act as a gateway to your laptop. In which case, you should use one of the private addresses. > 3. How do I tell card2 to send what it gets out on card1? > > 4. How do I tell card1 to accept stuff addressed to the laptop and > forward it along to card2? > > 5. Are there any handy scripts for switching between configurations > of laptops? For these, I don't know. I think you want to enable the firewall stuff and get natd running on your desktop. But I'm sure other people will fill in the blanks I've left. If you do go natd, see my website for how I did it. > > I've been working through the O'Reilly TCP/IP Network Administration > book, but I'm not sure what to do. Suggestions or pointers to other > references would be gratefully accepted. That's a good book. It's helped me. -- Dan Langille DVL Software Limited The FreeBSD Diary - my [mis]adventures http://www.FreeBSDDiary.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message