*BSD News Article 47810


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!news.sprintlink.net!gatech!news.mathworks.com!news.kei.com!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Where to get iijppp? or kernel support for pppd?
Date: 25 Jul 1995 14:31:03 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 88
Distribution: na
Message-ID: <3v2v77$ejf@sol.ctr.columbia.edu>
References: <3v1c5i$74t@bcarh8ab.bnr.ca>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se,
Glenn (G. A.) Davis (gdavis@bnr.ca) had the courage to say:

: re: ppp for FreeBSD 2.0

: I have no kernel support for pppd and no idea how to do rebuild the kernel.
: I don't have the hard disk space for the entire src distribution but I could load
: selected directories if I new what source is required to re-build the kernel
: ( and the procedure to do it).

: All in all,  I think the easiest route is to get hold of iijppp which I've have seen
: described in postings in this newsgroup.  Yes, I've looked for /usr/sbin/ppp;
: any package on the CD which includes the string ppp in the description; and for
: ppp source directories on the CD.  No luck.

: Is there a web or ftp site out there with this stuff?

: thanks, Glenn

You don't need the entire source tree to build a new kernel; you
just need the ssys.?? portion of the sources, which are only a few
megs in size. The easiest way to add PPP is to take the GENERIC
kernel configuration file, look for the line that says:

pseudo-device sl 2

And add a line under that which says:

pseudo-device ppp 2

This will add support for 2 ppp interfaces.

As for the user-mode PPP stuff, that's new with 2.0.5. You won't find
it in 2.0. I'm not sure it'll be that easy to add it to 2.0 either.
Best bet is to upgrade.

With that in mind, I'd like to point out once and for all that you
_DON'T_ -- I repeat: you DO NOT -- have to make a custom kernel to
add kernel-PPP support in 2.0.5. If you look under /lkm, you'll find
a loadable module called if_ppp_mod.o which can be dynamically loaded
into a running system to add PPP support without requiring a new kernel.

All you need to do to use it is this:

# cd /lkm
# modload -e if_ppp_mod -o /tmp/if_ppp_mod if_ppp_mod.o
Module loaded as ID 0

Presto! You have PPP support:

# modstat
Type     Id Off Loadaddr Size Info     Rev Module Name
MISC      0   0 f0618000 0014 f061b274   1 if_ppp
# ifconfig -a
ed1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 128.59.64.56 netmask 0xffffff00 broadcast 128.59.64.255
        ether 02:60:8c:a8:27:da 
lp0: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You need to reload the module each time you boot the system, but you
can easily modify /etc/netstart to do that for you.

I use this trick to load SLIP on my system at home. I have a very small
kernel (I've only got 4 megs of RAM, so I need to be careful how I use
it) that doesn't have SLIP support built in. Whenever I need it, I
just load the if_sl module and connect to the net.

Note that once a module like if_ppp, if_sl of even if_tun is loaded,
it *CANNOT* be unloaded later: these modules wire themselves very
securely into the kernel and don't provide mechanisms for un-wiring
themselves after the fact. If you tried to forcibly unload them, the
system would crash.

-Bill

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Møøse Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~