Date: Tue, 8 Jul 2003 10:05:50 -0700 From: "Derrick Ryalls" <ryallsd@datasphereweb.com> To: "'Michael A. Smith'" <msmith@code-fu.com>, <questions@freebsd.org> Subject: RE: dual-homed problems Message-ID: <004801c34573$323e11b0$0200a8c0@bartxp> In-Reply-To: <3F0AF447.4090009@code-fu.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>=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: <MII bus> on dc0 > ukphy0: <Generic IEEE 802.3u media interface> on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > rl0: <D-Link DFE-530TX+ 10/100BaseTX> 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: <MII bus> on rl0 > rlphy0: <RealTek internal media interface> on miibus1 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >=20 > Here's the ifconfig output on the two NICs: > dc0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>) > status: active > rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > inet6 fe80::205:5dff:fe36:15a7%rl0 prefixlen 64 scopeid 0x2 > ether 00:05:5d:36:15:a7 > media: Ethernet autoselect (100baseTX <full-duplex>) > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004801c34573$323e11b0$0200a8c0>