From owner-freebsd-questions Sat Jan 13 16:14:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id D640437B401 for ; Sat, 13 Jan 2001 16:14:06 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.9.3/8.9.3) with SMTP id TAA65345; Sat, 13 Jan 2001 19:13:22 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <004701c07dbf$1418a980$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: , "Chip" Cc: References: <3A60E983.A188AF84@wiegand.org> <20010113160215.H97980@rfx-64-6-211-149.users.reflexco> Subject: Re: LAN and Modem on one machine Date: Sat, 13 Jan 2001 19:15:11 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sat, Jan 13, 2001 at 03:49:24PM -0800, Chip wrote: > > I have a fbsd 4.2 machine with a lan connection to the internet, > > and have added a modem so I can do some realistic web page > > performance testing. Is there a way to tell the browser, whether > > it's netscape or links or whatever, to use the modem connection > > rather than the lan connection? Or do I have to pull the lan > > cable before dialing out with ppp? > > Pulling the cable wouldn't do you any good anyway. You may to > need to play with the routing table. See netstat(8) and route(8). If you're using user-ppp (man ppp(8)), then you should look at /etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown. Using these scripts you can set your default route to be over the modem when the PPP link comes up, and to restore the LAN route when the PPP link goes down. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message