From owner-freebsd-questions Sun Sep 8 14:55:32 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA27496 for questions-outgoing; Sun, 8 Sep 1996 14:55:32 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA27490 for ; Sun, 8 Sep 1996 14:55:24 -0700 (PDT) Received: from bigpuppy.newell.arlington.va.us (fbsd.newell.arlington.va.us [206.27.236.65]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id OAA02677 for ; Sun, 8 Sep 1996 14:55:22 -0700 (PDT) Received: (from mnewell@localhost) by bigpuppy.newell.arlington.va.us (8.6.12/8.6.9) id RAA19720; Sun, 8 Sep 1996 17:50:25 -0400 Date: Sun, 8 Sep 1996 17:50:24 -0400 (EDT) From: Mike Newell To: Mike cc: questions@freebsd.org Subject: Re: Kernel PPP and BitSurfer Pro In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 8 Sep 1996, Mike wrote: > I am trying to setup kernel ppp to connect to an Ascend terminal server. > Has anyone done this successfully? Any words of wisdom would be > appreciated. Yes, I have read te handbook. For the kernel all you have to do is build one that supports the tun0 interface. *I* use a BitSurfer Pro to connect to another BSP on a FreeBSD machine that acts as my dialin-server. I use PPPD though; I find that PPP (aka ijppp) tends to keep disconnecting under heavy load whenever I try to use it. :-( To build a kernel with tun device support, steps are: 1. Go to the config directory: cd /sys/i386/conf 2. Make a copy of the generic kernel config file: cp GENERIC whatever Replace "whatever" with the name of the kernel you want. I call mine "MikesKernel". For the rest of these instructions I'll assume the name "whatever" and you can fill in what you want. 3. Edit "whatever" and add the line pseudo-device tun n where "n" should be "1", "2", etc. - the number of PPP interfaces you'll need. You might also want to stick in a line like pseudo-device bpfilter 6 so that you can use tcpdump on the device (you may have to increase 6; basically there needs to be one bpfilter for each net device. Use "ifconfig -a" to figure out how many devices you have). 4. I also change the "ident" line so that I can differentiate my kernel from the generic one. 5. Config the build files: config whatever 6. Build the kernel: cd ../../compile/whatever make depend make 7. Assuming the kernel builds OK (no reason it shouldn't!! :-) then install it: make install 8. Now reboot. 'course you probably don't have to do all this, since if you're using the GENERIC kernel it should have tun devices built in. Do "ifconfig -a" to see if it does. If so then you should just use the ijppp according to the instructions to talk to the Ascend. One thing the Ascends do that other terminal servers don't necessarily do is they can be configed to _assume_ a PPP link from the start. If yours is so configured then you should _NOT_ to a login script, but rather do authentication via PAP (or preferrably) CHAP. You won't get the standard "Username:"/"Password:" prompts, and your connection will come up MUCH faster... Hope this helps, Mike +--------------------------------------+------------------------------------+ | Mike Newell | The opinions expressed herein | | Affiliation: | are mine. You can take them or | | Address: | leave them. Flames to /dev/null. | +--------------------------------------+------------------------------------+ | Mike@Newell.arlington.va.us | http://www.newell.arlington.va.us | +--------------------------------------+------------------------------------+ | "Peace. It's wonderful!" Father Divine. | +---------------------------------------------------------------------------+