*BSD News Article 46358


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!bloom-beacon.mit.edu!spool.mu.edu!howland.reston.ans.net!europa.chnt.gtegsc.com!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!cs.ubc.ca!cs.ubc.ca!not-for-mail
From: coatta@cs.ubc.ca (Terry Coatta)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Dynamic PPP to 2 Different ISP's
Followup-To: comp.unix.bsd.freebsd.misc
Date: 3 Jul 1995 14:06:51 -0700
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Lines: 65
Message-ID: <3t9m5b$jsb@ice.cs.ubc.ca>
Reply-To: coatta@nsg.bc.ca
NNTP-Posting-Host: ice.cs.ubc.ca

I gather, based on the documentation about dfilters, etc. that it should
be possible to set up auto-dialing PPP so that packets addressed to
some set of addresses cause one number to be dialed, and packets
addressed to another set cause a different number to be dialed.

In particular, I have one class C address block associated with one
ISP and everything else associated with another.  In either case,
once the link is up I want to install a default route to the
ISP I am connected to.

My approach has been to configure the kernel for 2 tunnel devices, and
to start up 2 ppp processes with the -auto flag. I have entries
in ppp.conf for each ISP.

I have included below the ppp.conf which I am using (I have removed 
the chat scripts which actually connect to the system -- trust me, 
they work).  I have also tried this setup with the route adding
command elimimated.  I also have a simple ppp.linkup (also shown below).

The problem I experience, is that if I try to connect to address
142.103.4.1 (which should be associated with entry ubc:) it
stil ends up dialing the isp: entry).

default:
 set speed 38400
 set device /dev/cuaa1
 set timeout 0
 set debug chat phase

ubc:
 set ifaddr 198.162.38.102 198.162.36.35
 set dfilter 0 permit 0/0 198.162.36.0/24 
 set dfilter 1 permit 0/0 142.103.10.0/24
 set dfilter 2 permit 0/0 142.103.4.0/24
 set timeout 300
 add 198.162.36.0 255.255.255.0 198.162.36.35
 add 198.162.38.0 255.255.255.0 198.162.36.35
 add 142.103.10.0 255.255.255.0 198.162.36.35
 add 142.103.4.0 255.255.255.0 198.162.36.35

isp:
 set ifaddr 199.60.99.86 199.60.99.1
 set dfilter 0 deny 0/0 198.162.36.0/24
 set dfilter 1 deny 0/0 142.103.10.0/24
 set dfilter 2 deny 0/0 142.103.4.0/24
 set dfilter 3 permit 0/0 0/0
 set timeout 300
 add 0 0 199.60.99.1

----------- ppp.linkup ---------------

199.60.99.86:
  delete ALL
  add 0 0 HISADDR

198.162.38.102:
  delete ALL
  add 0 0 HISADDR

Terry Coatta
coatta@nsg.bc.ca
-- 

Terry Coatta (coatta@cs.ubc.ca)