From owner-freebsd-questions Mon Oct 12 13:59:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA11442 for freebsd-questions-outgoing; Mon, 12 Oct 1998 13:59:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA11307 for ; Mon, 12 Oct 1998 13:58:58 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id NAA24811; Mon, 12 Oct 1998 13:58:35 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 12 Oct 1998 13:58:34 -0700 (PDT) From: Doug White To: "Russell D. Murphy" cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: 2 ethernet cards In-Reply-To: <199810121843.OAA09142@neale.econ.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 12 Oct 1998, 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? Absolutely! I have an entire network set up like that. > 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? I'd suggest creating your own fakenet and run ipfw/natd to alias it to the outside world, unless your office will let you have your own ip. > 3. How do I tell card2 to send what it gets out on card1? The net route and natd will figure it out. > 4. How do I tell card1 to accept stuff addressed to the laptop and > forward it along to card2? Routing. natd will actually block that traffic unless it's part of an established connection, at which point it'll do the necessary translations. > 5. Are there any handy scripts for switching between configurations > of laptops? DHCP is your friend. Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message