Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2005 13:51:20 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        freebsd-questions@freebsd.org
Subject:   Re: How do I set the source address on a multi-homed host?
Message-ID:  <20050214195120.GO8365@gentoo-npk.bmp.ub>
In-Reply-To: <420F9311.8080000@spintech.ro>
References:  <200502112206.43267.dgw@liwest.at> <200502121505.20754.dgw@liwest.at> <420E2992.10509@ps102.de> <200502121827.13481.dgw@liwest.at> <420F9311.8080000@spintech.ro>

next in thread | previous in thread | raw e-mail | index | archive | help

--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:
<snip>
> 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--



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