From owner-freebsd-questions@FreeBSD.ORG Sun Oct 21 18:22:09 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FC7516A417 for ; Sun, 21 Oct 2007 18:22:09 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from cenn-smtp.mc.mpls.visi.com (cenn.mc.mpls.visi.com [208.42.156.9]) by mx1.freebsd.org (Postfix) with ESMTP id 633D413C491 for ; Sun, 21 Oct 2007 18:22:08 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from mail.tcbug.org (mail.tcbug.org [208.42.70.163]) by cenn-smtp.mc.mpls.visi.com (Postfix) with ESMTP id 1C2698123; Sun, 21 Oct 2007 13:21:58 -0500 (CDT) Received: by mail.tcbug.org (Postfix, from userid 1001) id E3E5010AA8A4; Sun, 21 Oct 2007 13:21:58 -0500 (CDT) Date: Sun, 21 Oct 2007 13:21:58 -0500 From: Josh Paetzel To: lysergius2001 Message-ID: <20071021182158.GB75650@tcbug.org> Mail-Followup-To: lysergius2001 , freebsd-questions@freebsd.org References: <47152757.5010802@ibctech.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-questions@freebsd.org Subject: Re: Dual Routers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Josh Paetzel List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 18:22:09 -0000 --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--