Subject: Programs hang when using pppd connection
To: NetBSD i386 Mailing List <port-i386@netbsd.org>
From: Tony Tye <NOSPAM.ttye@icubed.com>
List: port-i386
Date: 05/28/1999 23:05:31
Hi,

I have a problem with pppd. I run pppd and get what appears to be a good
connection. But when I try to run any program over the connection, such
as telnet or ftp, or even ping, the program just hangs until I do
Control-C to stop it. Can anyone see what is wrong here? I run pppd like
this:

pppd call icubed

(Icubed is my service provider).

Here is a log from /var/log/messages of a connection:

May 26 15:08:08  chat[242]: expect (OK)
May 26 15:08:08  chat[242]: atz0^M^M
May 26 15:08:08  chat[242]: OK -- got it
May 26 15:08:08  chat[242]: send (atdt3086100^M)
May 26 15:08:08  chat[242]: expect (CONNECT)
May 26 15:08:08  chat[242]: ^M
May 26 15:08:42  chat[242]: atdt3086100^M^M
May 26 15:08:42  chat[242]: CONNECT -- got it
May 26 15:08:42  chat[242]: send (^M)
May 26 15:08:42  chat[242]: timeout set to 10 seconds
May 26 15:08:42  chat[242]: expect (name):)
May 26 15:08:42  chat[242]:  28800 V42bis^M
May 26 15:08:44  chat[242]: WELCOME TO INFOBAHN INTERNATIONAL
33.6/KFLEX/ISDN ACCESS^M
May 26 15:08:44  chat[242]: ^M
May 26 15:08:44  chat[242]: ^M
May 26 15:08:44  chat[242]: Enter authorization code (tusername or
pusername): -- got it
May 26 15:08:44  chat[242]: send (USERNAME^M)
May 26 15:08:44  chat[242]: timeout set to 5 seconds
May 26 15:08:44  chat[242]: expect (sword:)
May 26 15:08:44  chat[242]: ^M
May 26 15:08:44  chat[242]: Enter authorization code (tusername or
pusername):USERNAME^M
May 26 15:08:44  chat[242]: Password: -- got it
May 26 15:08:44  chat[242]: send (PASSWORD^M)
May 26 15:08:44  pppd[240]: Serial connection established.
May 26 15:08:45  pppd[240]: Using interface ppp0
May 26 15:08:46  pppd[240]: Connect: ppp0 <--> /dev/tty01
May 26 15:08:49  pppd[240]: local  IP address 208.157.20.183
May 26 15:08:49  pppd[240]: remote IP address 208.0.145.2

This is /etc/ppp/peers/icubed

# example pppd options
# specific for icubed
/dev/tty01

# local_IP_address:remote_IP_address
:208.0.145.2
connect '/usr/sbin/chat -v -f /etc/ppp/peers/icubed.chat'
defaultroute
persist
ipparam icubed
asyncmap 0

This is /etc/ppp/peers/icubed.chat

# example chat file
# specific for icubed
ABORT BUSY ABORT 'NO CARRIER' "" atz0 OK atdt3086100 CONNECT "" TIMEOUT
10 name):-\\r-name): username TIMEOUT 5 sword: password

This is /etc/ppp/options.tty01

# example pppd options
# specific for tty01
lock
crtscts
57600
modem

This is /etc/hosts:

127.0.0.1 myname.defaultdomain

This is /etc/host.conf

bind
# If that doesn't work, then try the /etc/hosts file.
hosts

Thanks in advance for any help.

--
Tony Tye
** Please remove NOSPAM. from my address when replying. The correct
address is ttye@icubed.com.