Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 17:53:39 -0600
From:      Jordan Breeding <jordan.breeding@attbi.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Questions about setting up two network cards for the same network in FreeBSD
Message-ID:  <3C59D903.6070707@attbi.com>

next in thread | raw e-mail | index | archive | help
Hello,

   I have currently started using FreeBSD more and more instead of Linux 
but would like to get a few issues ironed out before I make the switch a 
full time thing.  Right now I have a small LAN and my main box has two 
3com interfaces which are both connected to it.  One of the 3com cards 
is setup as 192.168.1.2 and is used mainly as an outgoing (and response 
to outgoing) traffic which is setup as a DMZ at the router.  The other 
card is setup as 192.168.1.3 and is setup in Linux to have a route 
specifically to the LAN (192.168.1.0/255.255.255.0).  So in Linux my 
network looks something like this:

192.168.1.1 (router) -- gateway to internet
192.168.1.2 (3com no. 1) -- outgoing unrestricted access to internet / 
inbound response to outbound traffic
192.168.1.3 (3com no. 2) -- static route to 192.168.1.0 / handles port 
forwarding from 192.168.1.1

Both 3com cards in linux are setup to use a netmask of 255.255.255.0 and 
192.168.1.2 (eth0) is set up to be the route for 0.0.0.0 while 
192.168.1.3 (eth1) is set up to be a specific route for 192.168.1.0.  I 
noticed while playing with FreeBSD 4.5 RC1, 4.5 RC3, 4.5 and 5.0-CURRENT 
that I can not set up both 3com cards to have 192.168.1.XXX addresses 
and both have a netmask of 255.255.255.0, so for right now I have xl0 as 
192.168.1.2/255.255.255.0 and xl1 as 192.168.1.3/255.255.255.255 with 
/etc/rc.conf seems to like a lot better and both interfaces come up and 
function well.  Is it possible to set up both xl0 and xl1 to be on the 
same network _and_ have the same netmask in FreeBSD, also how would I go 
about using /etc/rc.conf to specify the routes explicitly which I 
normally use in linux?  Thanks for any help.  Please Cc: me if possible 
as I am not on the list.

Jordan Breeding


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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