From owner-freebsd-current Fri Jan 24 03:05:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA21801 for current-outgoing; Fri, 24 Jan 1997 03:05:33 -0800 (PST) Received: from emout09.mail.aol.com (emout09.mx.aol.com [198.81.11.24]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA21796 for ; Fri, 24 Jan 1997 03:05:30 -0800 (PST) From: StevenR362@aol.com Received: (from root@localhost) by emout09.mail.aol.com (8.7.6/8.7.3/AOL-2.0.0) id GAA10676; Fri, 24 Jan 1997 06:04:57 -0500 (EST) Date: Fri, 24 Jan 1997 06:04:57 -0500 (EST) Message-ID: <970123210549_-2012976636@emout09.mail.aol.com> To: zerodist@ms2.hinet.net, freebsd-current@freebsd.org Subject: Re: PPP dynamic IP routing Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a message dated 97-01-23 04:28:15 EST, zerodist@ms2.hinet.net (zerodist) writes: > I use a dial up phone to dial up to my ISP. Both my ISP and I got ip > addresses > randomly. To do automatic routing, I use Ip style as follows in ppp.conf > and > ppp.linkup. > ifconfig 203.70.2.66/24 203.70.2.4/24 in ppp.conf > add 0 0 203.70.2.4/24 in ppp.linkup > But it seems not much help. Now I still have to add default route > manually. > In linux I can solve this problem using device name. > Thanks. c.c. list trimmed to one group. Try adding the following entry to ppp.linkup # Otherwise, simply add peer as default gateway. MYADDR: add 0 0 HISADDR You don't need an ifconfig line in ppp.conf but if you insist then do it like this. set ifaddr 203.70.2.66/24 203.70.2.4/24 255.255.255.0 ^ remember to have a leading space. Then when you connect with iij ppp and the connection is established. Do a "show route" command at the ppp command line. You should have a default route entry corresponding to the remote host's ip address. The "show ipcp" command will tell you both your assigned ip and the remote ip for this particular dialup session. It works fine for me, especially with the -alias flag. Steve