From owner-freebsd-questions Wed Jan 19 15:58:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from crow.a001.sprintmail.com (crow.prod.itd.earthlink.net [209.178.63.7]) by hub.freebsd.org (Postfix) with ESMTP id 67D141535F; Wed, 19 Jan 2000 15:58:25 -0800 (PST) (envelope-from leclaire@sprintmail.com) Received: from [192.168.0.2] (dialup-63.210.225.111.Cincinnati1.Level3.net [63.210.225.111]) by crow.a001.sprintmail.com (8.8.7/8.8.5) with ESMTP id PAA06678; Wed, 19 Jan 2000 15:58:15 -0800 (PST) Date: Wed, 19 Jan 2000 18:58:14 -0500 (EST) From: Andre LeClaire Reply-To: leclaire@switzcpl.lib.in.us To: William Woods Cc: freebsd-questions@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG Subject: Re: ppp dialup question + LAN In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is the way I do it: Leave the defaultrouter and ifconfig statements out of /etc/rc.conf and add them to /etc/pccard.conf like so: card "Linksys" "combo PCMCIA EthernetCard (EC" config 0x0 "ed0" 5 insert ifconfig ed0 inet 192.168.0.5 netmask 0xffffff00 insert route add default 192.168.0.1 insert echo 'Linksys Combo EthernetCard (EC2T) inserted' remove ifconfig ed0 delete remove route flush remove echo 'Linksys Combo EthernetCard (EC2T) removed' Hey, it may not be "The Right Way", but it works for me! Andre On Wed, 19 Jan 2000, William Woods wrote: > I have a laptop that uses PPP to connect to the net, but also, when connected > to my LAN uses my other FreeBSD box as a gateway. in rc.conf there is > an entry for defaultrouter="192.168.0.2" when I am on the LAN, what would be an > easy to switch from LAN to ppp dialup without editing rc.conf commenting out > the default router and rebooting ? > > Thanks > > ---------------------------------- > E-Mail: William Woods > Date: 19-Jan-00 > Time: 00:08:04 > > This message was sent by XFMail > ---------------------------------- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-mobile" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message