Subject: Re: illegal network routes and a ponderance
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-net
Date: 02/19/2003 20:54:30
--ghzN8eJ9Qlbqn3iT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, Feb 18, 2003 at 05:29:51PM -0800, netbsd99@sudog.com wrote:

> In linux, this "just works":
>=20
> IP: 1.2.3.4
> nm: 255.255.255.0
>=20
> route add -host 4.3.2.1 dev eth0
> route add default 4.3.2.1
>=20
> ... presto.
>=20
> Setting a default route in a similar fashion doesn't appear to work on Ne=
tBSD.

route add -host 4.3.2.1 addressofeth0 -iface
route add -default

should do the trick, although I've only used it in production
environments with network routes.

(A small test later)

Well, it doesn't work, but

route add -net 4.3.2.0 -netmask 255.255.255.248 eth0 -iface

worked.

Be sure to not use these addresses for outside-visible tests... those
appear to be Verizon's DSL equipment addresses.

Regards,
	-is

--ghzN8eJ9Qlbqn3iT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+U+D1PCRcZ/VMtk4RAqcFAJ9Nou6gdFDEkDkO3QaBKqPxhKSIHACcCbk/
SdIwZ4YkHYiZc++mCcsVQQI=
=ch0e
-----END PGP SIGNATURE-----

--ghzN8eJ9Qlbqn3iT--