From owner-freebsd-current@FreeBSD.ORG Thu Jul 3 15:41:29 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B59E237B401 for ; Thu, 3 Jul 2003 15:41:29 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BDFB43F93 for ; Thu, 3 Jul 2003 15:41:29 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 0DB7572FF1; Thu, 3 Jul 2003 15:41:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 0AA2E72FDC; Thu, 3 Jul 2003 15:41:29 -0700 (PDT) Date: Thu, 3 Jul 2003 15:41:29 -0700 (PDT) From: Doug White To: Socketd In-Reply-To: <20030703152419.583b6810.db@traceroute.dk> Message-ID: <20030703153826.P60013@carver.gumbysoft.com> References: <20030703152419.583b6810.db@traceroute.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: Gateway/Networking problems in FreeBSD 5.1-Release X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 22:41:30 -0000 On Thu, 3 Jul 2003, Socketd wrote: > I have a computer with 3 NIC's (10/100) and I am trying to set it up as > a gateway. In /etc/rc.conf I have: > ifconfig_rl1="inet 192.168.1.22 netmast 255.255.255.0 media 100baseTX" > ifconfig_de0="inet 192.168.1.21 netmast 255.255.255.0 media 100baseTX" > ifconfig_rl0="inet 192.168.1.20 netmast 255.255.255.0 media 100baseTX" This is not a valid configuration. FreeBSD does not allow you to configure multiple network interfaces onto the same logical network. You probably want the 'alias' command to add the IPs to one physical interface. This is addressed in the FAQ and Handbook, and the ifconfig(8) man page. If you want to do trunking, that is another matter. Also be careful with your media statements, particuarly with regard to duplex. You may need to specify the duplex type with mediaopt. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org