pppoe ..., newbie

Robert Storey y2kbug at ms25.hinet.net
Sat Apr 17 03:54:59 PDT 2004


On Fri, 16 Apr 2004 22:43:17 -0400
"Rainer" <littlecloud at vif.com> wrote:

> any pointers would be useful,

Dear Ranier,

I'll give you below my entire ppp.conf file. There are four things you'll need
to change:

ISP_NAME
MY_FREEBSD_USER_NAME
MY_NAME at MY_ISP.COM
MY_PASSWORD

That ought to do it. Then to start a connection, open an Xterm and type:

   ppp -background ISP_NAME

Of course, for ISP_NAME substitute whatever name you used in the ppp.conf file.
Actually, you can use any name you like, it doesn't have to be your ISP's real
name, "aardvark" would be fine, you just have to be consistent. To shut down the
connection:

   killall ppp

So without further ado, the ppp.conf file:

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself at cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $
#################################################################

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

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


# set speed 115200
# set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
#           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 600			# 3 minute idle timer (the default)
 enable dns				# request DNS info (for resolv.conf)

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

 set device PPPoE:rl0
 set authname MY_NAME at MY_ISP.COM
 set authkey MY_PASSWORD

# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set ifaddr 0 0
 add default HISADDR			# Add a (sticky) default route




More information about the freebsd-questions mailing list