2 Network Cards & 2 IP's?

pete wright nomadlogic at gmail.com
Wed Oct 27 06:27:35 PDT 2004


On Wed, 27 Oct 2004 07:54:40 +0200, Hexren <me at 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


More information about the freebsd-questions mailing list