*BSD News Article 35350


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!uop!pacbell.com!ihnp4.ucsd.edu!agate!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!uunet!news.sprintlink.net!nntp.earthlink.net!moon.earthlink.net!alex
From: alex@alex.earthlink.net (Alexander Burchell)
Newsgroups: comp.os.386bsd.questions
Subject: Need help with ppp configuration on FreeBSD
Date: 01 Sep 1994 15:05:17 GMT
Organization: Earthlink Network, Inc.
Lines: 188
Message-ID: <ALEX.94Sep1080517@alex.earthlink.net>
NNTP-Posting-Host: alex.earthlink.net
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII

Hi!

	I've just connected to internet and am having some trouble.  After
connecting with ppp, ping, mosaic, ftp, etc. work fine but I get some
error messages logged in /etc/ppp/ppp-log, as follows:

Aug 31 16:56:46 alex routed[54]: packet from unknown router, 198.68.160.3
Aug 31 16:58:04 alex routed[54]: rtadd: can't get interface for 0.0.0.0
Aug 31 16:58:04 alex routed[54]: rtadd: can't get interface for 198.68.161.133
Aug 31 16:58:04 alex routed[54]: rtadd: can't get interface for 198.68.160.0
Aug 31 16:58:04 alex routed[54]: rtadd: can't get interface for 144.228.0.0
	[ last 4 lines repeat ... ]

	Also, when trying to connect to ftp.uu.net, I get the following
unfriendly message:

ftp> open ftp.uu.net
Connected to ftp.uu.net.
220 ftp.UU.NET FTP server (Version wu-2.4(1) Thu Apr 14 15:45:10 EDT 1994) ready.
Name (ftp.uu.net:alex): anonymous
530- Sorry, we're unable to map your IP address 198.68.161.123 to a hostname
530- in the DNS.  This is probably because your nameserver does not have
530- matching A and PTR record for your address in its tables, or because
530- your reverse nameservers are not registered.  We refuse service to
530- hosts whose names we cannot resolve.  If this is simply because your
530- nameserver is hard to reach or slow to respond then try again in a
530- minute or so, and perhaps our nameserver will have your hostname in
530- its cache by then.  If not, try reaching us from a host that is in
530- the DNS or have your system administrator fix your servers.
530 User anonymous access denied..
Login failed.

	My system admin checked, and told me that my A and PTR records were
fine, whatever they are ... presumably something having to do with named.
He also indicated that ftp.uu.net can be reached fine from my ppp gateway,
198.68.160.3.

	Since I put my ppp setup together from randomly reading a few
FAQs and some man pages which I found to be almost incomprehensible, I
think I probably made some common error with my setup.  I've included
some items having to do with my setup attached to the end of the
article.  Can anyone point me in the right direction?  Thanks very
much.


	Alexander Burchell (alex@alex.earthlink.net)


BEGIN INCLUDED TEXT
******************** ppp connect command ********************
#!/bin/sh
/usr/libexec/pppd connect 'chat -v -f /usr/alex/bin/chat-commands < /dev/cua00 > /dev/cua00' netmask 255.255.255.0 /dev/cua00 38400
******************** /usr/alex/bin/chat-commands ********************
ABORT BUSY ABORT "NO CARRIER" "" ATZ OK ATDT12136449520 CONNECT "" ogin:-BREAK-ogin: Palex ssword: \q??????? "" "\d\c"
******************** /etc/ppp/ppp-log ********************
Aug 31 20:29:38 alex pppd[189]: Starting pppd 1.3 patch level 0
Aug 31 20:29:39 alex pppd[190]: Connecting with <chat -v -f /usr/alex/bin/chat-commands < /dev/cua00 > /dev/cua00>
Aug 31 20:29:39 alex chat[192]: abort on (BUSY) 
Aug 31 20:29:39 alex chat[192]: abort on (NO CARRIER) 
Aug 31 20:29:39 alex chat[192]: send (ATZ^M) 
Aug 31 20:29:40 alex chat[192]: expect (OK) 
Aug 31 20:29:40 alex chat[192]: ATZ^M^M 
Aug 31 20:29:40 alex chat[192]: OK -- got it 
Aug 31 20:29:40 alex chat[192]: send (ATDT12136449520^M) 
Aug 31 20:29:41 alex chat[192]: expect (CONNECT) 
Aug 31 20:29:41 alex chat[192]: ^M 
Aug 31 20:30:08 alex chat[192]: ATDT12136449520^M^M 
Aug 31 20:30:08 alex chat[192]: CONNECT -- got it 
Aug 31 20:30:08 alex chat[192]: send (^M) 
Aug 31 20:30:08 alex chat[192]: expect (ogin:) 
Aug 31 20:30:08 alex chat[192]:  38400^M 
Aug 31 20:30:10 alex chat[192]: ^M 
Aug 31 20:30:10 alex chat[192]: earthlink login: -- got it 
Aug 31 20:30:10 alex chat[192]: send (Palex^M) 
Aug 31 20:30:11 alex chat[192]: expect (ssword:) 
Aug 31 20:30:11 alex chat[192]: Palex^M 
Aug 31 20:30:11 alex chat[192]: Password: -- got it 
Aug 31 20:30:11 alex chat[192]: send (??????) 
Aug 31 20:30:11 alex chat[192]: send (??????) 
Aug 31 20:30:12 alex pppd[190]: Connected...
Aug 31 20:30:12 alex pppd[190]: Using interface ppp0
Aug 31 20:30:12 alex pppd[190]: Connect: ppp0 <--> /dev/cua00
Aug 31 20:30:15 alex pppd[190]: ipcp: received COMPRESSTYPE (45) (NAK) 
Aug 31 20:30:15 alex pppd[190]: ipcp: received ADDR (198.68.160.3) (ACK) 
Aug 31 20:30:15 alex pppd[190]: ipcp: returning Configure-NAK
Aug 31 20:30:15 alex pppd[190]: ipcp: received ADDR (198.68.160.3) (ACK) 
Aug 31 20:30:15 alex pppd[190]: ipcp: returning Configure-ACK
Aug 31 20:30:15 alex pppd[190]: remote IP address 198.68.161.123
Aug 31 20:30:15 alex pppd[190]: ipcp: up
Aug 31 20:30:15 alex pppd[190]: local  IP address 198.68.161.123
Aug 31 20:30:15 alex pppd[190]: remote IP address 198.68.160.3
Aug 31 20:30:15 alex pppd[190]: Setting interface mask to 255.255.255.0 
Aug 31 20:30:24 alex routed[51]: rtadd: can't get interface for 0.0.0.0
Aug 31 20:30:45 alex routed[51]: rtadd: can't get interface for 0.0.0.0
Aug 31 20:30:45 alex routed[51]: rtadd: can't get interface for 198.68.161.129
Aug 31 20:30:45 alex routed[51]: rtadd: can't get interface for 198.68.161.138
Aug 31 20:30:45 alex routed[51]: rtadd: can't get interface for 198.68.160.0
Aug 31 20:30:45 alex routed[51]: rtadd: can't get interface for 144.228.0.0
	[ ... "can't get interface" lines repeat ... ]
Aug 31 22:28:25 alex pppd[190]: Hangup (SIGHUP)
Aug 31 22:28:25 alex pppd[190]: ipcp: down
Aug 31 22:28:25 alex pppd[190]: Deleting host route from 198.68.160.3 to 198.68.161.123 
Aug 31 22:28:25 alex pppd[190]: Quitting
******************** /etc/netstart ********************
#!/bin/sh -
#
#	$Id: netstart,v 1.8 1993/12/21 21:28:11 wollman Exp $
#	From: @(#)netstart	5.9 (Berkeley) 3/30/91

#routedflags=-q
routedflags=-g
timedflags=NO
xntpdflags="NO"
ntpdate="NO"
rwhod=NO
sendmail_flags="-bd -q30m"
#kerberos_server=YES
#nfs_server=YES
#name_server=YES
#gated=YES

# my-name is my symbolic name
# my-netmask is specified in /etc/networks
#
hostname=`cat /etc/myname`
hostname $hostname

# ifconfig ie0 inet $hostname netmask my-netmask
# ifconfig is0 inet $hostname netmask my-netmask
# ifconfig ed0 inet $hostname netmask my-netmask

# set the address for the loopback interface
#ifconfig lo0 inet localhost

# use loopback, not the wire
#route add $hostname localhost

# set up ppp
gateway=ppp-gateway
ifconfig ppp0 inet $hostname $gateway netmask 0xffffff00 down
route add default $gateway

# loopback should be config last and use real IP addr, see lo(4)
ifconfig lo0 inet $hostname
******************** /etc/hosts ********************
# $Id: hosts,v 1.2 1993/11/11 22:32:36 wollman Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution order.
#
# NB: 0 is not a valid network number.  PLEASE PLEASE PLEASE do not try
# to invent your own network numbers but instead get one from your
# network provider (if any) or from the Internet Registry (ftp to
# rs.internic.net, directory `/templates').
#
127.0.0.1		localhost loghost
198.68.161.123          alex.earthlink.net alex

#198.68.160.1           ppp-gateway
198.68.160.3            tsa-la.earthlink.net tsa-la ppp-gateway
198.68.160.2		moon.earthlink.net moon 
144.228.1.40		ns1.sprintlink.net ns1
144.228.8.227		ns2.sprintlink.net ns2
******************** typescript ********************
$ ifconfig ppp0
ppp0: flags=51<UP,POINTOPOINT,RUNNING>
	inet 198.68.161.123 --> 198.68.160.3 netmask ffffff00 

$ netstat -r 
Routing tables
Destination      Gateway            Flags     Refs     Use  IfaceMTU    Rtt   
Netmasks:
(root node)
(root node)

Route Tree for Protocol Family inet:
(root node) =>
default          tsa-la             UG          1     2399  pp0 -      -     
tsa-la           alex               UH          1        0  pp0 -      -     
alex             alex               UH          1        0  lo0 -      -     
(root node)
**************************************************
END INCLUDED TEXT
--
Alexander Burchell (alex@alex.earthlink.net)