Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 1997 19:21:01 -0800
From:      Craig Shaver <craig@ProGroup.com>
To:        Michael Alwan <alwan@rma.edu>
Cc:        questions@freebsd.org
Subject:   Re: "dial-up networking"
Message-ID:  <330FB79C.ABD322C@ProGroup.com>
References:  <3.0.1.32.19970222214743.006b3090@rma.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Alwan wrote:
> 
del...

> I've set up user ppp with the tun0 device.  I can actually start terminal
> emulation from ppp and dial up the isp, but not with the "ppp.conf" script
> I created in /etc/ppp aka the handbook.  According to the book, I should be
> able to enter at the prompt (I'm still logging in as root):
> 
> # ppp "provider"
> 
> where "provider" is the name of my isp in the ppp.conf script.
> 
> Here's one problem I've encountered.  I noticed that after I made the
> suggested changes to /etc/sysconfig, like so:
> 
> hostname=rma.edu

OOOOOPPPPPPSSSS!  That is the domain name you are using here, not the
host name.  The hostname is the name of your box.


> 
> where "rma.edu" is the domain name of my isp, when I rebooted, instead of
> "myname.my.domain", or some other defined user, the machine was calling
> itself "rma.edu."  Am I confused about what "hostname" means?  Perhaps
> so--why would it be the same as the domain name.
> 
> >Do I, for instance, get user ppp running on an xterm and simply start up
> or switch to the browser?
> 
> Do you know the answer to my question about the proper way to use xwindows
> and netscape?  In MS Windows, for instance, you can establish your dial-up
> connection first, and then start any program (browser, mail, ftp etc.) to
> utilize the connection.

Yes, that is the way ppp works.  It is just another connection.  You
don't do anything special in your browser or other applications.  ppp
should set up the default routing for you.  Once you are connected, try
ifconfig -a at the prompt to see what the default routing is.  Do you
remember all the cruft you had to set up in windoze to get the dns
resolved?  I have done the setups for windog95 and NotThere os's.
Similar things have to happen on the FreeBSD box.  You will need to
modify /etc/resolv.conf to something like:

domain  progroup.com
nameserver      206.24.122.1

Where the nameserver is what your isp told you it was, and the domain is
rma.edu.  You may want to set up /etc/hosts to contain your host name. 
127.0.0.1	localhost.rma.edu	localhost
206.24.122.1	yourname.rma.edu	yourname

The 127.0.0.1 number is the same for every machine's loopback
localhost.  On the other hand, since you are probably getting an
assigned ip address you may not want to enter the host ip line for your
box.  


> 
> Michael Alwan

-- 
Craig Shaver  (craig@progroup.com) (415)390-0654 
Productivity Group POB 60458 Sunnyvale, CA  94088



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?330FB79C.ABD322C>