From owner-freebsd-questions Mon Oct 1 8:41:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-2.enteract.com (smtp-2.enteract.com [207.229.143.4]) by hub.freebsd.org (Postfix) with ESMTP id 1F6D137B413 for ; Mon, 1 Oct 2001 08:37:52 -0700 (PDT) Received: from jamestown.21stcentury.net (24-148-18-116.na.21stcentury.net [24.148.18.116]) by smtp-2.enteract.com (Postfix) with ESMTP id C1B3C7F84; Mon, 1 Oct 2001 10:37:36 -0500 (CDT) Received: (from jtm@localhost) by jamestown.21stcentury.net (8.11.6/8.11.3) id f91FZuR12624; Mon, 1 Oct 2001 10:35:57 -0500 (CDT) (envelope-from jtm63@enteract.com) X-Authentication-Warning: jamestown.21stcentury.net: jtm set sender to jtm63@enteract.com using -f To: "Tippyarat Tansupasiri" Cc: Subject: Re: how to set up PPP via null-modem cable? References: <000a01c11a78$5eb989e0$d3aa29c0@cs.ait.ac.th> From: James McNaughton Date: 01 Oct 2001 10:35:56 -0500 In-Reply-To: <000a01c11a78$5eb989e0$d3aa29c0@cs.ait.ac.th> Message-ID: <861yknfk4j.fsf@localhost.21stcentury.net> Lines: 73 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Tippyarat Tansupasiri" 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 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