Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2003 16:16:18 +0200
From:      Willie Viljoen <will@unfoldings.net>
To:        Eric Masson <e-masson@kisoft-services.com>, Mailing List FreeBSD Network <freebsd-net@FreeBSD.org>
Subject:   Re: mpd & nullmodem link
Message-ID:  <200304091616.18432.will@unfoldings.net>
In-Reply-To: <86znmzvkxc.fsf@notbsdems.interne.kisoft-services.com>
References:  <86znmzvkxc.fsf@notbsdems.interne.kisoft-services.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304091616.18432.will>