Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2000 12:39:54 -0700
From:      carl <statik@cris.com>
To:        questions@freebsd.org
Subject:   tun0 and gateway!
Message-ID:  <4.3.1.1.20000709123847.00b3cad0@pop3.concentric.net>

next in thread | raw e-mail | index | archive | help
i just today setup my gateway comp and now i can share ppp connectiion 
between 2 freebsd 4.0r computers!!!! exciting stuff, unfortunetly my ppp 
consistantly dies!!!!!!      below is my ppp.conf file

#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2 1999/08/27 23:24:08 peter Exp $
#################################################################
default:
# Make sure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
set device /dev/cuaa1
accept pap
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 ATM0L0 
OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 0
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns
cnc:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone 111111131231
set authname myusername
set authkey mypassword
my isp using pap, the nameserver is in place at /etc/resolv.conf..i think 
there could be a confiict with my other computer or its causing some type 
of confusion. by the way..my gateway computer nic card is assinged to 
10.0.0.1 and the other comp is 10.0.0.2.
..i can connect fine for a few minutes with both machines. and suddenly i 
can't ping anything! ( from both comps). i set the timeout to 0 in both the 
ppp prompt and in the ppp.conf...i have also tried kppp which has worked 
fine but i can't get alias working with it. here is the firtst couple lines 
of ifconfig rl0 of my gateway:
inet 10.0.0.1 netmask 0xffffff00 br[adcast 10.0.0.255
inet6 fe80::220:afff:fed8:d6d3%rl0 prefixlen 64 scopdeid 0x1
first line of my other machine's ifconfig ep0
inet 10.0.0.2 netmask 0xffffffffff0 broadcast 10.0.0.255
id really appreicate it if anyone could help me with this!!!! thanks!!!
carl



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?4.3.1.1.20000709123847.00b3cad0>