Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jun 1998 17:07:17 -0500
From:      Loren Thiel <thiel@genevaonline.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   PPP doesn't work, tun0 dev?
Message-ID:  <199806092207.RAA02011@battleship.genevaonline.com>

next in thread | raw e-mail | index | archive | help
<html>
Hello,<br>
I reinstalled FreeBSD 2.2.6 rescently because I gave more space to it,
600megs instead of 300.<br>
I was able to dial out PPP just fine before...but now after re-install I
cannot.<br>
I made backups of ppp.conf and ppp.linkup...however I didn't make a
backup of rc.conf.<br>
I seem to think there is a problem with the tun0 device...ifconfig
doesn't say its running as i guess it should under the PPP tutorials
section 3.2.
(<a href="http://www.freebsd.org/tutorials/ppp/ppp9.html" eudora="autourl">www.freebsd.org/tutorials/ppp/ppp9.html</a>)<br>
Here's what I get when i do a <tt>ifconfig -a<br>
<br>
ex0: flags=843&lt;UP,BROADCAST,RUNNING,SIMPLEX&gt; mtu 1500<br>
   inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255<br>
   ether 00:a0:c9:0a:ca:d0 <br>
tun0: flags=8010&lt;POINTOPOINT,MULTICAST&gt; mtu 1500<br>
sl0: flags=c010&lt;POINTOPOINT,LINK2,MULTICAST&gt; mtu 552<br>
ppp0: flags=8010&lt;POINTOPOINT,MULTICAST&gt; mtu 1500<br>
lo0: flags=8049&lt;UP,LOOPBACK,RUNNING,MULTICAST&gt; mtu 16384<br>
   inet 127.0.0.1 netmask 0xff000000 <br>
<br>
</tt><font size=3>During bootup I notice it lists the tun0 device twice,
with the same attributes. <br>
But it doesn't list it twice here.<br>
I used to be able to type </font><tt>ppp</tt><font size=3>, then it would
give me a prompt (</font><tt>ppp&gt;</tt><font size=3>) and I would type
</font><tt>dial provider</tt><font size=3>....however, now it doesn't
give me the prompt, it says </font><tt>Working in Interactive
Mode</tt><font size=3>..and nothing else comes up.<br>
Here is rc.conf:<br>
<br>
</font><tt>#!/bin/sh<br>
#<br>
<br>
# This is rc.conf - a file full of useful variables that you can set
<br>
# to change the default startup behavior of your system.<br>
#<br>
# All arguments must be in double or single quotes.<br>
#<br>
#  $Id: rc.conf,v 1.1.2.40 1998/03/15 16:39:41 jkh Exp $<br>
<br>
##############################################################<br>
### Important initial Boot-time options&nbsp; #####################<br>
##############################################################<br>
<br>
swapfile=&quot;NO&quot;     # Set to name of swapfile if aux swapfile
desired.<br>
apm_enable=&quot;NO&quot;      # Set to YES if you want APM 
enabled.<br>
pccard_enable=&quot;NO&quot;   # Set to YES if you want to configure
PCCARD devices.<br>
pccard_mem=&quot;DEFAULT&quot; # If pccard_enable=YES, this is card
memory address.<br>
pccard_ifconfig=&quot;NO&quot; # Specialized pccard ethernet
configuration (or NO).<br>
local_startup=&quot;/usr/local/etc/rc.d /usr/X11R6/etc/rc.d&quot;  #
startup script dirs.<br>
<br>
<br>
##############################################################<br>
###&nbsp; Network configuration sub-section&nbsp;
######################<br>
##############################################################<br>
<br>
### Basic network options: ###<br>
hostname=&quot;shiva1.dyn.ml.org&quot;  # Set this!<br>
nisdomainname=&quot;NO&quot;      # Set to NIS domain if using NIS (or
NO).<br>
firewall_enable=&quot;NO&quot;    # Set to YES to enable firewall
functionality<br>
firewall_type=&quot;UNKNOWN&quot;    # Firewall type (see
/etc/rc.firewall)<br>
firewall_quiet=&quot;NO&quot;     # Set to YES to suppress rule
display<br>
tcp_extensions=&quot;YES&quot;    # Allow RFC1323 &amp; RFC1644
extensions (or NO).<br>
network_interfaces=&quot;lo0 tun0 ppp0 ex0&quot; # List of network
interfaces (lo0 is loopback).<br>
ifconfig_lo0=&quot;inet 127.0.0.1&quot; # default loopback device
configuration.<br>
#ifconfig_lo0_alias0=&quot;inet 127.0.0.254 netmask 0xffffffff&quot; #
Sample alias entry.<br>
ifconfig_ex0=&quot;inet 10.0.0.1 netmask 255.255.255.0&quot;<br>
ifconfig_tun0=&quot; &quot;<br>
<br>
### Network daemon (miscellaneous) &amp; NFS options: ###<br>
syslogd_enable=&quot;YES&quot;    # Run syslog daemon (or NO).<br>
syslogd_flags=&quot;&quot;     # Flags to syslogd (if enabled).<br>
inetd_enable=&quot;YES&quot;      # Run the network daemon dispatcher (or
NO).<br>
inetd_flags=&quot;&quot;       # Optional flags to inetd.<br>
named_enable=&quot;NO&quot;    # Run named, the DNS server (or NO).<br>
named_program=&quot;/usr/sbin/named&quot;  # named program, in case we
want bind8 instead.<br>
named_flags=&quot;-b /etc/namedb/named.boot&quot; # Flags to named (if
enabled).<br>
kerberos_server_enable=&quot;NO&quot;   # Run a kerberos master server
(or NO).<br>
kadmind_server_enable=&quot;NO&quot; # Run kadmind (or NO) -- do not run
on<br>
            # a slave kerberos server<br>
kerberos_stash=&quot;&quot;    # Is the kerberos master key 
stashed?<br>
rwhod_enable=&quot;NO&quot;    # Run the rwho daemon (or NO).<br>
amd_enable=&quot;NO&quot;         # Run amd service with $amd_flags (or
NO).<br>
amd_flags=&quot;-a /net -c 1800 -k i386 -d my.domain -l syslog /host
/etc/amd.map&quot;<br>
nfs_client_enable=&quot;NO&quot;     # This host is an NFS client (or
NO).<br>
nfs_client_flags=&quot;-n 4&quot;    # Flags to nfsiod (if 
enabled).<br>
nfs_server_enable=&quot;NO&quot;     # This host is an NFS server (or
NO).<br>
nfs_server_flags=&quot;-u -t 4&quot; # Flags to nfsd (if enabled).<br>
mountd_flags=&quot;-r&quot;    # Flags to mountd (if NFS server
enabled).<br>
nfs_reserved_port_only=&quot;NO&quot;   # Provide NFS only on secure port
(or NO).<br>
rpc_lockd_enable=&quot;NO&quot;      # Run NFS rpc.lockd (*broken!*) if
nfs_server.<br>
rpc_statd_enable=&quot;YES&quot;     # Run NFS rpc.statd if nfs_server
(or NO).<br>
portmap_enable=&quot;YES&quot;    # Run the portmapper service (or
NO).<br>
portmap_flags=&quot;&quot;     # Flags to portmap (if enabled).<br>
rarpd_enable=&quot;NO&quot;    # Run rarpd (or NO).<br>
rarpd_flags=&quot;&quot;       # Flags to rarpd.<br>
xtend_enable=&quot;NO&quot;    # Run the X-10 power controller
daemon.<br>
xtend_flags=&quot;&quot;       # Flags to xtend (if enabled).<br>
<br>
### Network Time Services options: ###<br>
timed_enable=&quot;NO&quot;    # Run the time daemon (or NO).<br>
timed_flags=&quot;&quot;       # Flags to timed (if enabled).<br>
ntpdate_enable=&quot;NO&quot;     # Run the ntpdate to sync time (or
NO).<br>
ntpdate_flags=&quot;&quot;     # Flags to ntpdate (if enabled).<br>
xntpd_enable=&quot;NO&quot;    # Run xntpd Network Time Protocol (or
NO).<br>
xntpd_flags=&quot;&quot;       # Flags to xntpd (if enabled).<br>
tickadj_enable=&quot;NO&quot;     # Run tickadj (or NO).<br>
tickadj_flags=&quot;-Aq&quot;     # Flags to tickadj (if enabled).<br>
<br>
# Network Information Services (NIS) options: ###<br>
nis_client_enable=&quot;NO&quot;     # We're an NIS client (or NO).<br>
nis_client_flags=&quot;&quot;     # Flags to ypbind (if enabled).<br>
nis_ypset_enable=&quot;NO&quot;      # Run ypset at boot time (or
NO).<br>
nis_ypset_flags=&quot;&quot;      # Flags to ypset (if enabled).<br>
nis_server_enable=&quot;NO&quot;     # We're an NIS server (or NO).<br>
nis_server_flags=&quot;&quot;     # Flags to ypserv (if enabled).<br>
nis_ypxfrd_enable=&quot;NO&quot;     # Run rpc.ypxfrd at boot time (or
NO).<br>
nis_ypxfrd_flags=&quot;&quot;     # Flags to rpc.ypxfrd (if
enabled).<br>
nis_yppasswdd_enable=&quot;NO&quot;  # Run rpc.yppasswdd at boot time (or
NO).<br>
nis_yppasswdd_flags=&quot;&quot;     # Flags to rpc.yppasswdd (if
enabled).<br>
<br>
### Network routing options: ###<br>
defaultrouter=&quot;10.0.0.1&quot;      # Set to default gateway (or
NO).<br>
static_routes=&quot;&quot;     # Set to static route list (or leave
empty).<br>
gateway_enable=&quot;YES&quot;    # Set to YES if this host will be a
gateway.<br>
router_enable=&quot;NO&quot;      # Set to YES to enable a routing
daemon.<br>
router=&quot;routed&quot;         # Name of routing daemon to use if
enabled.<br>
router_flags=&quot;-q&quot;    # Flags for routing daemon.<br>
mrouted_enable=&quot;NO&quot;     # Do multicast routing (see
/etc/mrouted.conf).<br>
mrouted_flags=&quot;&quot;     # Flags for multicast routing 
daemon.<br>
ipxgateway_enable=&quot;NO&quot;     # Set to YES to enable IPX
routing.<br>
ipxrouted_enable=&quot;NO&quot;      # Set to YES to run the IPX routing
daemon.<br>
ipxrouted_flags=&quot;&quot;      # Flags for IPX routing daemon.<br>
arpproxy_all=&quot;&quot;         # replaces obsolete kernel option
ARP_PROXYALL.<br>
forward_sourceroute=&quot;NO&quot;   # do source routing (only if
gateway_enable is set to &quot;YES&quot;)<br>
accept_sourceroute=&quot;NO&quot;    # accept source routed packets to
us<br>
<br>
<br>
##############################################################<br>
###&nbsp; System console options&nbsp;
#################################<br>
##############################################################<br>
<br>
keymap=&quot;NO&quot;    # keymap in /usr/share/syscons/keymaps/* (or
NO).<br>
keyrate=&quot;NO&quot;      # keyboard rate to: slow, normal, fast (or
NO).<br>
keybell=&quot;NO&quot;      # bell to duration.pitch or normal or visual
(or NO).<br>
keychange=&quot;NO&quot;    # function keys default values (or NO).<br>
cursor=&quot;NO&quot;    # cursor type {normal|blink|destructive} (or
NO).<br>
scrnmap=&quot;NO&quot;      # screen map in /usr/share/syscons/scrnmaps/*
(or NO).<br>
font8x16=&quot;NO&quot;     # font 8x16 from /usr/share/syscons/fonts/*
(or NO).<br>
font8x14=&quot;NO&quot;     # font 8x14 from /usr/share/syscons/fonts/*
(or NO).<br>
font8x8=&quot;NO&quot;      # font 8x8 from /usr/share/syscons/fonts/*
(or NO).<br>
blanktime=&quot;300&quot;      # blank time (in seconds) or
&quot;NO&quot; to turn it off.<br>
saver=&quot;star&quot;      # screen saver:
blank/daemon/green/snake/star/NO.<br>
moused_enable=&quot;YES&quot;  # Run the mouse daemon.<br>
moused_type=&quot;auto&quot;   # See man page for rc.conf(5) for
available settings.<br>
moused_port=&quot;/dev/psm0&quot; # Set to your mouse port.<br>
moused_flags=&quot;&quot;      # Any additional flags to moused.<br>
<br>
<br>
##############################################################<br>
###&nbsp; Miscellaneous administrative options&nbsp;
###################<br>
##############################################################<br>
<br>
cron_enable=&quot;YES&quot; # Run the periodic job daemon.<br>
lpd_enable=&quot;NO&quot;      # Run the line printer daemon.<br>
lpd_flags=&quot;&quot;      # Flags to lpd (if enabled).<br>
sendmail_enable=&quot;NO&quot; # Run the sendmail daemon (or NO). I
turned this off because it would take forever to boot up if it was
on<br>
sendmail_flags=&quot;-bd -q30m&quot; # -bd is pretty mandatory.<br>
dumpdev=&quot;NO&quot;      # Device name to crashdump to (if
enabled).<br>
check_quotas=&quot;NO&quot; # Check quotas (or NO).<br>
accounting_enable=&quot;NO&quot;  # Turn on process accounting (or
NO).<br>
ibcs2_enable=&quot;NO&quot; # Ibcs2 (SCO) emulation loaded at startup (or
NO).<br>
linux_enable=&quot;NO&quot; # Linux emulation loaded at startup (or
NO).<br>
rand_irqs=&quot;NO&quot;    # Stir the entropy pool (like &quot;5
11&quot; or NO).<br>
clear_tmp_enable=&quot;NO&quot;   # Clear /tmp at startup.<br>
ldconfig_paths=&quot;/usr/lib/compat /usr/X11R6/lib /usr/local/lib&quot;
# shared library search paths<br>
<br>
##############################################################<br>
### Allow local configuration override at the very end here ##<br>
##############################################################<br>
if [ -f /etc/rc.conf.local ]; then<br>
   . /etc/rc.conf.local<br>
fi<br>
<br>
</tt><font size=3>I did turn the sendmail daemon off because it would
hang on that part during bootup for 5 min or so.&nbsp; I'm sure that has
something to do with my PPP not working right. (taking so long)<br>
<br>
Here is my ppp.conf:<br>
<br>
</font><tt>default:<br>
 set speed 115200<br>
 set device /dev/cuaa1<br>
 set dial &quot;ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \&quot;\&quot;
ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT&quot;<br>
provider:<br>
 set phone &quot;2499212&quot;<br>
 set login &quot;TIMEOUT 10 gin:-BREAK-gin: sshower word:
loren&quot;<br>
 set timeout 300<br>
 deny lqr<br>
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0<br>
 delete ALL<br>
 add 0 0 HISADDR<br>
<br>
</tt><font size=3>And ppp.linkup, but it never gets this far:<br>
<br>
</font><tt>provider:<br>
 delete ALL<br>
 add 0 0 HISADDR<br>
<br>
</tt><font size=3>Please reply to my email address as well
(thiel@genevaonline.com) as the freebsd-questions list gives me too many
messages per day.&nbsp; Thanks.<br>
For extra info:<br>
My computer is a Compaq Pentium 133 with 32 megs ram (though the kernel
only finds 16). I have a local network connected through an Intel
Etherexpress Pro/10.&nbsp; PPP would be through the Compaq 19.2 data,
14.4 fax voice/voiceview modem.&nbsp; It did work before. Quantum 1.08 GB
drive on wd0, Western Digital 2.1 GB on wd2, and a mitsumi CD-ROM.&nbsp;
FreeBSD is on wd2s4.&nbsp; Last partition on the 2nd drive.&nbsp; I also
have to type </font><tt>1:wd(2,a)kernel </tt><font size=3>after the
</font><tt>boot:</tt><font size=3> prompt.&nbsp; This and the ram I
figure would be fixed when I install a custom kernel...but I need ppp to
work so I can download the source. :)<br>
Last time i installed, ppp worked right away...not sure what I did
different this time...<br>
Thanks for any help you can give me!<br>
<br>
Loren Thiel</font></html>


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?199806092207.RAA02011>