From owner-freebsd-questions Thu Jan 31 15:53:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ledzep.dyndns.org (12-237-133-3.client.attbi.com [12.237.133.3]) by hub.freebsd.org (Postfix) with ESMTP id CEB1937B416 for ; Thu, 31 Jan 2002 15:53:46 -0800 (PST) Received: from attbi.com (localhost [127.0.0.1]) by ledzep.dyndns.org (8.11.6/8.11.6) with ESMTP id g0VNrfV08736 for ; Thu, 31 Jan 2002 17:53:43 -0600 Message-ID: <3C59D903.6070707@attbi.com> Date: Thu, 31 Jan 2002 17:53:39 -0600 From: Jordan Breeding User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 X-Accept-Language: en-us MIME-Version: 1.0 To: FreeBSD Questions Subject: Questions about setting up two network cards for the same network in FreeBSD Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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