From owner-freebsd-questions Wed Jan 19 16:59:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.cybcon.com (mail.cybcon.com [216.190.188.5]) by hub.freebsd.org (Postfix) with ESMTP id 58E93153B1; Wed, 19 Jan 2000 16:59:08 -0800 (PST) (envelope-from freebsd@cybcon.com) Received: from laptop.cybcon.com (william@usr1-6.cybcon.com [205.147.75.7]) by mail.cybcon.com (8.9.3/8.9.3) with ESMTP id QAA14523; Wed, 19 Jan 2000 16:58:56 -0800 (PST) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 19 Jan 2000 16:57:57 -0800 (PST) From: William Woods To: leclaire@switzcpl.lib.in.us Subject: Re: ppp dialup question + LAN Cc: freebsd-mobile@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, I dident do what you did, but you gave me some ideas, I wrote two scripts, dialup homelan and it seems to be working fine, Thanks On 19-Jan-00 Andre LeClaire wrote: > 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-mobile" in the body of the message ---------------------------------- E-Mail: William Woods Date: 19-Jan-00 Time: 16:56:32 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message