From owner-freebsd-net@FreeBSD.ORG Tue Feb 1 18:13:21 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF63316A4CE for ; Tue, 1 Feb 2005 18:13:21 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 5F29843D2D for ; Tue, 1 Feb 2005 18:13:15 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 97416 invoked by uid 0); 1 Feb 2005 18:04:58 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.99.7) by mail.freebsd.org.cn with SMTP; 1 Feb 2005 18:04:58 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 3F2A8134138 for ; Wed, 2 Feb 2005 02:13:07 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 52785-02 for ; Wed, 2 Feb 2005 02:12:53 +0800 (CST) Received: from localhost.localdomain (unknown [221.217.209.135]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id D17281317BB for ; Wed, 2 Feb 2005 02:12:52 +0800 (CST) From: Xin LI To: freebsd-net@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-W7l3o9fZV6LIkx5t6/5p" Organization: The FreeBSD Simplified Chinese Project Date: Wed, 02 Feb 2005 02:11:36 +0800 Message-Id: <1107281496.809.48.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at frontfree.net Subject: Two NIC's connected to same subnet: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: delphij@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 18:13:21 -0000 --=-W7l3o9fZV6LIkx5t6/5p Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Dear folks, I think I got confused with the routing problem we will have when at least two NIC's are connected into the same subnet. The scenario: em0: 192.168.0.1/24 em1: 192.168.0.2/24 We can't simply configure like this, since 192.168.0.0/24 network route exists as soon as either em0 or em1 is up. A workaround for this is that we assign 192.168.0.2/32 for em1, but that has another issue that all traffics will go through em0 for "outgoing", say, outside the current network. A google of the issue has indicated that the "Move ARP out of routing table" work done last April should have resolved this, as "With this change it is possible to have more than one interface in the same IP subnet and layer 2 broadcast domain.". However, what I have found from our mailing list archive says only to assign /32 IP address, or remove routing item from route table, which is essentially identical to the /32 solution. So is there any way to utilize the both NIC's? I think I have been confused :-( Cheers, --=20 Xin LI http://www.delphij.net/ --=-W7l3o9fZV6LIkx5t6/5p Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8?= =?UTF-8?Q?=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB/8ZY/cVsHxFZiIoRAh0EAJ9NpldQ4lZGZLosedCAMIiCpMTWiQCfdbN3 IfiBbJt/LTtTx+/qxlwdU90= =kk6O -----END PGP SIGNATURE----- --=-W7l3o9fZV6LIkx5t6/5p--