Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2000 16:57:57 -0800 (PST)
From:      William Woods <freebsd@cybcon.com>
To:        leclaire@switzcpl.lib.in.us
Cc:        freebsd-mobile@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: ppp dialup question + LAN
Message-ID:  <XFMail.000119165757.freebsd@cybcon.com>
In-Reply-To: <Pine.BSF.4.20.0001191847510.273-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <freebsd@cybcon.com>
>> 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 <freebsd@cybcon.com>
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-mobile" in the body of the message




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