From owner-freebsd-questions Wed Jun 2 17:28:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 9986914EF8 for ; Wed, 2 Jun 1999 17:28:53 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id UAA18383; Wed, 2 Jun 1999 20:29:02 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199906030029.UAA18383@cc942873-a.ewndsr1.nj.home.com> Subject: Re: 2 ethernet cards In-Reply-To: from Dan Busarow at "Jun 2, 99 05:22:13 pm" To: dan@dpcsys.com (Dan Busarow) Date: Wed, 2 Jun 1999 20:29:02 -0400 (EDT) Cc: zvi@zvi.t-networking.com, freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Busarow wrote, > On Wed, 2 Jun 1999, Brad Tucker wrote: > > I am trying to use 2 ethernet cards in my FreeBSD box. I compiled the > > kernel to use ed0 and ed1. This all works fine, and when I start the > > machine it recognizes them fine. The problem Im having is I want to set > > the FreeBSD box up as a router. I want the address for ed0 to be > > 206.117.19.2, and it is. When I try to configure ed1 to be > > 206.117.19.126, it doesnt work. Can I have two ethernet cards on the same > > network, and in the same box. I have half a class c > > 206.117.19.0-206.117.19.128. I dont want to use ip masq. or a firewall. > > In /etc/rc.conf set > > router_enable="YES" > > Then you need to fix the netmasks on the two cards. Your rc.conf > lines should look like > > ifconfig_ed0="inet 206.117.19.2 netmask 255.255.255.252" #0-4, 1&2 usable > ifconfig_ed1="inet 206.117.19.126 netmask 255.255.255.192" #64-127, 65-126 usable > > Notice that you will lose almost half of your address space doing this. I was suprised that no one seems to have mentioned the futility in doing all of this. The original poster is trying to cut down on cross-talk (if I understood correctly), but he is instead putting two interfaces on this wire where he only really needs one. How is this "routing" (I think he is actually interested in switching) going to help with his problem? All of the network traffic, actually more, is still going to be there. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message