Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2007 13:21:58 -0500
From:      Josh Paetzel <josh@tcbug.org>
To:        lysergius2001 <lysergius2001@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Dual Routers
Message-ID:  <20071021182158.GB75650@tcbug.org>
In-Reply-To: <a558ebe30710200805n41fecd81h39b67a1099f0eea@mail.gmail.com>
References:  <a558ebe30710161301k42ad30b6k33070fec3385c672@mail.gmail.com> <47152757.5010802@ibctech.ca> <a558ebe30710200805n41fecd81h39b67a1099f0eea@mail.gmail.com>

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

--Yylu36WmvOXNoKYn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

lysergius2001 wrote:
> Thanks.
>=20
> Sort of.  I would still like to use the ethernet connection to connect to
> both the adsl modem and my internal network which uses fixed ip addresses,
> and have option to use the wireless connection via cable modem to the
> internet.  Does that make sense?
>=20

Since they are both using dhcp, your ability to use dhcp to configure
the interfaces is limited solely by the configurability of the dhcp
servers. In general most out of the box consumer routers hand out a
default route and there's not a lot you can do about that, which means
that whichever interface runs dhclient last will get the default
route...although you can do some magic with dhclient hooks to get
around that.

But assuming you bring up em0 on 192.168.1.2/24 and ath0 on
192.168.2.2/24 and set the default route to 192.168.1.1 you can switch
over to using the wireless/cable as your path to the internet by doing
a route delete default, route add default 192.168.2.1

To use both connections simultaniously you are going to want to look
in to using pf's route-to and reply-to statements.

I have extensive experience using FreeBSD with multiple WAN links and
what is and is not possible with them...if you send along a detailed
explanation of what you are trying to accomplish I can help you get
there.

--=20
Thanks,

Josh Paetzel

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHG5jGJvkB8SevrssRAmhCAJ49LZhMdBoqUp23b9BiKIWJpaPHvQCff7NZ
vw0EyaBo5I4dkmxZMBKV+zA=
=eI8L
-----END PGP SIGNATURE-----

--Yylu36WmvOXNoKYn--



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