*BSD News Article 46429


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!news.ultranet.com!news.sprintlink.net!howland.reston.ans.net!Germany.EU.net!nntp.gmd.de!nntp.darmstadt.gmd.de!news.th-darmstadt.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ip addresses & pppd
Date: 5 Jul 1995 09:17:32 +0200
Organization: Private U**x site, Dresden.
Lines: 35
Message-ID: <3tdeac$dtq@bonnie.tcd-dresden.de>
References: <Pine.ULT.3.91.950703125003.8124B-100000@silver.ucs.indiana.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

jack david ross  <jdross@indiana.edu> wrote:

> two things, could some tell me what ip #'s I should use in the below file
>for remote and local host and why.
>Background on our network:

>        ###.###.###.5  = freebsd ppp server

>192.217.111.?:192.217.111.?     # ip's of local and remote hosts
>                                # local ip must be different from one
>                                # you assigned to the ethernet ( or other )
>                                # interface on your machine.
>                                # remote IP is ip address that will be
>                                # assigned to the remote machine

I think the .5 address is the primary ethernet interface, yes?

It's safe to re-use this address also for another point-to-point
(SLIP, PPP) link, since routing considerations for ppp links do only
apply for the remote end.  However, you _can_ also use a different IP
address.

The remote end needs any address 5 < XXX < 100.  You need something
like gated running on the ppp server, since it's acting as a router
(gateway).  This way, it will announce the incoming ppp connection
into the net, and you can even use different remote IP addresses for
different remote peers.

You need to turn packet forwarding on
(sysctl -w net.inet.ip.forwarding=1, if i remember well).
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)