Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 06:27:33 -0700
From:      pete wright <nomadlogic@gmail.com>
To:        Hexren <me@hexren.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Re[2]: 2 Network Cards & 2 IP's?
Message-ID:  <57d710000410270627188b4120@mail.gmail.com>
In-Reply-To: <432307798.20041027075440@hexren.net>
References:  <20041026162657.B873943D5D@mx1.FreeBSD.org> <1098825225.4101.17.camel@aaron.proficuous.com> <11516587842.20041026232016@hexren.net> <200410262030.49276.josh@tcbug.org> <432307798.20041027075440@hexren.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Oct 2004 07:54:40 +0200, Hexren <me@hexren.net> wrote:
> 
> JP> On Tuesday 26 October 2004 21:20, Hexren wrote:
> >> >> For example:
> >> >>
> >> >> 192.168.1.100 on NIC 1
> >> >>
> >> >> 192.168.1.101 on NIC 2
> >> >>
> >> >> Gateway 192.168.1.1
> >>
> >> ----------------------------------
> >>
> >> Am I seeing the wrong problem when I say that:
> >>
> >> #ifconfig NIC1 192.168.1.100
> >> #ifconfig NIC1 192.168.1.101
> >> #route add default 192.168.1.1
> >>
> >> should do what you want ?
> >>
> >> Hexren
> 
> JP> You can't put two NICs w/ the same subnet into a FBSD machine
> 
> ---------------------------------------------
> 
> I can't challenge that I never tried but it should surprise me if that
> was true. What error message does the system give if you try to do
> that ?
> 

as per previous posts in this thread.  basicly you get warning
messages in your logs like so:
 

> xl0
> arp: 192.168.1.100 is on fxp0 but got reply from 00:02:b3:9f:74:89 on
> xl0
> arp: 192.168.1.1 is on fxp0 but got reply from 00:07:e9:10:43:78 on

which can be diabled:
net.link.ether.inet.log_arp_wrong_iface: 1

i belive, don't have a box to check the sysctl with right now....


-p


-- 
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group



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