Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!yarrina.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!neoucom.edu!ns.mcs.kent.edu!kira.cc.uakron.edu!odin.oar.net!malgudi.oar.net!multiverse!library.erc.clarkson.edu!ub!news.kei.com!newsfeed.internetmci.com!in1.uu.net!usc!cs.utexas.edu!news.unt.edu!jove!kbm0001
From: kbm0001@jove.acs.unt.edu (Kwang Bae Min)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: iijppp questions
Date: 26 Nov 1995 19:50:00 GMT
Organization: University of North Texas
Lines: 270
Message-ID: <49agd8$8dh@hermes.acs.unt.edu>
NNTP-Posting-Host: jove.acs.unt.edu
Hi,
I have been trying to configure iijppp for several days without much success.
I followed the instructions in the FreeBSD handbook and the online
manual for iijppp, but somehow it is not working for me, yet.
I'll explain my situation and problems below (sorry for the long post).
If anyone out there could help me out, I would really appreciate.
Many thanks,
1) My system
============
system: FreeBSD-2.0.5R on i486
modem: USRobotics Sportster 14.4 Kbps internal modem
(/dev/modem -> /dev/cuaa2)
2) My ISP
=========
connections provided: ppp
authentication on ppp: PAP
IP address assignment: dynamic IP for my address.
their IP address: 123.456.78.100
^^^^^^^^^^^^^^
my IP address: 123.456.78.xxx
(note: I will use 123.456.78 in this posting instead of real IP)
When I dial the ISP, I am supposed type 'ppp' on their menu screen
to enter into ppp connection establishment.
The following is what it looks like when I dial to
this ISP using c-kermit and type 'ppp' in their menu screen.
After I type 'ppp', 'Switching to PPP.' message appears and
a segment of garbled characters continue to show up intermittently.
(Note: On MS-Windows bootup, I used Trumpet winsock with PAP
enabled to establish PPP connection, And, it works fine with any
network software such as telnet, ftp, web-browsers, etc.)
mypc# kermit
......
[/root] C-Kermit> dial abc
......
CONNECT 14400/ARQ/V32/LAPM/V42BIS
......
Annex Command Line Interpreter * Copyright 1991 Xylogics, Inc.
Welcome to ABC
Enter a command from the following choices: (telnet, ppp)
Enter command: ppp
Switching to PPP.
~}#@!}!}!} }8}"}&} } } } }#}$@#}%}&}0+1}"}'}"}(}"m#~~}#@!}!}"} }8}"}&} } } } }#}$@#}%}&|}."i}'}"}(}">n~~}#@!}!}#} }8}"}&} } } } }#}$@#}%}& }&\O}'}"}(}"@~
3) My iijppp configuration
==========================
I followed the FreeBSD handbook, and the below are some excerpts
of my configuration: (Other things not mentioned here, I followed
the instructions on FreeBSD handbook.)
/etc/hosts
-------------------------------------------------------------------
127.0.0.1 localhost loghost localhost.my.domain
10.0.0.1 mypc mypc
123.456.78.100 annex.dialup.abc.edu ppp-gateway
^^^^^^^^^^^
123.456.1.1 namesrvr1
-------------------------------------------------------------------
/etc/sysconfig
--------------
hostname=mypc
defaultdomainname=NO
tcp_extensions=YES
network_interfaces="lo0 tun0"
ifconfig_lo0="inet localhost"
ifconfig_tun0="inet ${hostname} ppp-gateway netmask 0xffffff00"
^^^^^^^^^^^
static_routes="multicast loopback"
route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}"
route_loopback="${hostname} localhost"
defaultrouter=ppp-gateway
^^^^^^^^^^^
routedflags=-s
^^^^^^^^^^^^^^
namedflags="NO"
gated=NO
/etc/ppp/ppp.conf
-----------------
# default: always
default:
set device /dev/modem
set speed 57600
disable lqr
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER ABORT NO\\sDIAL\\sTONE TIMEOUT 5 \"\" ATZ OK ATE1Q0 OK \\dATDT\\T TIMEOUT 30 CONNECT"
# abc site
abc:
set phone 1234567
disable chap
deny chap
enable pap
accept pap
set authname mypppac
set authkey myppppw
set login "TIMEOUT 60 command:-\\r-command: ppp"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(I am not 100% sure if this is proper, in view of the way
my ISP's menu works - section 2 above.)
[Q1] Is this OK?
set timeout 0
set ifaddr 0 0
/etc/ppp/ppp.linkup
-------------------
MYADDR:
add 0 0 HISADDR
(Note: MYADDR and HISADDR are literally there. I am not sure if MYADDR
macro is built-in in iijppp. Because of dynamic IP assignment, I just
left it as above.) [Q2] Is it OK?
/etc/ppp/ppp.secret
-------------------
mypc MYPCPW 10.0.0.1
^^^^^^^^
[Q3] Is this OK?
4) Route-to-tun0 deletion problem
=================================
Now, after iijppp conciguration, I rebooted the machine.
Some checkings of my network configuration are as follows:
mypc# ifconfig lo0
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
mypc# ifconfig tun0
tun0: flags=51<UP,POINTOPOINT,RUNNING> mtu 1500
^^
inet 10.0.0.1 --> 129.120.35.100 netmask 0xffffff00
^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Q4] Is this OK?
mypc# netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default annex.dialup.abc.e UGSc 3 0 tun0
mypc localhost UGHS 0 0 lo0
localhost localhost UH 1 0 lo0
annex.dialup.abc mypc UH 4 0 tun0
224 mypc US 0 0 tun0
[Q5] Only a few minutes after booting, the following error message shows
up on the console. I am totally clueless why it happens and what
I have done wrong in iijppp configuration.
What should I do to correct this problem?
Nov 26 10:05:28 mypc routed[49]: deleting route to interface tun0 (timed out)
Now, 'netstat -r' reveals the change as below:
mypc# netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default annex.dialup.abc.e UGSc 3 0 tun0
mypc localhost UGHS 0 0 lo0
localhost localhost UH 1 0 lo0
224 mypc US 0 0 tun0
5) Why ppp connection not established?
======================================
Now, I reboot the machine, again, yes again, in order to test iijppp
before the route-to-tun0 problem occurs.
Tesing iijppp: (My test of iijppp proceeded as follows:)
1) mypc# ppp
2) User Process PPP. Written by Toshiharu OHNO.
3) Log level is 09
4) Using interface: tun0
5) Interactive mode
6) ppp on mypc> passwd MYPCPW
7) ppp ON mypc> dial abc
8) dial OK!
9) login OK!
11) ppp ON mypc> Packet mode.
12) ppp ON mypc>
13) ppp ON mypc> quit
14) mypc#
[Q6]
It took some time (about a minute or so) between 8) and 9).
Then 11) and 12) show up by themselves. (I did not hit Enter key at 12).)
At step 12), I can hear the modem dropping the line.
The 'ppp ON mypc>' prompt does not change to 'PPP ON mypc>'
as explined in the iijppp manual, i.e., it seems ppp connection
is not established.
What has gone wrong and what should I do?
I append the ppp.log message here.
/var/log/ppp.log
----------------
11-26 10:26:49 [141] Using interface: tun0
11-26 10:26:49 [141] PPP Started.
********************************************************
11-26 10:27:51 [141] *Connected!
********************************************************
11-26 10:27:51 [141] LCP: state change Initial --> Closed
11-26 10:27:51 [141] LCP: state change Closed --> Stopped
11-26 10:27:51 [141] LCP: Received Configure Request (1) state = Stopped (3)
11-26 10:27:51 [141] ACCMAP 00000000
11-26 10:27:51 [141] AUTHPROTO proto = c023
11-26 10:27:51 [141] MAGICNUM 348b54de
11-26 10:27:51 [141] PROTOCOMP
11-26 10:27:51 [141] ACFCOMP
11-26 10:27:51 [141] LCP: SendConfigReq
11-26 10:27:51 [141] ACFCOMP
11-26 10:27:51 [141] PROTOCOMP
11-26 10:27:51 [141] ACCMAP [6] 00000000
11-26 10:27:51 [141] MRU [4] 1500
11-26 10:27:51 [141] MAGICNUM [6] ad7c7ed3
11-26 10:27:51 [141] AUTHPROTO [4] 49187
11-26 10:27:51 [141] LCP: SendConfigAck(Stopped)
11-26 10:27:51 [141] ACCMAP 00000000
11-26 10:27:51 [141] AUTHPROTO proto = c023
11-26 10:27:51 [141] MAGICNUM 348b54de
11-26 10:27:51 [141] PROTOCOMP
11-26 10:27:51 [141] ACFCOMP
11-26 10:27:51 [141] LCP: state change Stopped --> Ack-Sent
11-26 10:27:51 [141] LCP: Received Configure Ack (1) state = Ack-Sent (8)
11-26 10:27:51 [141] LCP: state change Ack-Sent --> Opend
********************************************************
11-26 10:27:51 [141] LCP: LayerUp
11-26 10:27:51 [141] Phase: Authenticate
11-26 10:27:51 [141] his = c023, mine = c023
11-26 10:27:51 [141] PAP: mypppac (myppppw)
11-26 10:27:51 [141] PapInput: REQUEST
11-26 10:27:51 [141] PapOutput: NAK
11-26 10:27:51 [141] LCP: LayerDown
********************************************************
11-26 10:27:51 [141] Phase: Terminate
11-26 10:27:51 [141] LCP: SendTerminateReq.
11-26 10:27:51 [141] LCP: state change Opend --> Closing
11-26 10:27:51 [141] LCP: Received Terminate Ack (2) state = Closing (4)
11-26 10:27:51 [141] LCP: state change Closing --> Closed
11-26 10:27:51 [141] LCP: LayerFinish
********************************************************
11-26 10:27:51 [141] Disconnected!
********************************************************
11-26 10:27:51 [141] Connect time: 0 secs
11-26 10:27:51 [141] Phase: Dead
********************************************************
11-26 10:27:51 [141] LCP: state change Closed --> Initial
11-26 10:27:51 [141] Phase: Dead
11-26 10:28:25 [141] PPP Terminated.
Thank you very much,
--
Kwang Bae Min
University of North Texas
kbm0001@jove.acs.unt.edu