From owner-freebsd-net@FreeBSD.ORG Wed Apr 9 07:16:54 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A275237B401 for ; Wed, 9 Apr 2003 07:16:54 -0700 (PDT) Received: from apollo.laserfence.net (apollo.laserfence.net [196.44.69.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id E26C843F3F for ; Wed, 9 Apr 2003 07:16:52 -0700 (PDT) (envelope-from will@unfoldings.net) Received: from localhost ([127.0.0.1]) by apollo.laserfence.net with esmtp (Exim 4.10) id 193GNS-000KSm-00; Wed, 09 Apr 2003 16:16:38 +0200 Received: from prometheus-p0.datel.laserfence.net ([192.168.255.1] helo=prometheus.home.laserfence.net) by apollo.laserfence.net with esmtp (Exim 4.10) id 193GNE-000KSZ-00; Wed, 09 Apr 2003 16:16:25 +0200 Received: from phoenix.home.laserfence.net ([192.168.0.2]) by prometheus.home.laserfence.net with esmtp (Exim 4.10) id 193GN9-000AOB-00; Wed, 09 Apr 2003 16:16:19 +0200 Received: from will by phoenix.home.laserfence.net with local (Exim 4.10) id 193GN8-0001Pc-00; Wed, 09 Apr 2003 16:16:18 +0200 From: Willie Viljoen To: Eric Masson , Mailing List FreeBSD Network Date: Wed, 9 Apr 2003 16:16:18 +0200 User-Agent: KMail/1.5.1 References: <86znmzvkxc.fsf@notbsdems.interne.kisoft-services.com> In-Reply-To: <86znmzvkxc.fsf@notbsdems.interne.kisoft-services.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304091616.18432.will@unfoldings.net> Sender: Willie Viljoen X-Spam-Score: (/) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *193GNE-000KSZ-00*4371M1p8OwQ* X-Virus-Scanned: by AMaViS snapshot-20020422 Subject: Re: mpd & nullmodem link X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 14:16:55 -0000 On Wednesday 09 April 2003 15:51, someone, possibly Eric Masson, typed: > Hello, > > mpd-3.13 > FreeBSD 4.8-RELEASE > > I've googled for pointers about establishing a nullmodem link beetween 2 > mpd enabled boxes (mpd doc seems to say that it's possible). > Why use mpd for this? pppd(8) will do just fine. Here's a quick example, all needed is a pppd on both ends, end for the cable to be plugged in: #/etc/ppp/options on pc1 cuaa0 #FreeBSD: COM1 in DOS 115200 crtscts lock local #Use nullmodem mode instead of modem lines deflate #Compression # IP address for this end : IP address for other end 192.168.254.1:192.168.254.1 netmask 255.255.255.255 #/etc/ppp/options on pc2 #Same as above, except 192.168.254.2:192.168.254.1 #If the other machine is Linux, cuaa0 is ttyS0. Now just start pppd on both ends and once it syncs, you will be able to have the machines talk IP to each other. To start pppd automatically and have it restarted if it dies, add this to /etc/ttys: cuaa0 "/usr/sbin/pppd cuaa0 -detach" unknown on This can also be done in Linux, check man inittab. Hope this helps. Will -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) will@unfoldings.net