From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 10:58:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A98637B401 for ; Tue, 8 Jul 2003 10:58:42 -0700 (PDT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 964F943FA3 for ; Tue, 8 Jul 2003 10:58:41 -0700 (PDT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.9/8.12.9) with ESMTP id h68HwTU9055686; Tue, 8 Jul 2003 13:58:30 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.9/8.12.6/Submit) id h68HwTlH055685; Tue, 8 Jul 2003 13:58:29 -0400 (EDT) (envelope-from paul) Date: Tue, 8 Jul 2003 13:58:29 -0400 From: Paul Chvostek To: "Michael A. Smith" Message-ID: <20030708175829.GA49596@mail.it.ca> References: <3F0AF447.4090009@code-fu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F0AF447.4090009@code-fu.com> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: dual-homed problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 17:58:42 -0000 On Tue, Jul 08, 2003 at 12:41:43PM -0400, Michael A. Smith wrote: > > rl0: port 0x9200-0x92ff mem Ugh... I've never liked those cards. I had two in a gateway a couple of years ago -- the box spontaneously rebooted twice a week until I replace them with fxp's, at which point the only thing to take it down was a power supply fan.... > rl0: interrupting at CIA irq 3 Ooh, the CIA is in your computer. > Here's my /etc/rc.conf lines for the two NICs: > ifconfig_dc0="inet 192.168.1.144 netmask 255.255.255.0" > ifconfig_rl0="inet 192.168.1.145 netmask 255.255.255.0" This is wrong. When you assign IP addresses to interfaces, you give them a subnet they know they can find on the Ethernet segment connected to that interface. Where should your computer send traffic for 192.168.1.100? Out which interface? > zeus# ifconfig rl0 inet 192.168.1.145 netmask 255.255.255.0 > ifconfig: ioctl (SIOCAIFADDR): File exists This error occurs when FreeBSD tries to overwrite the routing info set by the ifconfig statement for the first NIC. Do a `netstat -rn` to see relationships between subnets and interfaces. > Any ideas for getting this NIC up and running properly?? Use a different IP network for it: ifconfig_dc0="inet 192.168.1.144 netmask 255.255.255.0" ifconfig_rl0="inet 192.168.2.1 netmask 255.255.255.0" Or use a smaller IP network for it: ifconfig_dc0="inet 192.168.1.144 netmask 255.255.255.0" ifconfig_rl0="inet 192.168.1.253 netmask 255.255.255.252" But if 192.168.1.0/24 is in your routing table, its traffic goes out of one, and only one, interface. -- Paul Chvostek it.canada http://www.it.ca/ Free PHP web hosting! http://www.it.ca/web/