Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2003 13:58:29 -0400
From:      Paul Chvostek <paul+fbsd@it.ca>
To:        "Michael A. Smith" <msmith@code-fu.com>
Cc:        questions@freebsd.org
Subject:   Re: dual-homed problems
Message-ID:  <20030708175829.GA49596@mail.it.ca>
In-Reply-To: <3F0AF447.4090009@code-fu.com>
References:  <3F0AF447.4090009@code-fu.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@it.ca>
  it.canada                                            http://www.it.ca/
  Free PHP web hosting!                            http://www.it.ca/web/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030708175829.GA49596>