Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2001 09:12:40 -0600
From:      "Darryl Hoar" <darryl@osborne-ind.com>
To:        "'Odhiambo Washington'" <wash@iconnect.co.ke>
Cc:        <freebsd-questions@freebsd.org>
Subject:   RE: ppp.conf and routing
Message-ID:  <002001c09dab$10caaba0$0701a8c0@darryl>
In-Reply-To: <20010223094504.D64643@poeza.iconnect.co.ke>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the RTFM,
but I already have read the handbook ppp, as well as the Pedantic PPP
Primer.
There are significant differences between these two references.  In
addition,
they muddle between ppp pre-version 2 settings, and version 2 and greater.
After reading, it is not clear to me if I need a ppp.linkup to cause the
temporary route (10.0.0.1 <-> 10.0.0.2 per my ppp.conf) to be deleted once
ppp uses IPCP to set the real IPs & route.  In addition, as per my ifconfig
line in my ppp.conf, I use the 0.0.0.0 at the end.  The handbook makes
reference
to this but is not clear if it is necessary since I use the 10.0.0.1/0
10.0.0.2/0 guesses in my config file, do I need the 0.0.0.0 or is it just
useless
overhead.

Sorry if this is such a basic question, but I have not found the info I need
in the handbook or primer.

thanks,
Darryl

-----Original Message-----
From: Odhiambo Washington [mailto:wash@iconnect.co.ke]
Sent: Friday, February 23, 2001 12:45 AM
To: freebsd-questions@freebsd.org
Cc: darryl@osborne-ind.com
Subject: Re: ppp.conf and routing


* Darryl Hoar <darryl@osborne-ind.com> [20010223 01:16]: writing on the
subject 'ppp.conf and routing'
Darryl> Greetings,
Darryl> I am running FreeBSD 4.0-release and this is my ppp.conf file:
Darryl>
Darryl> #################################################################
Darryl> # PPP  Sample Configuration File
Darryl> # Originally written by Toshiharu OHNO
Darryl> # Simplified 5/14/1999 by wself@cdrom.com
Darryl> #
Darryl> # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2 1999/08/27 23:24:08 peter Exp
$
Darryl> #################################################################
Darryl>
Darryl> default:
Darryl>
Darryl>  #
Darryl>  # Make sure that "device" references the correct serial port
Darryl>  # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
Darryl>  #
Darryl>
Darryl>  set device /dev/cuaa0
Darryl>
Darryl>  set log Phase Chat LCP IPCP CCP tun command
Darryl>  set speed 115200
Darryl>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
ATE1Q0
Darryl> OK
Darryl>  \\dATDT\\T TIMEOUT 40 CONNECT"
Darryl>
Darryl>  set timeout 300
Darryl>  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Darryl>  add default HISADDR
Darryl>  enable dns
Darryl> ruralnet:
Darryl>  set phone 1234567
Darryl>  set authname XXXX
Darryl>  set authkey XXXX
Darryl>
Darryl> My IP is dynamically assigned to me by my ISP.
Darryl>
Darryl> Question:
Darryl> When I do a netstat -rn, I see among other things:
Darryl> Destination              Gateway
Darryl> 10.0.0.2                  10.0.0.1
Darryl>
Darryl> I thought after ppp negotiated the IP address, that the suggested
Darryl> 10.0.0.1/10.0.0.2  would
Darryl> be deleted by ppp automagically.  Do I have something misconfigured
?
Darryl>
Darryl> thanks,
Darryl> Darryl

Go back and read the ppp manuals. They are on the web and pretty much
everything is well explained there. You cannot go ahead by skipping it.

www.freebsd.org/tutorials/ppp/book.html


-Wash

--
Odhiambo Washington  Inter-Connect Ltd.,
wash@iconnect.co.ke  5th Flr Furaha Plaza
Tel: 254 11 222604   Nkrumah Rd.,
Fax: 254 11 222636   PO Box 83613 MOMBASA, KE.

An expert is a person who avoid the small errors while sweeping on to the
grand fallacy.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002001c09dab$10caaba0$0701a8c0>