Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2000 07:28:49 -0500
From:      "Jim Freeze" <jim@freeze.org>
To:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Need Help with Modem and PPP
Message-ID:  <001701bf8442$dede93e0$6b6ec8d0@lexmark.com>

next in thread | raw e-mail | index | archive | help
Hi:

Can someone help me get my modem working through PPP?
I am a newbie and have been working on this for some time now.
I am kind of at a stand still since I cannot connect
to the internet via FBSD.

I have been working on getting FBSD to dial up my ISP so I can
access the internet.

To educate myself, I have been reading the online docs.
Particularly, I have been following the instructions in
http://www.freebsd.org/handbook/ppp-and-slip.html.

I am running FreeBSD 3.1-RELEASE on a Dell Lattitude CPi.
The modem is on a pcmcia card and is using COM2.

Following the instructions from the Pedantic PPP primer
and the ppp-and-slip document I have configured my system
as follows (the machine name is curly):

---
pseudo-device tun 1 (/usr/src/sys/i386/conf/MYKERNEL)
---
 curly:31ifconfig -a
 lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICASTmtu 1500
 tun0: flags=8010<POINTOPOINT,MULTICASTmtu 1500
 sl0: flags=c010<POINTOPOINT,LINK2,MULTICASTmtu 552
 ppp0: flags=8010<POINTOPOINT,MULTICASTmtu 1500
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICASTmtu 16384
        inet 127.0.0.1 netmask 0xff000000
---
the /etc/host.conf file contains
 hosts
 bind
---
the /etc/hosts file contains
 127.0.0.1   localhost localhost.my.domain myname.my.domain
 10.0.0.1    curly.my.domain curly
---
I had to create the /etc/resolv.conf file.
It now contains
 nameserver 208.235.88.5
 nameserver 208.235.89.5
These numbers are the primary and secondary dns numbers given
to me by by isp.
---
The /etc/ppp/ppp.conf file contains

default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/cuaa1 #com2
# set device /dev/zp2
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0
OK \\dATDT\\T TIMEOUT 40
CONNECT"
provider:
 set phone 5555555 #mydialupnumber
 set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: myusername word:
mypassword col: ppp"
 set timeout 300
 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
---
where 5555555 is my actual isp dial up phone number,
myusername is my actual username and
mypassword is my actual password.

I have some questions about the contents of this file - /etc/ppp/ppp.conf.
Particularly the set login line.
The ppp-and-slip document gives the following as an example:
 set login "TIMEOUT 10 \"\" \"\" gin:--gin: foo work: bar col: ppp"
The /etc/ppp/ppp.conf.sample gives a different version of this line:
 set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: ppp word: ppp"

I suspect that my version is wrong, but I could use some assistance.
I used the ppp-and-slip example becuase I it told me what the
username and password entries were. I could not figure this out
from the ppp.conf.sample file.
Also, I am not sure if I should not istead be using the PAPorCHAP login
sequence.
If it helps, when I connect to my ISP via W98, I have the
'Use software compression' option checked.

Another little detail (I'm new here) I've turned logging on as you
can see in the first line of /etc/ppp/ppp.conf, but
I don't know where to go to read the log results.

---
In section 14.1.6 Final system configuration, I have modified
the /etc/rc.conf file to contain the following:
ifconfig_tun0=
router_enable=NO
---
And, I have created the /etc/start_if.tun0 file and it contains
 ppp -auto mysystem
---
And, the /etc/sysconfig file contains
 router=NO
---

Now, when I execute ppp I get
 curly# ppp
 Working in interactive mode
 Using interface: tun0
 ppp ON curlydial provider
 ppp ON curly

There appears to be no attempt to access the modem or to try dialing
when I tell it to dial provider.

Any assistance on this matter would be greatly appreciated.

Thanks
Jim

Also, if it helps, here is a copy of the dmesg output


Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 3.1-RELEASE #0: Wed May 26 13:54:11 EDT 1999
    root@myname.my.domain:/usr/src/sys/compile/MYKERNEL
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Xeon/Celeron (300.68-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping=2

Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,MMX,<b24>>
real memory  = 134217728 (131072K bytes)
avail memory = 127164416 (124184K bytes)
Preloaded elf kernel "kernel" at 0xf0341000.
Probing for devices on PCI bus 0:
chip0: <Intel 82443BX host to PCI bridge (AGP disabled)rev 0x02 on pci0.0.0
vga0: <NeoMagic NM2160 laptop SVGA controllerrev 0x01 int a irq 11 on
pci0.2.0
chip1: <PCI to CardBus bridge (vendor=104c device=ac15)rev 0x01 int a irq 11
on pci0.3.0
chip2: <PCI to CardBus bridge (vendor=104c device=ac15)rev 0x01 int b irq 11
on pci0.3.1
chip3: <Intel 82371AB PCI to ISA bridgerev 0x01 on pci0.7.0
ide_pci0: <Intel PIIX4 Bus-master IDE controllerrev 0x01 on pci0.7.1
chip4: <Intel 82371AB Power management controllerrev 0x01 on pci0.7.3
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 not found at 0x280
fe0 not found at 0x300
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 irq 12 on isa
psm0: model Generic PS/2 mouse, device ID 0
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1 not found at 0x2f8
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): <IBM-DADA-26480>
wd0: 6194MB (12685680 sectors), 13424 cyls, 15 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 on isa
wdc1: unit 0 (atapi): <TOSHIBA DVD-ROM SD-C2202/1917>, removable, intr, dma,
iordis
acd0: drive speed 4134KB/sec, 128KB cache
acd0: supported read types: CD-R, CD-RW, CD-DA
acd0: Audio: play, 16 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: 120mm data disc loaded, unlocked
wt0 not found at 0x300
mcd0 not found at 0x300
matcdc0 not found at 0x230
scd0 not found at 0x230
ppc0 at 0x378 irq 7 on isa
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
nlpt0: <generic printeron ppbus 0
nlpt0: Interrupt-driven port
ppi0: <generic parallel i/oon ppbus 0
plip0: <PLIP network interfaceon ppbus 0
ie0: unknown board_id: f000
ie0 not found at 0x300
ep0 not found at 0x300
ex0 not found
le0 not found at 0x300
lnc0 not found at 0x280
ze: pcmcia slot 0:
ze: pcmcia slot 1:
ze0 not found at 0x300
zp: pcmcia slot 0:
zp: pcmcia slot 1:
zp0 not found at 0x300
cs0 not found at 0x300
adv0 not found at 0x330
bt0 not found at 0x134
aha0 not found at 0x134
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
changing root device to wd0s3a




==================
Jim D. Freeze
jim@freeze.org
==================



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?001701bf8442$dede93e0$6b6ec8d0>