Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 1996 22:44:18 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Eka Kelana <park@manado.wasantara.net.id>
Cc:        freebsd-questions@FreeBSD.org, freebsd-isp@FreeBSD.org
Subject:   Re: your mail
Message-ID:  <Pine.BSI.3.94.960904223944.529A-100000@gdi.uoregon.edu>
In-Reply-To: <4B6E4B58B1@manado.wasantara.net.id>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Sep 1996, Eka Kelana wrote:

> I have difficulties in making my freebsd be able to connect to my ISP.
> And I hope there are some people here who is able to give me some help.
> 
> Here is my problem:
> 
> My ISP uses PPP and assigns IP address to each user dynamically.
> So I used user PPP and made a very few changes to PPP configuration file
> example located in /etc/ppp, then I renamed it into it's proper name. The
> only changes I made looks like this:
> 
>    delete all
>    add 0 0 HISADDR

ppp.linkup is pretty broken.  I know here that it doesn't work.  Once you
get linked up, you should just type 'add 0 0 HISADDR' to add the proper
route.  

> 
> in file ppp.linkup. I didn't make any changes to the other file located in
> the same directory because I think that they have nothing to do with. I just
> renamed ppp.conf.iij file into ppp.conf file. 

You should make a new entry for your ISP with the proper settings (device,
speed, login sequence).  

My profile is as follows:

uonet:
 set phone 3466520
 disable pred1
 deny pred1
 set login "TIMEOUT 5 Username:-\\r-Username: blah  word: blah UOnet ppp"
 set ifaddr
 set timeout 0

This sets me up for fully dynamic addresses.

> I read the first line in that file which explain some stuffs about making a
> connection to an ISP which use PPP and assign IP address dynamically and I
> thought it could get me out of this problem.      
> As addition, I also made a few changes to /etc/hosts and /etc/sysconfig. It
> looks loke this:
> 
> /etc/hosts ---->   adding line "10.0.0.1  myhost.local.pc myhost" 

OK there.

> /etc/sysconfig ---> -set hostname to "myhost.local.pc" 
>                     -adding ethernet device and tunnel device (ed1 & tun0)
>                      and also the neccessary changes to ifconfig_${device} line
>                     -set ed1 as "myhost.local.pc" and set tun0 IP address to
> 0.0.0.0
>                     -set routed flag with "-s"

Do NOT ifconfig tun0; ppp will do it for you.

I personally set routed=NO since I've had bad experiences with routed.

> And I also created file /etc/resolv.conf into which I put this line:
>    "nameserver 202.159.65.166"

Check.

> Then I rebooted the machine and invoke PPP. After made some neccessary
> configuration setting I tried to make a PPP connection by dialing my ISP
> using command "term".
> I could connect to my ISP and logging in, but after I invoked PPP in the
> remote machine into which I logged in, PPP program in my computer and PPP
> program in remote machine refused to negotiate and I could not get any IP
> address from my ISP.

Are you sure this is the problem?  Did you check /var/log/ppp.log?  Do you
require any special authentication?  

> (invoking PPP in my ISP's remote machine after logging in is the procedure I
> should do to start PPP program in remote machine).
> I also would like to tell you that I currently do not know the IP address of
> my ISP remote machine or gateway and my ISP's network mask. The only address
> I know is my ISP's DNS.

The other information isn't needed -- it's exchanged when the ppp session
is negotiated.  

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.960904223944.529A-100000>