Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 1998 21:06:11 +0100
From:      "Ian O'Friel" <Genius@glasgow.crosswinds.net>
To:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Cc:        <freebsd-newbies@FreeBSD.ORG>
Subject:   PPP Still doesn't work, I've included as much info as possible....
Message-ID:  <002001bd8c06$99cbbac0$f7e107c3@metallica>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hey Peeps, Who thinks they can help ??

Right, I sent a message to FreeBSD a few days ago because I cannot set my
PPP up for a Dial-Up connection.  I have included as much information as
possible in the attachments. I have included my ppp.conf which I altered
slightly with the help of 'Haavard Vaagstoel', I have included my un-altered
ppp.conf , my Kernel File before it was compiled, a list of the /dev/
directory and the output of dmesg which I grabbed after booting up with the
verbose command.

I have a DataFlex Modem which is v34 I am unsure whether it is 28.8 or 33.6k
I was told it was 28.8 but the V34 implies it is 33.6k but the maximum speed
achieved is only 31.2k (Strange!! : )

On Windows 95 it is on COM 3 as it is an internal modem, it is using IRQ 9
I think I read something about setting that for IRQ 2 under FBSD ??) I had
a lot of trouble setting this up under Windows NT never mind FreeBSD....

The modem uses the I/O range 038E - 03EF I'm not sure if it is plug and play
or not as it doesn't tell me on the modem and it is sealed unit with no
jumpers (Even under the casing, my guess is that it is PnP)

MY PC is a Pentium 133 with 48Meg RAM and two Hard Drives, a FAT32 drive and
a 1.2 Gb spilt 400Mg FAT16 and 400Mg FreeBSD with 400 Meg left unformatted.

----------------------------------------------------

When I try PPP using the defaults I set in ppp.conf I try 'dial net' (Net is
the connection I am trying to set up) it gives the Following error,

May 30 20:17:41 freedom ppp[163]: tun0: Error: OpenModem failed: /dev/cuaa2:
Device not Configured.

I then give the command

set line /dev/cuaa0

And then I try dial net again and the following is given

Dial attempt 1 of 1
DialModem: Dial Failed

I cannot get the thing to work at all and absolutely any advice and any
solutions will be most gratefully accepted. I have attached the files in
plain text format.

dev.txt    ==> result of 'lf /dev/ > /mnt/dev.txt
ppp.conf.txt ==> copy of altered ppp.conf
ppp.conf.old.txt  ==> un-altered ppp.conf
kernel.txt  ==> uncompiled Kernel
boot.txt  ==> result of dmesg > /mnt/boot.txt after a verbose boot

Thanx A lot..........

Ian O'Friel
Solve-My-Problems@online-home.ndirect.co.uk



[-- Attachment #2 --]
Copyright (c) 1992-1997 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.5-RELEASE #0: Fri May 29 10:32:11 BST 1998
    root@freedom.fighters.com:/usr/src/sys/compile/Freedom-Kernel
Calibrating clock(s) ... i586 clock: 132972667 Hz, i8254 clock: 1193346 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CLK_USE_I586_CALIBRATION not specified - using old calibration method
CPU: Pentium (132.96-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping=12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 50331648 (49152K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x00203000 - 0x02ffdfff, 48214016 bytes (11771 pages)
avail memory = 46657536 (45564K bytes)
pcibus_setup(1):	mode 1 addr port (0x0cf8) is 0x800038a0
pcibus_setup(1a):	mode1res=0x80000000 (0x80000000)
pcibus_check:	device 0 is there (id=12508086)
Probing for devices on PCI bus 0:
	configuration mode 1 allows 32 devices.
chip0 <Intel 82439> rev 3 on pci0:0
vga0 <VGA-compatible display device> rev 65 on pci0:4
	mapreg[10] type=0 addr=40000000 size=1000000.
	mapreg[14] type=1 addr=0000f000 size=0100.
	mapreg[18] type=0 addr=43000000 size=1000.
chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
	I/O Recovery Timing: 8-bit 1 clocks, 16-bit 1 clocks
	Extended BIOS: disabled
	Lower BIOS: enabled
	Coprocessor IRQ13: enabled
	Mouse IRQ12: disabled
	Interrupt Routing: A: disabled, B: IRQ10, C: disabled, D: IRQ11
		MB0: IRQ15, MB1: 
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
	mapreg[20] type=1 addr=0000ffa0 size=0010.
	Primary IDE: enabled
	Secondary IDE: enabled
pci0:7:2: Intel Corporation, device=0x7020, class=0x0c, subclass=0x03 int d irq 11 [no driver assigned]
	map(20): io(1000)
pci0:14:    vendor=0x109e, device=0x0350, class=multimedia (video) int a irq 10 [no driver assigned]
	map(10): mem32(9ff00008)
pci0: uses 16781312 bytes of memory from 40000000 upto 43000fff.
pci0: uses 272 bytes of I/O space from f000 upto ffaf.
Probing for devices on the ISA bus:
sc0: the current keyboard controller command byte 0045
kbdio: DIAGNOSE status:0055
kbdio: TEST_KBD_PORT status:0000
kbdio: RESET_KBD return code:00fa
kbdio: RESET_KBD status:00aa
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: BIOS video mode:3
sc0: VGA registers upon power-up
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: video mode:24
sc0: VGA registers for mode:24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 not found at 0x2f8
sio2 not found at 0x3e8
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
lpt1 not found at 0xffffffff
mse0: wrong signature ff
mse0 not found at 0x23c
psm0: current command byte:0045
kbdio: TEST_AUX_PORT status:0000
kbdio: RESET_AUX return code:00fa
kbdio: RESET_AUX status:00aa
kbdio: RESET_AUX ID:0000
psm0: status after reset 00 02 64
psm: status 90 02 3c (get_mouse_buttons)
psm0: status 00 02 64
psm0 at 0x60-0x64 irq 12 on motherboard
psm0: device ID 0, 2 buttons
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <QUANTUM BIGFOOT_CY2160A>
wd0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (wd1): <QUANTUM FIREBALL_TM1280A>
wd1: 1222MB (2503872 sectors), 2484 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 not found at 0x170
bt0 not found at 0x330
uha0 not found at 0x330
aha0 not found at 0x330
aic0 not found at 0x340
nca0 not found at 0x1f88
nca1 not found at 0x350
sea0 not found
wt0 not found at 0x300
mcd0: timeout getting status
mcd0 not found at 0x300
matcdc0 not found at 0x230
scd0 not found at 0x230
npx0 flags 0x1 on motherboard
npx0: INT 16 interface
joy0 at 0x201 on isa
joy0: joystick
imasks: bio c0004040, tty c0031092, net c0031092
BIOS Geometries:
 0:026b3f3f 0..619=620 cylinders, 0..63=64 heads, 1..63=63 sectors
 1:03fd3f3f 0..1021=1022 cylinders, 0..63=64 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
Considering FFS root f/s.
configure() finished.
wd1s1: type 0x6, start 63, end = 628991, size 628929 : OK
wd1s2: type 0xa5, start 628992, end = 1447487, size 818496 : OK

[-- Attachment #3 --]
MAKEDEV*
MAKEDEV.local*
apm
bpf0
card0
card1
cd0a
cd0c
ch0
console
consolectl
cuaa0
cuaa1
cuaa2
cuaa3
cuaia0
cuaia1
cuaia2
cuaia3
cuala0
cuala1
cuala2
cuala3
drum
erst0
erst0.0
erst0.1
erst0.2
erst0.3
fd/
fd0
fd0.1200
fd0.1440
fd0.1480
fd0.1720
fd0.360
fd0.720
fd0.800
fd0.820
fd0a
fd0b
fd0c
fd0d
fd0e
fd0f
fd0g
fd0h
fd1
fd1.1200
fd1.1440
fd1.1480
fd1.1720
fd1.360
fd1.720
fd1.800
fd1.820
fd1a
fd1b
fd1c
fd1d
fd1e
fd1f
fd1g
fd1h
ft0
ft0a
io
klog
kmem
lkm
log@
lpctl0
lpctl1
lpctl2
lpt0
lpt1
lpt2
matcd0a
matcd0c
matcd0la
matcd0lc
mcd0a
mcd0c
mem
mouse@
mse0
nrst0
nrst0.0
nrst0.1
nrst0.2
nrst0.3
nrwt0
nrwt0b
nrwt0c
nrwt0d
null
od0
od0a
od0b
od0c
od0d
od0e
od0f
od0g
od0h
od0s1
od0s2
od0s3
od0s4
pcaudio
pcaudioctl
pci
perfmon
psm0
ptyp0
ptyp1
ptyp2
ptyp3
ptyp4
ptyp5
ptyp6
ptyp7
ptyp8
ptyp9
ptypa
ptypb
ptypc
ptypd
ptype
ptypf
ptypg
ptyph
ptypi
ptypj
ptypk
ptypl
ptypm
ptypn
ptypo
ptypp
ptypq
ptypr
ptyps
ptypt
ptypu
ptypv
random
rcd0.ctl
rcd0a
rcd0c
rch0.ctl
rfd0
rfd0.1200
rfd0.1440
rfd0.1480
rfd0.1720
rfd0.360
rfd0.720
rfd0.800
rfd0.820
rfd0a
rfd0b
rfd0c
rfd0d
rfd0e
rfd0f
rfd0g
rfd0h
rfd1
rfd1.1200
rfd1.1440
rfd1.1480
rfd1.1720
rfd1.360
rfd1.720
rfd1.800
rfd1.820
rfd1a
rfd1b
rfd1c
rfd1d
rfd1e
rfd1f
rfd1g
rfd1h
rft0
rft0a
rmatcd0a
rmatcd0c
rmatcd0la
rmatcd0lc
rmcd0a
rmcd0c
rod0
rod0.ctl
rod0a
rod0b
rod0c
rod0d
rod0e
rod0f
rod0g
rod0h
rod0s1
rod0s2
rod0s3
rod0s4
rscd0a
rscd0c
rsd0
rsd0.ctl
rsd0a
rsd0b
rsd0c
rsd0d
rsd0e
rsd0f
rsd0g
rsd0h
rsd0s1
rsd0s2
rsd0s3
rsd0s4
rsd1
rsd1.ctl
rsd1a
rsd1b
rsd1c
rsd1d
rsd1e
rsd1f
rsd1g
rsd1h
rsd1s1
rsd1s2
rsd1s3
rsd1s4
rsd2
rsd2.ctl
rsd2a
rsd2b
rsd2c
rsd2d
rsd2e
rsd2f
rsd2g
rsd2h
rsd2s1
rsd2s2
rsd2s3
rsd2s4
rsd3
rsd3.ctl
rsd3a
rsd3b
rsd3c
rsd3d
rsd3e
rsd3f
rsd3g
rsd3h
rsd3s1
rsd3s2
rsd3s3
rsd3s4
rst0
rst0.0
rst0.1
rst0.2
rst0.3
rst0.ctl
rvn0
rvn0a
rvn0b
rvn0c
rvn0d
rvn0e
rvn0f
rvn0g
rvn0h
rvn0s1
rvn0s2
rvn0s3
rvn0s4
rwcd0a
rwcd0c
rwd0
rwd0a
rwd0b
rwd0c
rwd0d
rwd0e
rwd0f
rwd0g
rwd0h
rwd0s1
rwd0s2
rwd0s3
rwd0s4
rwd1
rwd1a
rwd1b
rwd1c
rwd1d
rwd1e
rwd1f
rwd1g
rwd1h
rwd1s1
rwd1s2
rwd1s2a
rwd1s2b
rwd1s2c
rwd1s2d
rwd1s2e
rwd1s2f
rwd1s2g
rwd1s2h
rwd1s3
rwd1s4
rwd2
rwd2a
rwd2b
rwd2c
rwd2d
rwd2e
rwd2f
rwd2g
rwd2h
rwd2s1
rwd2s2
rwd2s3
rwd2s4
rwd3
rwd3a
rwd3b
rwd3c
rwd3d
rwd3e
rwd3f
rwd3g
rwd3h
rwd3s1
rwd3s2
rwd3s3
rwd3s4
rwt0
rwt0b
rwt0c
rwt0d
scd0a
scd0c
sd0
sd0a
sd0b
sd0c
sd0d
sd0e
sd0f
sd0g
sd0h
sd0s1
sd0s2
sd0s3
sd0s4
sd1
sd1a
sd1b
sd1c
sd1d
sd1e
sd1f
sd1g
sd1h
sd1s1
sd1s2
sd1s3
sd1s4
sd2
sd2a
sd2b
sd2c
sd2d
sd2e
sd2f
sd2g
sd2h
sd2s1
sd2s2
sd2s3
sd2s4
sd3
sd3a
sd3b
sd3c
sd3d
sd3e
sd3f
sd3g
sd3h
sd3s1
sd3s2
sd3s3
sd3s4
speaker
st0ctl.0
st0ctl.1
st0ctl.2
st0ctl.3
stderr
stdin
stdout
sysmouse
tty
ttyd0
ttyd1
ttyd2
ttyd3
ttyid0
ttyid1
ttyid2
ttyid3
ttyld0
ttyld1
ttyld2
ttyld3
ttyp0
ttyp1
ttyp2
ttyp3
ttyp4
ttyp5
ttyp6
ttyp7
ttyp8
ttyp9
ttypa
ttypb
ttypc
ttypd
ttype
ttypf
ttypg
ttyph
ttypi
ttypj
ttypk
ttypl
ttypm
ttypn
ttypo
ttypp
ttypq
ttypr
ttyps
ttypt
ttypu
ttypv
ttyv0
ttyv1
ttyv2
ttyv3
tun0
tw0
urandom
vga@
vn0
vn0a
vn0b
vn0c
vn0d
vn0e
vn0f
vn0g
vn0h
vn0s1
vn0s2
vn0s3
vn0s4
wcd0a
wcd0c
wd0
wd0a
wd0b
wd0c
wd0d
wd0e
wd0f
wd0g
wd0h
wd0s1
wd0s2
wd0s3
wd0s4
wd1
wd1a
wd1b
wd1c
wd1d
wd1e
wd1f
wd1g
wd1h
wd1s1
wd1s2
wd1s2a
wd1s2b
wd1s2c
wd1s2d
wd1s2e
wd1s2f
wd1s2g
wd1s2h
wd1s3
wd1s4
wd2
wd2a
wd2b
wd2c
wd2d
wd2e
wd2f
wd2g
wd2h
wd2s1
wd2s2
wd2s3
wd2s4
wd3
wd3a
wd3b
wd3c
wd3d
wd3e
wd3f
wd3g
wd3h
wd3s1
wd3s2
wd3s3
wd3s4
zero

[-- Attachment #4 --]
#
#
#	$Id: GENERIC,v 1.77.2.12 1997/10/18 11:03:10 joerg Exp $

machine		"i386"
cpu		"I586_CPU"
ident		Freedom-Kernel
maxusers	8

options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor
options         ATAPI                   #Atapi IDE CD-ROM Support
options         KERNFS

config		kernel	root on wd1a

controller	isa0
controller	eisa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0


options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1

options		ATAPI		#Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
device		wcd0	#IDE CD-ROM
device          wcd1

# A single entry for any of these controllers (ncr, ahb, ahc, amd) is
# sufficient for any number of installed devices.
controller	ncr0
controller	amd0
controller	ahb0
controller	ahc0
controller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
controller	aic0	at isa? port 0x340 bio irq 11 vector aicintr
controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr

controller	scbus0

device		sd0

device		od0	#See LINT for possible `od' options.

device		st0

device		cd0	#Only need one of these, the code dynamically grows

device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr

controller	matcd0	at isa? port 0x230 bio

device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
#options		XSERVER			# support for X server
#options		FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options		PCVT_SCANSET=2		# IBM keyboards are non-std

# Mandatory, don't remove
device		npx0	at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr


device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 2 vector siointr
#device		sio3	at isa? disable port "IO_COM4" tty irq 2 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr
device		lpt1	at isa? port? tty
device		mse0	at isa? port 0x23c tty irq 5 vector mseintr

device		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device   snp     2
pseudo-device	vn	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing

# This provides support for System V shared memory.
#
options         SYSVSHM

#Added by Me....
#Apparent Sound Blaster Driver
#controller snd0
#Apparent Sound Blaster 16 Driver
#device sbvxi0 at isa? drq 5
#Apparent Sound Blaster Midi
#device sbmidi0 at isa? port 0x330

options PERFMON

device joy0 at isa? port "IO_GAME"

[-- Attachment #5 --]
#################################################################
#
#  	PPP Configuration File
#
#	  Ian James O'Friel (FreeBSD@online-home.ndirect.co.uk)
#
# $Id: ppp.conf.sample,v 1.5.2.12 1997/09/10 01:00:27 brian Exp $
#
#################################################################

default:
 set device /dev/cuaa0
 set speed 115200
 set log Phase Chat Connect Carrier LCP IPCP CCP tun 
# allow user root
# set server 3000
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

# Example with a login script
#
#   o From PPP prompt,
#	ppp> dial simplesite
#     automatically dials and performs the login script.
#
#       ppp> load simplesite
#     loads and executes commands, but doesn't dial.
#
#   o From shell, invoke as
#       $ ppp simplesite
#     to load commands associated with the 'simplesite' label. Use,
#       ppp> dial
#     to establish the connection.
#
internet
 set phone 08450798130
 set login "TIMEOUT 5 ogin:--ogin: ian.ofriel word: wendy ocol: ppp"
 set timeout 120

# Multi-phone example.  Numbers separated by a : are used sequentially.
# Numbers separated by a | are used if the previous dial or login script
# failed.  Usually, you will prefer to use only one of | or :, but both
# are allowed.
#
multiphone:
 set phone 12345678|12345679:12345670|12345671
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp ocol: ppp"

# If the peer requires that you use CHAP or PAP, you must supply authname
# and authkey.  Both are "accepted" by default, so you don't have to do
# any more.
#
PAPorCHAPsite:
 set phone 12345678
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp"
 set authname ian.ofriel
 set authkey  wendy

# If you want the remote system to authenticate itself, you insist
# that the peer uses CHAP (or PAP) with the "enable" keyword.  Both CHAP and
# PAP are disabled by default.
# When the peer authenticates itself, we use ppp.secret for verification.
#
# Ppp is launched with
#
#  ppp -direct CHAPserver
#
# Note:  We can supply a third field in ppp.secret specifying the IP address
#        for that user.
#
CHAPserver:
 enable chap
 enable proxy
 set ifaddr 192.244.176.44 292.244.184.31

# If we wish to use /etc/passwd, we do this:
PAPServerwithPASSWD:
 enable pap
 enable passwdauth
 enable proxy
 set ifaddr 192.244.176.44 292.244.184.31

# On demand dialup example
#  Here, we assume that local side use 192.244.185.226 and
#  remote side use 192.244.176.44 as their IP address.
#  You must supply -auto, -ddial or -background option to invoke PPP.
#
#  $ ppp -auto ondemand
#
ondemand:
 set phone 1234567
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp"
 set timeout 120
 set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
 add 0 0 HISADDR

# Another on demand example
#  If the peer assigns us an arbitrary IP and we can't predict what their
#  IP will be either, take a wild guess at an some IPs that you can't
#  currently route to.  Ensure that the "delete" and "add" lines are also
#  present in ppp.linkup so that when we connect, things will be put straight.
#
#  The /0 bit says that we insist on 0 bits of the specified IP actually
#  being correct, therefore, the other side can assign any IP numbers.
#
pmdemand:
 set phone 1234567
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp"
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
 delete ALL
 add 0 0 HISADDR

# Examples to connect using a null-modem cable from one machine to another.
# The important thing here is to allow the lqr packets on both sides.
# Without them enabled, we can't tell if the line's dropped - there
# should always be carrier on a direct connection.
# Here, the server sends lqr's every 10 seconds and quits if three in a
# row fail.
#
# Make sure you don't have "deny lqr" in your default: on the client !
#
direct-client:
 set dial ""
 set line /dev/cuaa0
 set sp 115200
 set timeout 900
 set log Phase Chat LQM
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp HELLO"
 set ifaddr 10.0.4.2 10.0.4.1
 enable lqr
 accept lqr
 
direct-server:
 set timeout 900 10 3
 set log Phase LQM
 set ifaddr 10.0.4.1 10.0.4.2
 enable lqr
 accept lqr

# Example of Callback Request
#
#  Here, we assume that peer will hangup the line and initiates a callback
#  after successful authentication. We simply use chat script capability
#  and wait for a "NO CARRIER" response from our modem.
#
#  $ ppp callback
#
callback:
 set phone 0312345678
 set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: MyName word: MySecret TIMEOUT 20 DUMMY"
 set log phase chat
 dial
 quit

# Example for ppp over tcp.  We assume that inetd on tcpsrv.mynet has been
# configured to run "ppp -direct tcp-server" when it gets a connection on
# port 1234.  Read doc for further details
#
tcp-client:
 set device tcpsrv.mynet:1234
 set dial
 set login
 set escape 0xff
 set ifaddr 10.0.5.1 10.0.4.1 255.255.255.0

tcp-server:
 set escape 0xff
 set ifaddr 10.0.4.1 10.0.5.1 255.255.255.0

[-- Attachment #6 --]
#################################################################
#
#  	PPP Configuration File
#
#	  Ian James O'Friel (FreeBSD@online-home.ndirect.co.uk)
#
# $Id: ppp.conf.sample,v 1.5.2.12 1997/09/10 01:00:27 brian Exp $
#
#################################################################

default:
 set device /dev/cuaa2
 set speed 115200
 set log Phase Chat Connect Carrier LCP IPCP CCP tun 
# allow user root
# set server 3000
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

# Example with a login script
#
#   o From PPP prompt,
#	ppp> dial simplesite
#     automatically dials and performs the login script.
#
#       ppp> load simplesite
#     loads and executes commands, but doesn't dial.
#
#   o From shell, invoke as
#       $ ppp simplesite
#     to load commands associated with the 'simplesite' label. Use,
#       ppp> dial
#     to establish the connection.
#

net:
set phone 08450798130
set login "TIMEOUT 5 ogin:--ogin: ian.ofriel word: wendy"
set timeout 300
alias enable yes
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
delete ALL
add 00 10.0.0.2


internet:
 set phone 08450798130
 set login "TIMEOUT 5 ogin:--ogin: ian.ofriel word: wendy ocol: ppp"
 set timeout 120

# Multi-phone example.  Numbers separated by a : are used sequentially.
# Numbers separated by a | are used if the previous dial or login script
# failed.  Usually, you will prefer to use only one of | or :, but both
# are allowed.
#
multiphone:
 set phone 12345678|12345679:12345670|12345671
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp ocol: ppp"

# If the peer requires that you use CHAP or PAP, you must supply authname
# and authkey.  Both are "accepted" by default, so you don't have to do
# any more.
#
PAPorCHAPsite:
 set phone 12345678
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp"
 set authname ian.ofriel
 set authkey  wendy

# If you want the remote system to authenticate itself, you insist
# that the peer uses CHAP (or PAP) with the "enable" keyword.  Both CHAP and
# PAP are disabled by default.
# When the peer authenticates itself, we use ppp.secret for verification.
#
# Ppp is launched with
#
#  ppp -direct CHAPserver
#
# Note:  We can supply a third field in ppp.secret specifying the IP address
#        for that user.
#
CHAPserver:
 enable chap
 enable proxy
 set ifaddr 192.244.176.44 292.244.184.31

# If we wish to use /etc/passwd, we do this:
PAPServerwithPASSWD:
 enable pap
 enable passwdauth
 enable proxy
 set ifaddr 192.244.176.44 292.244.184.31

# On demand dialup example
#  Here, we assume that local side use 192.244.185.226 and
#  remote side use 192.244.176.44 as their IP address.
#  You must supply -auto, -ddial or -background option to invoke PPP.
#
#  $ ppp -auto ondemand
#
ondemand:
 set phone 1234567
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp"
 set timeout 120
 set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
 add 0 0 HISADDR

# Another on demand example
#  If the peer assigns us an arbitrary IP and we can't predict what their
#  IP will be either, take a wild guess at an some IPs that you can't
#  currently route to.  Ensure that the "delete" and "add" lines are also
#  present in ppp.linkup so that when we connect, things will be put straight.
#
#  The /0 bit says that we insist on 0 bits of the specified IP actually
#  being correct, therefore, the other side can assign any IP numbers.
#
pmdemand:
 set phone 1234567
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp"
 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
 delete ALL
 add 0 0 HISADDR

# Examples to connect using a null-modem cable from one machine to another.
# The important thing here is to allow the lqr packets on both sides.
# Without them enabled, we can't tell if the line's dropped - there
# should always be carrier on a direct connection.
# Here, the server sends lqr's every 10 seconds and quits if three in a
# row fail.
#
# Make sure you don't have "deny lqr" in your default: on the client !
#
direct-client:
 set dial ""
 set line /dev/cuaa0
 set sp 115200
 set timeout 900
 set log Phase Chat LQM
 set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp HELLO"
 set ifaddr 10.0.4.2 10.0.4.1
 enable lqr
 accept lqr
 
direct-server:
 set timeout 900 10 3
 set log Phase LQM
 set ifaddr 10.0.4.1 10.0.4.2
 enable lqr
 accept lqr

# Example of Callback Request
#
#  Here, we assume that peer will hangup the line and initiates a callback
#  after successful authentication. We simply use chat script capability
#  and wait for a "NO CARRIER" response from our modem.
#
#  $ ppp callback
#
callback:
 set phone 0312345678
 set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: MyName word: MySecret TIMEOUT 20 DUMMY"
 set log phase chat
 dial
 quit

# Example for ppp over tcp.  We assume that inetd on tcpsrv.mynet has been
# configured to run "ppp -direct tcp-server" when it gets a connection on
# port 1234.  Read doc for further details
#
tcp-client:
 set device tcpsrv.mynet:1234
 set dial
 set login
 set escape 0xff
 set ifaddr 10.0.5.1 10.0.4.1 255.255.255.0

tcp-server:
 set escape 0xff
 set ifaddr 10.0.4.1 10.0.5.1 255.255.255.0
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002001bd8c06$99cbbac0$f7e107c3>