Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2000 10:34:51 -0500
From:      "Adam" <ajwoodbe@oakland.edu>
To:        "freebsd-questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Problems getting PPP to work.  Please help.
Message-ID:  <NDBBLEIJALJKACDMNFLJAECNCAAA.ajwoodbe@oakland.edu>

next in thread | raw e-mail | index | archive | help
I've been playing around with FreeBSD 3.4 this morning trying to get PPP to
work correctly.  I've followed the instructions in the ppp man page as well
as the part of the handbook dealing with PPP.  In following those
instructions, I've been able to make a ppp connection (where the ppp changes
to PPP at the prompt) but I am unable to do anything beyond that.  In the
handbook, under the section dealing with PPP configuration, it mentions
issuing the command "~p" to enter packet mode.  I must be an idiot because I
do not know the combination of keys to issue this command.  I tried typing
~p at the PPP command prompt and PPP complained about an illegal command.
So basically, I'm able to connect to my ISP but I am unable to ping
anything.  Any help would be greatly appreciated.

Below is various configuration files and logs that I am using.  My modem is
on COM1 (cuaa0).  Please let me know if any more information would be
helpful.

Adam


**********************************************************
host.conf:
**********************************************************
# $FreeBSD: src/etc/host.conf,v 1.5.2.1 1999/08/29 14:18:44 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

**********************************************************
resolv.conf:
**********************************************************
nameserver	141.210.10.15
nameserver 	141.210.10.25

**********************************************************
Output of netstat -nr before PPP is connected.
**********************************************************
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif
Expire
127.0.0.1          127.0.0.1          UH          0        0      lo0
192.168.1          link#1             UC          0        0      xl0

**********************************************************
Output of netstat -nr after PPP is connected.
**********************************************************
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif
Expire
default            141.210.21.52      UGSc        0        0     tun0
127.0.0.1          127.0.0.1          UH          0        0      lo0
141.210.21.52      141.210.16.31      UH          1        0     tun0
192.168.1          link#1             UC          0        0      xl0
192.168.1.2        link#1             UHLW        0        0      xl0

**********************************************************
ppp.conf:
**********************************************************
#################################################################
# 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.1.2.2 1999/08/29 14:19:56 peter Exp $
#################################################################

default:

 #
 # Make sure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #

 set device /dev/cuaa0

 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 ATE1Q0
OK \\dATDT\\T TIMEOUT 40 CONNECT"

 set timeout 120
 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

ou:
 set phone "2091001"
 set authname <hidden>
 set authkey <hidden>
 set login "TIMEOUT 10 \"\" \"\" gin:--gin: <hidden> word: <hidden>"
 set timeout 300
 set ifaddr 192.168.1.1/0 192.168.1.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

papchap:

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

 set phone 2091001
 set authname <hidden>
 set authkey <hidden>

**********************************************************
ppp.log:
**********************************************************
Jan 27 09:14:57 w00d ppp[1957]: Phase: Using interface: tun0
Jan 27 09:14:57 w00d ppp[1957]: Phase: deflink: Created in closed state
Jan 27 09:14:57 w00d ppp[1957]: tun0: Command: default: set speed 115200
Jan 27 09:14:57 w00d ppp[1957]: tun0: Command: default: set dial ABORT BUSY
ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40
CONNECT
Jan 27 09:14:57 w00d ppp[1957]: tun0: Command: default: set timeout 120
Jan 27 09:14:57 w00d ppp[1957]: tun0: Command: default: set ifaddr
10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Jan 27 09:14:57 w00d ppp[1957]: tun0: Command: default: add default HISADDR
Jan 27 09:14:57 w00d ppp[1957]: tun0: Command: default: enable dns
Jan 27 09:14:57 w00d ppp[1957]: tun0: Phase: PPP Started (interactive mode).
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: /dev/tty: dial ou
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: set phone 2091001
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: set authname <hidden>
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: set authkey <hidden>
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: set login TIMEOUT 10 ""
"" gin:--gin: <hidden> word: <hidden>
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: set timeout 300
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: set ifaddr 192.168.1.1/0
192.168.1.2/0 255.255.255.0 0.0.0.0
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: add default HISADDR
Jan 27 09:14:59 w00d ppp[1957]: tun0: Command: ou: enable dns
Jan 27 09:14:59 w00d ppp[1957]: tun0: Phase: bundle: Establish
Jan 27 09:14:59 w00d ppp[1957]: tun0: Phase: deflink: closed -> opening
Jan 27 09:14:59 w00d ppp[1957]: tun0: Phase: deflink: Connected!
Jan 27 09:14:59 w00d ppp[1957]: tun0: Phase: deflink: opening -> dial
Jan 27 09:14:59 w00d ppp[1957]: tun0: Phase: Phone: 2091001
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: deflink: Dial attempt 1 of 1
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Send: AT^M
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Expect(5): OK
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Received: AT^M^M
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Received: OK^M
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Send: ATE1Q0^M
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Expect(5): OK
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Received: ATE1Q0^M^M
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Received: OK^M
Jan 27 09:14:59 w00d ppp[1957]: tun0: Chat: Send: ATDT2091001^M
Jan 27 09:15:01 w00d ppp[1957]: tun0: Chat: Expect(40): CONNECT
Jan 27 09:15:26 w00d ppp[1957]: tun0: Chat: Received: ATDT2091001^M^M
Jan 27 09:15:26 w00d ppp[1957]: tun0: Chat: Received: CONNECT
45333/ARQ/V90/LAPM/V42BIS^M
Jan 27 09:15:26 w00d ppp[1957]: tun0: Phase: deflink: dial -> carrier
Jan 27 09:15:27 w00d ppp[1957]: tun0: Phase: deflink: /dev/cuaa0: CD
detected
Jan 27 09:15:27 w00d ppp[1957]: tun0: Phase: deflink: carrier -> login
Jan 27 09:15:27 w00d ppp[1957]: tun0: Chat: Send: ^M
Jan 27 09:15:27 w00d ppp[1957]: tun0: Chat: Expect(10): gin:
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: ^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: ^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: OUnet Portmaster
pm04-nfh^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: Please log in using
username@oakland.edu then use your Vela password.^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: ^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: ^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: login:^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Send: <hidden>^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Expect(10): word:
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: login:<hidden>^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Received: Password:
Jan 27 09:15:28 w00d ppp[1957]: tun0: Chat: Send: <hidden>^M
Jan 27 09:15:28 w00d ppp[1957]: tun0: Phase: deflink: login -> lcp
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: FSM: Using "deflink" as a
transport
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: State change Initial -->
Closed
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: State change Closed -->
Stopped
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: RecvConfigReq(1) state =
Stopped
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  ACCMAP[6] 0x00000000
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  MAGICNUM[6] 0xd9fb013b
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  PROTOCOMP[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  ACFCOMP[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: SendConfigReq(1) state =
Stopped
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  ACFCOMP[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  PROTOCOMP[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  ACCMAP[6] 0x00000000
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  MRU[4] 1500
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  MAGICNUM[6] 0x723a6e19
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: SendConfigAck(1) state =
Stopped
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  ACCMAP[6] 0x00000000
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  MAGICNUM[6] 0xd9fb013b
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  PROTOCOMP[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP:  ACFCOMP[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: LayerStart
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: State change Stopped -->
Ack-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: RecvConfigAck(1) state =
Ack-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: State change
Ack-Sent --> Opened
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: LayerUp
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: Using trigger address 0.0.0.0
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP: FSM: Using "deflink" as a
transport
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP: deflink: State change Initial -->
Closed
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP: deflink: LayerStart.
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP: deflink: SendConfigReq(1) state =
Closed
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP:  DEFLATE[4] win 15
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP:  PRED1[2]
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP: deflink: State change Closed -->
Req-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: Phase: deflink: lcp -> open
Jan 27 09:15:28 w00d ppp[1957]: tun0: Phase: bundle: Network
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: FSM: Using "deflink" as a
transport
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: State change
Initial --> Closed
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: LayerStart.
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: SendConfigReq(1) state
= Closed
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  IPADDR[6]  0.0.0.0
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots with
slot compression
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  PRIDNS[6]  141.210.10.15
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  SECDNS[6]  141.210.10.25
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: State change Closed -->
Req-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: RecvConfigReq(1) state
= Req-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots
without slot compression
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  IPADDR[6]  141.210.21.52
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: SendConfigAck(1) state
= Req-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots
without slot compression
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  IPADDR[6]  141.210.21.52
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: State change
Req-Sent --> Ack-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: RecvProtocolRej(2) state
= Opened
Jan 27 09:15:28 w00d ppp[1957]: tun0: LCP: deflink: -- Protocol 0x80fd
(Compression Control Protocol) was rejected!
Jan 27 09:15:28 w00d ppp[1957]: tun0: CCP: deflink: State change
Req-Sent --> Stopped
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: RecvConfigNak(1) state
= Ack-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  IPADDR[6]  141.210.16.33
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  IPADDR[6]  changing address:
0.0.0.0  --> 141.210.16.33
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: SendConfigReq(2) state
= Ack-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  IPADDR[6]  141.210.16.33
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  COMPPROTO[6]  16 VJ slots with
slot compression
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  PRIDNS[6]  141.210.10.15
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP:  SECDNS[6]  141.210.10.25
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: RecvConfigAck(2) state
= Ack-Sent
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: State change
Ack-Sent --> Opened
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: deflink: LayerUp.
Jan 27 09:15:28 w00d ppp[1957]: tun0: IPCP: myaddr 141.210.16.33 hisaddr =
141.210.21.52
Jan 27 09:18:05 w00d ppp[1957]: tun0: Command: /dev/tty: down
Jan 27 09:18:05 w00d ppp[1957]: tun0: CCP: deflink: State change Stopped -->
Closed
Jan 27 09:18:05 w00d ppp[1957]: tun0: CCP: deflink: State change Closed -->
Initial
Jan 27 09:18:05 w00d ppp[1957]: tun0: LCP: deflink: LayerDown
Jan 27 09:18:05 w00d ppp[1957]: tun0: LCP: deflink: State change Opened -->
Starting
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: open -> lcp
Jan 27 09:18:05 w00d ppp[1957]: tun0: LCP: deflink: LayerFinish
Jan 27 09:18:05 w00d ppp[1957]: tun0: LCP: deflink: State change
Starting --> Initial
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP: deflink: LayerDown:
141.210.16.33
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP: Using trigger address 0.0.0.0
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP: deflink: State change Opened -->
Starting
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP: deflink: LayerFinish.
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP: Connect time: 157 secs: 252
octets in, 0 octets out
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP:  total 1 bytes/sec, peak 50
bytes/sec on Thu Jan 27 09:18:05 2000
Jan 27 09:18:05 w00d ppp[1957]: tun0: IPCP: deflink: State change
Starting --> Initial
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: bundle: Terminate
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: Disconnected!
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: lcp -> logout
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: Disconnected!
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: logout -> hangup
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: Connect time: 186
secs: 589 octets in, 206 octets out
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase:  total 4 bytes/sec, peak 105
bytes/sec on Thu Jan 27 09:18:05 2000
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: deflink: hangup -> closed
Jan 27 09:18:05 w00d ppp[1957]: tun0: Phase: bundle: Dead



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?NDBBLEIJALJKACDMNFLJAECNCAAA.ajwoodbe>