From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 10:04:07 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 92FC437B401 for ; Tue, 8 Jul 2003 10:04:07 -0700 (PDT) Received: from datasphereweb.com (12-212-67-226.client.attbi.com [12.212.67.226]) by mx1.FreeBSD.org (Postfix) with SMTP id E0C4043FBD for ; Tue, 8 Jul 2003 10:04:04 -0700 (PDT) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 5648 invoked from network); 8 Jul 2003 17:04:03 -0000 Received: from evrtwa1-ar17-4-47-114-001.evrtwa1.dsl-verizon.net (HELO bartxp) (4.47.114.1) by datasphereweb.com with SMTP; 8 Jul 2003 17:04:03 -0000 From: "Derrick Ryalls" To: "'Michael A. Smith'" , Date: Tue, 8 Jul 2003 10:05:50 -0700 Message-ID: <004801c34573$323e11b0$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <3F0AF447.4090009@code-fu.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: dual-homed problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 17:04:07 -0000 >=20 > I've got a machine that's been running fine for years with one NIC. I=20 > want to experiment with setting it up as a gateway and have=20 > installed a=20 > second NIC in it. I can't seem to get the second NIC working fully. >=20 > Here's the dmesg output on the two NICs: > dc0: <82c169 PNIC 10/100BaseTX> port 0x9100-0x91ff mem=20 > 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=20 > 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 >=20 > Here's the ifconfig output on the two NICs: > dc0: flags=3D8843 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=3D8843 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 >=20 > Here's my /etc/rc.conf lines for the two NICs:=20 > ifconfig_dc0=3D"inet 192.168.1.144 netmask 255.255.255.0"=20 > ifconfig_rl0=3D"inet 192.168.1.145 netmask 255.255.255.0" >=20 >=20 > As you can see from the ifconfig output, the new NIC is UP=20 > and RUNNING,=20 > but has no IP address (even though I have it in /etc/rc.conf). I can=20 > bring rl0 "down" and "up" again without a problem. If I try=20 > to add the=20 > IP data manually using ifconfig, I get this error: >=20 > zeus# ifconfig rl0 inet 192.168.1.145 netmask 255.255.255.0 > ifconfig: ioctl (SIOCAIFADDR): File exists >=20 > Any ideas for getting this NIC up and running properly?? >=20 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.