Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2000 18:58:14 -0500 (EST)
From:      Andre LeClaire <leclaire@sprintmail.com>
To:        William Woods <freebsd@cybcon.com>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG
Subject:   Re: ppp dialup question + LAN
Message-ID:  <Pine.BSF.4.20.0001191847510.273-100000@localhost>
In-Reply-To: <XFMail.000119001002.freebsd@cybcon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0001191847510.273-100000>