*BSD News Article 62018


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!disco.iinet.net.au!news.uoregon.edu!news.jsums.edu!news2.cais.net!news.cais.net!primus.ac.net!imci4!newsfeed.internetmci.com!uwm.edu!cs.utexas.edu!news.unt.edu!jove!kbm0001
From: kbm0001@jove.acs.unt.edu (Kwang Bae Min)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HELP - Having problems setting up ppp
Date: 23 Feb 1996 17:41:06 GMT
Organization: University of North Texas
Lines: 105
Message-ID: <4gku7i$pv3@hermes.acs.unt.edu>
References: <4gjfs5$hbt@sleet.snowhill.com>
NNTP-Posting-Host: jove.acs.unt.edu
X-Newsreader: TIN [version 1.2 PL2]

The following is a working example of a simple configuration of
user ppp (a.k.a. iijppp): 
(Concocted numeric IPs are used for my ISP, for obvious reasons.)
N.B. Most of these are adapted from FreeBSD handbook.

/etc/sysconfig
==============
### Start Of Netconfig Section ###
hostname=mypc
defaultdomainname=NO
tcp_extensions=YES

#----------------------------------------
# Loopback & User PPP (iijppp)
network_interfaces="lo0 tun0"
ifconfig_lo0="inet localhost"
ifconfig_tun0="inet ${hostname} ppp-gateway netmask 0xffffff00"
#----------------------------------------

#----------------------------------------
static_routes="loopback"
route_loopback="${hostname} localhost"
#----------------------------------------

defaultrouter=NO
routedflags=NO
timedflags=NO
xntpdflags="NO"
tickadjflags="-Aq"
ntpdate="NO"
rwhod=NO
sendmail_flags="-bd"
amdflags="NO"
nfs_client=NO
nfs_server=NO
nis_clientflags="NO"
nis_serverflags="NO"
yppasswddflags="NO"
namedflags="NO"
xtend=NO
savecore=NO
kerberos_server=NO
gated=NO

check_quotas=NO
accounting=NO
### End Of Netconfig Section ###

/etc/hosts
==========
127.0.0.1		localhost loghost localhost.my.domain
10.0.0.1		mypc mypc	# my machine
123.123.1.111		ppp-gateway	# My ISP's PPP GATEWAY

/etc/host.conf
==============
hosts
bind

/etc/resolv.conf
================
domain		xxx.com
nameserver	123.123.1.1
nameserver	123.123.1.11
nameserver	123.123.1.22
nameserver	123.123.1.33

/etc/ppp/ppp.conf
=================
#--------------------
# default: always
#--------------------
default:
 set device /dev/modem
# /dev/modem -> /dev/cuaaN   (symbolic link to real modem device)
 set speed 57600
 set parity none
 disable lqr pred1
 deny lqr pred1
 set dial "ABORT BUSY ABORT NO\\sCARRIER ABORT NO\\sDIAL\\sTONE TIMEOUT 5 \"\" ATZ OK AT!@#$% OK \\dATDT\\T TIMEOUT 30 CONNECT"
# use your modem's init string in place of !@#$%, or omit "AT!@#$% OK"
#--------------------
# myisp site: ppp with PAP authentication, dynamic IP assignment
#--------------------
myisp:
 set phone 9876543
 accept pap
 set authname MyLoginName
 set authkey  MyPassword
 set login "TIMEOUT 5 number:-\\r-number: ppp Switching\\sto\\sPPP."
# login string depends on your ISP's terminal server menu
 set timeout 0
 set openmode active
 set ifaddr 0 0

/etc/ppp/ppp.linkup
===================
MYADDR:
 add 0 0 HISADDR

/etc/ppp/ppp.secret (optional)
===================
root   RootPassword
userx  UserxPassword