Skip site navigation (1)Skip section navigation (2)
Date:      01 Oct 2001 10:35:56 -0500
From:      James McNaughton <jtm63@enteract.com>
To:        "Tippyarat Tansupasiri" <fon@cs.ait.ac.th>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: how to set up PPP via null-modem cable?
Message-ID:  <861yknfk4j.fsf@localhost.21stcentury.net>
In-Reply-To: <000a01c11a78$5eb989e0$d3aa29c0@cs.ait.ac.th>
References:  <000a01c11a78$5eb989e0$d3aa29c0@cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
"Tippyarat Tansupasiri" <fon@cs.ait.ac.th> writes:

> How to set up PPP to connect two FreeBSD4.2 machines using serial (null-modem)
> cable? I tried with 'ifconfig' to set the IP addresses but got 'ppp0: IPv6 not
> supported' message. What should I do?
> 
>  
> 
> regards,
> 
> Tippyarat T.

I found that using user ppp rather than pppd was easier to set
up. Maybe that's because I was more familiar with it.

Anyway, with user ppp there is no need to use ifconfig -- all the
interface setup is done in the ppp.conf file.

I don't know how to setup IPv6 and so never tried to make the link
anything but IPv4.

Here is what my /etc/ppp/ppp.conf file looked like from one machine:


default:
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa0

 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set timeout 180			# 3 minute idle timer (the default)
# add default HISADDR			# Add a (sticky) default route
# enable dns				# request DNS info (for resolv.conf)

papchap:

 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 set phone PHONE_NUM
 set authname USERNAME
 set authkey PASSWORD

other-host-name:
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa0
 set server +3000 <INSERT PASSWORD>
 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set ifaddr 192.168.0.1/0 192.168.0.2/0 255.255.255.0 0.0.0.0

The ppp process was started with the "-dedicated" option from
/etc/rc.local.

This was just a kludge for me until my NICs came in the mail. I found a used pair of 10Bast-T NICs on the internet for the same price as the null modem cable. Wish I'd known that before I bought the cable. Anyhow, best of luck.

Jim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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