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<UP,BROADCAST,RUNNING,SIMPLEX> 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<POINTOPOINT,MULTICAST> mtu 1500<br> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552<br> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500<br> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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></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 #####################<br> ##############################################################<br> <br> swapfile="NO" # Set to name of swapfile if aux swapfile desired.<br> apm_enable="NO" # Set to YES if you want APM enabled.<br> pccard_enable="NO" # Set to YES if you want to configure PCCARD devices.<br> pccard_mem="DEFAULT" # If pccard_enable=YES, this is card memory address.<br> pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO).<br> local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.<br> <br> <br> ##############################################################<br> ### Network configuration sub-section ######################<br> ##############################################################<br> <br> ### Basic network options: ###<br> hostname="shiva1.dyn.ml.org" # Set this!<br> nisdomainname="NO" # Set to NIS domain if using NIS (or NO).<br> firewall_enable="NO" # Set to YES to enable firewall functionality<br> firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall)<br> firewall_quiet="NO" # Set to YES to suppress rule display<br> tcp_extensions="YES" # Allow RFC1323 & RFC1644 extensions (or NO).<br> network_interfaces="lo0 tun0 ppp0 ex0" # List of network interfaces (lo0 is loopback).<br> ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.<br> #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.<br> ifconfig_ex0="inet 10.0.0.1 netmask 255.255.255.0"<br> ifconfig_tun0=" "<br> <br> ### Network daemon (miscellaneous) & NFS options: ###<br> syslogd_enable="YES" # Run syslog daemon (or NO).<br> syslogd_flags="" # Flags to syslogd (if enabled).<br> inetd_enable="YES" # Run the network daemon dispatcher (or NO).<br> inetd_flags="" # Optional flags to inetd.<br> named_enable="NO" # Run named, the DNS server (or NO).<br> named_program="/usr/sbin/named" # named program, in case we want bind8 instead.<br> named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).<br> kerberos_server_enable="NO" # Run a kerberos master server (or NO).<br> kadmind_server_enable="NO" # Run kadmind (or NO) -- do not run on<br> # a slave kerberos server<br> kerberos_stash="" # Is the kerberos master key stashed?<br> rwhod_enable="NO" # Run the rwho daemon (or NO).<br> amd_enable="NO" # Run amd service with $amd_flags (or NO).<br> amd_flags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map"<br> nfs_client_enable="NO" # This host is an NFS client (or NO).<br> nfs_client_flags="-n 4" # Flags to nfsiod (if enabled).<br> nfs_server_enable="NO" # This host is an NFS server (or NO).<br> nfs_server_flags="-u -t 4" # Flags to nfsd (if enabled).<br> mountd_flags="-r" # Flags to mountd (if NFS server enabled).<br> nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).<br> rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server.<br> rpc_statd_enable="YES" # Run NFS rpc.statd if nfs_server (or NO).<br> portmap_enable="YES" # Run the portmapper service (or NO).<br> portmap_flags="" # Flags to portmap (if enabled).<br> rarpd_enable="NO" # Run rarpd (or NO).<br> rarpd_flags="" # Flags to rarpd.<br> xtend_enable="NO" # Run the X-10 power controller daemon.<br> xtend_flags="" # Flags to xtend (if enabled).<br> <br> ### Network Time Services options: ###<br> timed_enable="NO" # Run the time daemon (or NO).<br> timed_flags="" # Flags to timed (if enabled).<br> ntpdate_enable="NO" # Run the ntpdate to sync time (or NO).<br> ntpdate_flags="" # Flags to ntpdate (if enabled).<br> xntpd_enable="NO" # Run xntpd Network Time Protocol (or NO).<br> xntpd_flags="" # Flags to xntpd (if enabled).<br> tickadj_enable="NO" # Run tickadj (or NO).<br> tickadj_flags="-Aq" # Flags to tickadj (if enabled).<br> <br> # Network Information Services (NIS) options: ###<br> nis_client_enable="NO" # We're an NIS client (or NO).<br> nis_client_flags="" # Flags to ypbind (if enabled).<br> nis_ypset_enable="NO" # Run ypset at boot time (or NO).<br> nis_ypset_flags="" # Flags to ypset (if enabled).<br> nis_server_enable="NO" # We're an NIS server (or NO).<br> nis_server_flags="" # Flags to ypserv (if enabled).<br> nis_ypxfrd_enable="NO" # Run rpc.ypxfrd at boot time (or NO).<br> nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled).<br> nis_yppasswdd_enable="NO" # Run rpc.yppasswdd at boot time (or NO).<br> nis_yppasswdd_flags="" # Flags to rpc.yppasswdd (if enabled).<br> <br> ### Network routing options: ###<br> defaultrouter="10.0.0.1" # Set to default gateway (or NO).<br> static_routes="" # Set to static route list (or leave empty).<br> gateway_enable="YES" # Set to YES if this host will be a gateway.<br> router_enable="NO" # Set to YES to enable a routing daemon.<br> router="routed" # Name of routing daemon to use if enabled.<br> router_flags="-q" # Flags for routing daemon.<br> mrouted_enable="NO" # Do multicast routing (see /etc/mrouted.conf).<br> mrouted_flags="" # Flags for multicast routing daemon.<br> ipxgateway_enable="NO" # Set to YES to enable IPX routing.<br> ipxrouted_enable="NO" # Set to YES to run the IPX routing daemon.<br> ipxrouted_flags="" # Flags for IPX routing daemon.<br> arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL.<br> forward_sourceroute="NO" # do source routing (only if gateway_enable is set to "YES")<br> accept_sourceroute="NO" # accept source routed packets to us<br> <br> <br> ##############################################################<br> ### System console options #################################<br> ##############################################################<br> <br> keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO).<br> keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).<br> keybell="NO" # bell to duration.pitch or normal or visual (or NO).<br> keychange="NO" # function keys default values (or NO).<br> cursor="NO" # cursor type {normal|blink|destructive} (or NO).<br> scrnmap="NO" # screen map in /usr/share/syscons/scrnmaps/* (or NO).<br> font8x16="NO" # font 8x16 from /usr/share/syscons/fonts/* (or NO).<br> font8x14="NO" # font 8x14 from /usr/share/syscons/fonts/* (or NO).<br> font8x8="NO" # font 8x8 from /usr/share/syscons/fonts/* (or NO).<br> blanktime="300" # blank time (in seconds) or "NO" to turn it off.<br> saver="star" # screen saver: blank/daemon/green/snake/star/NO.<br> moused_enable="YES" # Run the mouse daemon.<br> moused_type="auto" # See man page for rc.conf(5) for available settings.<br> moused_port="/dev/psm0" # Set to your mouse port.<br> moused_flags="" # Any additional flags to moused.<br> <br> <br> ##############################################################<br> ### Miscellaneous administrative options ###################<br> ##############################################################<br> <br> cron_enable="YES" # Run the periodic job daemon.<br> lpd_enable="NO" # Run the line printer daemon.<br> lpd_flags="" # Flags to lpd (if enabled).<br> sendmail_enable="NO" # 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="-bd -q30m" # -bd is pretty mandatory.<br> dumpdev="NO" # Device name to crashdump to (if enabled).<br> check_quotas="NO" # Check quotas (or NO).<br> accounting_enable="NO" # Turn on process accounting (or NO).<br> ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO).<br> linux_enable="NO" # Linux emulation loaded at startup (or NO).<br> rand_irqs="NO" # Stir the entropy pool (like "5 11" or NO).<br> clear_tmp_enable="NO" # Clear /tmp at startup.<br> ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib" # 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. 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 "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"<br> provider:<br> set phone "2499212"<br> set login "TIMEOUT 10 gin:-BREAK-gin: sshower word: loren"<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. 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. PPP would be through the Compaq 19.2 data, 14.4 fax voice/voiceview modem. It did work before. Quantum 1.08 GB drive on wd0, Western Digital 2.1 GB on wd2, and a mitsumi CD-ROM. FreeBSD is on wd2s4. Last partition on the 2nd drive. 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. 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>