From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 09:41:53 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 8830D37B401 for ; Tue, 8 Jul 2003 09:41:53 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83F6D43F85 for ; Tue, 8 Jul 2003 09:41:52 -0700 (PDT) (envelope-from msmith@code-fu.com) Received: from code-fu.com (pcp711666pcs.alxndr01.va.comcast.net[68.50.73.176](untrusted sender)) by comcast.net (sccrmhc11) with SMTP id <2003070816414401100j5t4fe>; Tue, 8 Jul 2003 16:41:44 +0000 Message-ID: <3F0AF447.4090009@code-fu.com> Date: Tue, 08 Jul 2003 12:41:43 -0400 From: "Michael A. Smith" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030609 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 16:41:53 -0000 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" 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 Any ideas for getting this NIC up and running properly?? Thanks!! -- Michael A. Smith Programmer at Large