Subject: Re: Connecting to a remote System
To: Al Urbaitis <aurbaiti@servecom.picker.com>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 07/11/2001 22:43:12
On Wed, Jul 11, 2001 at 04:08:08AM -0600, Al Urbaitis wrote:
> I am trying to connect "rebellion" (an ill behaved laptop ) to a remote 
> location.
> The remote location consists of a "Netopia" dial in router.
> The netopia router runs "dhcp" providing a single ip address to dial in 
> users.
> 
> What I wish for is...
> 1. Maintain my broadband connection. The laptop is connected to a LAN
> 2. Dial up the remote site acquire the new ip address for the serial port
> 3. Arrange a routing configuration that will allow me to work on the 
> remote site

Al, 

You're in luck.  I just did this, because I wanted dial backup in case my DSL
line goes down.  

You need "noipdefault" to cause pppd to acquire its ip address from the host it
connects to (your Netopia router).

You need "defaultroute" set on in your pppd options peer file if you want your
ip traffic to use the ppp link instead of using you broadband connection.  

I had to add ip-up and ip-down scripts, too, along these lines:

ip-up:
	/sbin/route change default $5 |logger
ip-down:
	/sbin/route change default `cat /etc/mygate` |logger
	
but that might be overkill.  I'm not an expert; I just have recent experience.  

Let me know if you need more.  

--jkl