Date: Tue, 15 Oct 1996 23:30:56 -0400 (EDT) From: John Bowman <desslock@ix.comcat.com> To: hackers@freebsd.org, questions@freebsd.org Subject: PPP problem Message-ID: <Pine.BSD/.3.91.961015232319.24293A-700000@ix.comcat.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
ok... here's the scoop.
I've followed the directions in the FreeBSD handbook for setting up PPP
for version 2.1.5. I've also perused the sample config files in the
/etc/ppp directory. It seems that PPP will make the connection to my
internet service provider. I can even see the local and remote IP
addresses through "show ipcp". The problem that I have is when I
actually try to ping/traceroute/telnet to an IP address, I get the error,
"No route to host". What am I doing wrong?
I've attached my configuration files if that helps in the debugging.
I've tried two different ppp.linkup files, so I've attached both. It seems
like I can connect, but I can't get anywhere. :(
System config:
486DX4-100
32 Meg RAM
1.6 Gig Hard Drive
XFree86 v3.1.2
Cardinal 28.8 External Modem
Thanks in advance,
-John
[-- Attachment #2 --]
# $Id: hosts,v 1.5.4.4 1996/06/17 09:17:03 jkh 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.
#
#
127.0.0.1 localhost
0.0.0.0 Welcome.To.My.Domain
#
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers. 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').
#
[-- Attachment #3 --]
nameserver 204.170.64.2
nameserver 204.170.64.4
[-- Attachment #4 --]
#!/bin/sh
#
# This is sysconfig - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
# $Id: sysconfig,v 1.14.4.11 1996/06/17 09:17:18 jkh Exp $
######################### Start Of Local Configuration Section ###########
# Location of local startup directories.
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d"
######################### End Of Local Configuration Section #############
######################### Start Of Syscons Section #######################
# Choose keyboard map from /usr/share/syscons/keymaps/* or NO if default.
keymap="us.iso"
# Set keyboard rate to: slow, normal, fast or NO if default.
keyrate="fast"
# Change function keys default values (or no change if NO)
# Syntax: "<funkey_number> <new_value> [<funkey_number> <new_value>]..."
keychange=NO
# Desired cursor type {normal|blink|destructive}, NO if no change
cursor=NO
# Choose screen map from /usr/share/syscons/scrnmaps/* (or NO for none)
scrnmap=NO
# Choose font 8x16 from /usr/share/syscons/fonts/* (or NO for default)
font8x16=NO
# Choose font 8x14 from /usr/share/syscons/fonts/* (or NO for default)
font8x14=NO
# Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default)
font8x8=NO
# Set blank time (in seconds) or "off" to turn it off (or NO for default)
blanktime="120"
# Set to screen saver desired: blank, green, snake, star (or NO for none)
saver="star"
# General Russian setup for example:
# (koi8-r keyboard with cp866 screen font mapped to koi8-r)
#
# keymap=ru.koi8-r
# keyrate=fast
# keychange="61 [K"
# cursor=destructive
# scrnmap=koi8-r2cp866
# font8x16=cp866b-8x16
# font8x14=cp866-8x14
# font8x8=cp866-8x8
# blanktime=600
# saver=snake
######################### End Of Syscons Section #######################
######################### Start Of Netconfig Section #######################
# Set to the name of your host - this is pretty important!
hostname=Welcome.To.My.Domain
# Set to the NIS domainname of your host, or NO if none
defaultdomainname=NO
#
# Some broken implementations can't handle the RFC 1323 and RFC 1644
# TCP options. If TCP connections randomly hang, try disabling this,
# and bug the vendor of the losing equipment.
#
tcp_extensions=YES
# If you're running PCNFSD or anything else which requires mountd to allow
# non-root requests for NFS mounts, set this to YES.
weak_mountd_authentication=NO
#
# Set to the list of network devices on this host. You must have an
# ifconfig_${network_interface} line for each interface listed here.
# for example:
#
# network_interfaces="ed0 sl0 lo0"
#
# ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00"
# ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00"
# ifconfig_lo0="inet localhost"
#
network_interfaces="lo0 tun0"
ifconfig_lo0="inet localhost"
#ifconfig_tun0="inet 0.0.0.0 netmask 0xffffff00"
ifconfig_tun0="inet Welcome.To.My.Domain 0.0.0.0 netmask 255.255.255.0"
routedflags=-s
#
# Set to the list of route add lines for this host. You must have a
# route_${static_routes} line for each static route listed here (unless
# static_routes is set to "" - do NOT use ``NO'' to denote a lack of static
# routes!).
#
#static_routes="foo multicast"
#route_foo="woofo woofo-gw"
#route_multicast="224.0.0.0 -netmask 0xf0000000 -interface 10.0.0.1"
static_routes=""
# Set to the host you'd like set as your default router, or NO for none.
# This is the same as adding a ``default'' entry to static_routes.
defaultrouter=NO
# This is the routing daemon you want to use. Possible options are
# currently NO (for none), `routed' and `gated'. Also see `routerflags'
# for startup flags.
router=routed
# These are the flags you'd like to start the routing daemon with
routerflags=-q
# mrouted flags, or NO if you don't want to start mrouted. Needs kernel
# options enabled before it will work.
mrouted=NO
# timed flags, or NO if you don't want to start the time daemon
timedflags=NO
# xntpd flags, or NO if you don't want to start the xntpd daemon
xntpdflags="NO"
# this is inoperative unless xntpd is enabled; NO to disable
tickadjflags="-Aq"
# Set to the site you'd like to synchronize your clock from (gatekeeper.dec.com,
# for example) or NO for no such site.
ntpdate="NO"
# Set to YES if you want to run rwhod
rwhod=NO
# Set to NO if don't want to run lpd
lpd=YES
# Default sendmail flags. -bd is pretty mandatory, -q<n>m sets the queue scan
# time in minutes. If set to NO, don't start sendmail at all.
sendmail_flags="-bd"
# Set to appropriate flags if you want to use AMD. The commented-out entry
# provides a reasonable default, using the sample amd.map config file from the
# /usr/src/etc directory.
amdflags="NO"
#amdflags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map"
# Set to YES if this machine will be an NFS client
nfs_client=NO
# Set to YES if this machine will be an NFS server
nfs_server=NO
# Set to appropriate flags if you want to start NIS for a client
nis_clientflags="NO"
# Name of host to ypset to, if no YP server on this wire
nis_ypsetflags="NO"
# Set to appropriate flags if you want to start NIS for a server
nis_serverflags="NO"
# Set to appropriate flags for rpc.yppasswdd, if you wish to run it.
# Typical flags might be "-t /var/yp/master.passwd -s -f"
yppasswddflags="NO"
# Set to appropriate flags for named, if you have a full-time
# connection to the Internet.
# For most hosts, flags should be "-b /etc/namedb/named.boot"
namedflags="NO"
# Set to YES if you want to run the X-10 power controller daemon
xtend=NO
# Set to the name of the device for kernel crashdumps, or `off' to
# disable any statically configured dumpdev, or NO for no change.
# The device should normally be one of the swap devices specified
# in /etc/fstab.
dumpdev=NO
# Set to YES if you want kernel crashdumps to be saved for debugging
savecore=NO
# Set to YES if you want to run Kerberos authentication
kerberos_server=NO
# If you want this host to be a gateway, set to YES.
gateway=NO
# If you want this host to be a firewall or otherwise filter IP, set to YES.
firewall=NO
# Set to YES if you wish to check quotas.
check_quotas=NO
# Set to YES to turn on accounting.
accounting=NO
######################### End Of Netconfig Section #######################
######################### Start Of PC-card Section #######################
# If you want to enable APM BIOS driver, set to YES
# (The APM BIOS driver is not configured into GENERIC kernel b/c of bugs)
apm_enable=NO
# If you want to use PC-card package, set to YES
# (PC-card support is not configured in the GENERIC kernel)
pccard_enable=NO
# If you want to specify the address of memory used by PCIC,
# set this address (DEFAULT=0xd0000)
pccard_mem=DEFAULT
# If you want to use Etnerent PCMCIA cards, specify the ifconfig portion
# here. (card-specific flags like connector selection should be written in
# the card-specific entry in /etc/pccard.conf). Set to DHCP if you want to
# use a DHCP server to determine your IP address (not implemented).
#
# Set to NO if you don't want to configure your PC-CARD ethernet controller.
#
# for example:
#
# pccard_ifconfig="131.113.32.126 netmask 0xffffff00"
# or
# pccard_ifconfig="DHCP"
#
pccard_ifconfig=NO
######################### End Of PC-card Section #######################
######################### Start Of Misc Section #######################
# Set to YES if you want ibcs2 (SCO) emulation loaded at startup
ibcs2=NO
# Set to YES if you want Linux a.out emulation loaded at startup
linux=NO
# Set to a string representing the interrupts you are going to use
# for generating entropy in the kernel (or NO to ignore).
# If the machine is networked, the Ethernet card IRQ is good.
# The IRQ on an intelligent hard disk controller is good.
# The IRQ's on most sound devices are good.
#
# The following choices are BAD:
# The IRQ's on COM-ports (SIO devices), the IRQ used by a "classic"
# IDE disk or cdrom (Intelligent controllers seem to be OK), and
# the IRQ on the system clock.
#
# Experiment with the rest. The best interrupts are the ones that
# happen fairly irregularly, and never occur in very high-speed bursts.
#
# You'll have it right when you have a good supply of numbers from
# /dev/random, and no problems on your system, like slowdowns,
# Sluggish net/disk activity, perhaps even errors.
# For example - if you have a sound blaster on IRQ5, an ethernet card
# on IRQ10 and a SCSI controller on IRQ11 (eg ADAPTEC 1542) you might
# try this:
#
# rand_irqs="-s 5 -s 10 -s 11"
rand_irqs="NO"
[-- Attachment #5 --]
204.170.64.1:
add 0 0 HISADDR
204.170.64.3:
add 0 0 HISADDR
204.170.64.5:
add 0 0 HISADDR
204.170.64.6:
add 0 0 HISADDR
204.170.64.7:
add 0 0 HISADDR
204.170.64.8:
add 0 0 HISADDR
204.170.64.9:
add 0 0 HISADDR
[-- Attachment #6 --]
#0.0.0.0/0:
0.0.0.0:
add 0 0 HISADDR
[-- Attachment #7 --]
#################################################################
#
# PPP Sample Configuration File
#
# Written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.3.4.3 1996/06/17 09:17:50 jkh Exp $
#
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
set device /dev/cuaa1
set speed 38400
disable lqr
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
#
# Example with login script
# o From PPP prompt,
# ppp> dial simplesite
# will automatically dials and perform login procedure.
#
# ppp> load simplesite
# will also load and execute commands, but don't dial.
#
# o From shell, invoke as
# % ppp simplesite
# will load commands associated with the label. Use,
# ppp> dial
# to establish the connection.
#
comcat:
set phone 5843186
set login "TIMEOUT 5 login:-\\r-login: desslock word: ****"
set timeout 1200
set ifaddr 0.0.0.0/0 0.0.0.0/0
#
# Multi-phone example
#
multiphone:
set phone 12345678:12345679:12345670:12345671
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
#
# If peer requires to use CHAP, don't forget to supply authname and authkey.
#
# If you'd like to use CHAP to authentication peer, comment out the line
# ``enable chap'' below. You also need to prepare /etc/ppp.secret.
#
# If remote system sends its system name within CHAP packet and it is
# found in /etc/ppp.secret, then secret key is taken from the file and
# value of authkey is ignored.
#
chapsite:
set phone 12345678
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
deny pap
accept chap
# enable chap
set authname MySystemName
set authkey OurSecretKey
#
# To speak PAP is just similar to CHAP
#
papsite:
set phone 12345678
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
deny chap
accept pap
# enable pap
set authname MyUserName
set authkey MyPassword
#
# On demand dialup example
# Here, we assume that local side use 192.244.185.226 and
# remote side use 192.244.176.44 as their IP address.
# You must supply -auto option to invoke PPP.
#
# ex. % ppp -auto ondemand
#
ondemand:
set phone 1234567
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
set timeout 120
set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
add 0 0 192.244.176.44
#
# Another on demand example
# If peer assign some IP address for us, and we can't predict it
# until we make a connection, use 0 as local side address.
#
pmdemend:
set phone 1234567
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
set timeout 120
set ifaddr 0 192.244.176.44 255.255.255.0
add 0 0 192.244.176.44
#
# Example to validate incoming user with CHAP
# Invod as ``ppp -direct users'' from login script. User's system name
# and secret-key must be registered into /etc/ppp.secret.
# IP address assigned to peer is registered in ppp.secret, then that
# value is used and value in ``ifaddr'' command has no effect.
#
users:
disable pap
enable chap
enable proxy
set authname ppp-server
set ifaddr 192.244.176.44 292.244.184.31
#
# Example of Callback Request
#
# Here, we assume that peer will hangup the line and initiates a callback
# after successful authentication. We simply use chat script capability
# and wait for a "NO CARRIER" response from our modem.
#
# % ppp callback
#
callback:
set phone 0312345678
set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word: MySecret TIMEOUT 20 DUMMY"
set debug phase chat
dial
quit
#
# Example for PPP/TELNET and PPP/TCP. Read doc for further details
#
ppptelnet:
set escape 0xff
ppptcp:
set device 192.244.191.33:2400
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD/.3.91.961015232319.24293A-700000>
