Date: Thu, 31 Jan 2002 21:47:34 -0800 From: "Crist J. Clark" <cristjc@earthlink.net> To: Jordan Breeding <jordan.breeding@attbi.com> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Questions about setting up two network cards...[resend] Message-ID: <20020131214734.L152@gohan.cjclark.org> In-Reply-To: <3C5A2667.5050308@attbi.com>; from jordan.breeding@attbi.com on Thu, Jan 31, 2002 at 11:23:51PM -0600 References: <3C5A2667.5050308@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 31, 2002 at 11:23:51PM -0600, Jordan Breeding wrote: [snip] > 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? If your FreeBSD system is acting as a router, which it will be unless you configure it otherwise, the configuration you want makes no sense. Look at it from the point of view of the machine. Both interfaces have addresses on 192.168.1.0/24 and both have 0xffffff00 netmasks. Say your machine wants to talk to 192.168.1.10. Which interface to use? You've told your machine 192.168.1.10 is local to _both_ interfaces! There is no way for it to know which interface to use. There are two ways to go, (1) you can set your machine up as a bridge, not a router (this may be what you are really doing when you used a Linux distribution?), but doing NAT on a bridge... ewww. Or (2) you can put the interfaces on separate logical networks. That's probably the most "proper" way to go. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org 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?20020131214734.L152>