dual-homed problems
Paul Chvostek
paul+fbsd at it.ca
Tue Jul 8 10:58:42 PDT 2003
On Tue, Jul 08, 2003 at 12:41:43PM -0400, Michael A. Smith wrote:
>
> rl0: <D-Link DFE-530TX+ 10/100BaseTX> port 0x9200-0x92ff mem
Ugh... I've never liked those cards. I had two in a gateway a couple
of years ago -- the box spontaneously rebooted twice a week until I
replace them with fxp's, at which point the only thing to take it down
was a power supply fan....
> rl0: interrupting at CIA irq 3
Ooh, the CIA is in your computer.
> 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"
This is wrong. When you assign IP addresses to interfaces, you give
them a subnet they know they can find on the Ethernet segment connected
to that interface. Where should your computer send traffic for
192.168.1.100? Out which interface?
> zeus# ifconfig rl0 inet 192.168.1.145 netmask 255.255.255.0
> ifconfig: ioctl (SIOCAIFADDR): File exists
This error occurs when FreeBSD tries to overwrite the routing info set
by the ifconfig statement for the first NIC. Do a `netstat -rn` to see
relationships between subnets and interfaces.
> Any ideas for getting this NIC up and running properly??
Use a different IP network for it:
ifconfig_dc0="inet 192.168.1.144 netmask 255.255.255.0"
ifconfig_rl0="inet 192.168.2.1 netmask 255.255.255.0"
Or use a smaller IP network for it:
ifconfig_dc0="inet 192.168.1.144 netmask 255.255.255.0"
ifconfig_rl0="inet 192.168.1.253 netmask 255.255.255.252"
But if 192.168.1.0/24 is in your routing table, its traffic goes out of
one, and only one, interface.
--
Paul Chvostek <paul at it.ca>
it.canada http://www.it.ca/
Free PHP web hosting! http://www.it.ca/web/
More information about the freebsd-questions
mailing list