From owner-freebsd-questions Wed Jun 2 17:21:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id 957E014E23 for ; Wed, 2 Jun 1999 17:21:56 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id RAA29599; Wed, 2 Jun 1999 17:22:13 -0700 (PDT) Date: Wed, 2 Jun 1999 17:22:13 -0700 (PDT) From: Dan Busarow To: Brad Tucker Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 2 ethernet cards In-Reply-To: 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 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. Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message