dual-homed problems

Derrick Ryalls ryallsd at datasphereweb.com
Tue Jul 8 10:04:07 PDT 2003


> 
> 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: <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 
> 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
> 
> Here's the ifconfig output on the two NICs:
> dc0: flags=8843<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=8843<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
> 
> 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??
> 

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.





More information about the freebsd-questions mailing list