From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 10:49:46 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 909DD37B401 for ; Tue, 8 Jul 2003 10:49:46 -0700 (PDT) Received: from parmenides.zen.co.uk (parmenides.zen.co.uk [212.23.8.69]) by mx1.FreeBSD.org (Postfix) with SMTP id 76A6C43FCB for ; Tue, 8 Jul 2003 10:49:45 -0700 (PDT) (envelope-from stacey@vickiandstacey.com) Received: (qmail 1959 invoked from network); 8 Jul 2003 17:49:43 -0000 Received: from protagoras.zen.co.uk (212.23.8.61) by parmenides.zen.co.uk with QMQP; 8 Jul 2003 17:49:43 -0000 Received: from 82-68-31-177.dsl.in-addr.zen.co.uk (HELO ?192.168.1.8?) (82.68.31.177) by protagoras.zen.co.uk with SMTP; 8 Jul 2003 17:49:43 -0000 X-Zen-Trace: 82.68.31.177 From: Stacey Roberts To: Derrick Ryalls In-Reply-To: <004801c34573$323e11b0$0200a8c0@bartxp> References: <004801c34573$323e11b0$0200a8c0@bartxp> Content-Type: text/plain Message-Id: <1057686585.349.245.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 08 Jul 2003 17:49:46 +0000 Content-Transfer-Encoding: 7bit cc: questions@freebsd.org cc: "'Michael A. Smith'" Subject: RE: dual-homed problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: stacey@vickiandstacey.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 17:49:46 -0000 Hello, On Tue, 2003-07-08 at 17:05, Derrick Ryalls wrote: > > > > I've got a machine that's been running fine for years with one NIC. I > > want to experiment with setting it up as a gateway and have > > installed a > > second NIC in it. I can't seem to get the second NIC working fully. > > > > Here's the dmesg output on the two NICs: > > dc0: <82c169 PNIC 10/100BaseTX> port 0x9100-0x91ff mem > > 0x81061000-0x810610ff irq 1 at device 11.0 on pci0 > > dc0: interrupting at CIA irq 1 > > dc0: Ethernet address: 00:02:e3:07:17:3b > > miibus0: on dc0 > > ukphy0: on miibus0 > > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > rl0: port 0x9200-0x92ff mem > > 0x81061100-0x810611ff irq 3 at device 12.0 on pci0 > > rl0: interrupting at CIA irq 3 > > rl0: Ethernet address: 00:05:5d:36:15:a7 > > miibus1: on rl0 > > rlphy0: on miibus1 > > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > > > Here's the ifconfig output on the two NICs: > > dc0: flags=8843 mtu 1500 > > inet 192.168.1.144 netmask 0xffffff00 broadcast 192.168.1.255 > > inet6 fe80::202:e3ff:fe07:173b%dc0 prefixlen 64 scopeid 0x1 > > ether 00:02:e3:07:17:3b > > media: Ethernet autoselect (100baseTX ) > > status: active > > rl0: flags=8843 mtu 1500 > > inet6 fe80::205:5dff:fe36:15a7%rl0 prefixlen 64 scopeid 0x2 > > ether 00:05:5d:36:15:a7 > > media: Ethernet autoselect (100baseTX ) > > status: active > > > > 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" > > > > You're not allowed to have two interfaces active on the same subnet > > As you can see from the ifconfig output, the new NIC is UP > > and RUNNING, > > but has no IP address (even though I have it in /etc/rc.conf). I can > > bring rl0 "down" and "up" again without a problem. If I try > > to add the > > IP data manually using ifconfig, I get this error: > > > > zeus# ifconfig rl0 inet 192.168.1.145 netmask 255.255.255.0 > > ifconfig: ioctl (SIOCAIFADDR): File exists > > This is a warning that the IP details you've attempted to assign to the nic is already loaded, and that it cannot be loaded again. > > Any ideas for getting this NIC up and running properly?? > > > The second nic is not coming up for the simple reason (I presume) that the former nic is already up and active on the 192.168.1.x subnet. Dual-homed hosts (PC-based routers) are usually set up to route packets between two *different* networks. So, as suggested below, you'll want to assign a different network address to the second nic, and (providing there's a lan there) all should be well. Regards, Stacey > I haven't seen that error before, but you do have a small problem with > the config. You shouldn't have two cards on the same subnet. If you > just want to try it out, assign the new card a 192.168.2.xxx address. > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com