From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 19:29:43 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AC9F16A4CE for ; Tue, 15 Feb 2005 19:29:43 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3129A43D3F for ; Tue, 15 Feb 2005 19:29:43 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 18DDDC57F37 for ; Tue, 15 Feb 2005 14:29:42 -0500 (EST) X-Sasl-enc: ghy92v4jfEwFO4PXAKG4mw 1108495781 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id 2738B56F785 for ; Tue, 15 Feb 2005 14:29:41 -0500 (EST) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1D0mFc-00075H-F2 for freebsd-questions@freebsd.org; Mon, 14 Feb 2005 13:51:20 -0600 Date: Mon, 14 Feb 2005 13:51:20 -0600 From: Nathan Kinkade To: freebsd-questions@freebsd.org Message-ID: <20050214195120.GO8365@gentoo-npk.bmp.ub> Mail-Followup-To: freebsd-questions@freebsd.org References: <200502112206.43267.dgw@liwest.at> <200502121505.20754.dgw@liwest.at> <420E2992.10509@ps102.de> <200502121827.13481.dgw@liwest.at> <420F9311.8080000@spintech.ro> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S4drRqups3dkeHIl" Content-Disposition: inline In-Reply-To: <420F9311.8080000@spintech.ro> X-PGP-Fingerprint: 3FDF A406 B149 3959 A8CB C5A9 3B46 4812 D852 7E49 User-Agent: Mutt/1.5.6i Sender: Subject: Re: How do I set the source address on a multi-homed host? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 19:29:43 -0000 --S4drRqups3dkeHIl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 13, 2005 at 07:49:05PM +0200, Alin-Adrian Anton wrote: > I really don't see why you use A-class netmask. It's very probable that= =20 > a C-class netmask would suffice: They already are using a /24 (class C) network. Take another look at the mask - 0xffffff00. In any case, the network 'class' in use is not important. > rl1 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 >=20 > Also, the routes for rl1 which is the internal interface don't look norma= l. >=20 > You should have only one rl1 entry, like this: >=20 > 10.0.0.0 link#2 UC 0 0 rl1 >=20 > And not: > >10 link#2 UC 2 0 rl1 > >10.0.0.3 00:0d:61:17:fc:30 UHLW 1 444 rl1 9= 03 > >10.255.255.255 ff:ff:ff:ff:ff:ff UHLWb 0 2453 rl1 >=20 > See? Why special route for 10.0.0.3? No, those routes are normal. They were all added to the routing table by FreeBSD. On the second line, the 903 is an expiration time for the route. I'm not sure why FreeBSD adds these temporary entries (too avoid having to do an ARP lookup?), but they are documented in the handbook. The 1st line is just a route for the subnet on the rl1 interface. The final is just another route for what is presumable the broadcast address for the rl1 network. =20 Nathan --S4drRqups3dkeHIl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCEQE4O0ZIEthSfkkRAm3UAKDORt/UyqcWEl/2dDzljD7Bu7CZkgCfb2r2 8Potx84/DexMOw6TMcmAKX0= =XOim -----END PGP SIGNATURE----- --S4drRqups3dkeHIl--