Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 1996 09:19:31 +2
From:      "Irvine Short" <ishort@pcm.co.za>
To:        fyeung@fyeung5.netific.com (francis yeung)
Cc:        questions@freebsd.org
Subject:   Re: FreeBSD connecting to uunet
Message-ID:  <199603140714.JAA04512@pcmgate.pcm.co.za>

next in thread | raw e-mail | index | archive | help
Hi Francis
> 	Thanks for your reply.
No problem
> 	Allow me to show you my configuration:
> 
> 1. ppp.conf
> 
> uunet:
>  set device /dev/cuaa2
>  set timeout 0
>  set phone  "phone"
>  set login "TIMEOUT 5 login:-\\r-login: "user" word: "password" TIMEOUT 20 "  
>  set debug phase chat  
>  set ifaddr 0 0
>  add 0 255.255.255.255 0 

Firstly, your netmask in the add command is wrong. You should have

 add 0 255.255.255.0 HISADDR

And  in your destination address you must have something, ie you could 
have:

set ifaddr 0 196.123.5.5/24

or whatever, with only the first 24 bits significant.

You can only have ifaddr 0 0 for manual dial. In order to dial on 
demand there has to be some kind of destination address in order to 
specify a route to the ppp interface.

It's quite logical, really. The ppp program only will dial out if 
packets get to it and they won't get to it if there is no route. I 
don't know about the inner workings of iijppp, but I know that by 
specifying that only the first 24 bits of the destination address are 
significant it is a sort of compromise, but it works.

What you say to it is: the destination address can be from 

196.123.5.1 thru to 196.123.5.255

This is good enough for setting up the route and when iijppp actually 
connects it slots the actual address in there and off you go.

How to find out what the first xxx.xxx.xxx should be of the IP 
address should be?

Invoke ppp manually with a ifaddr 0 0, ands then type:
 show ipcp

which will show you your IP address and the destination IP address, 
then use these addresses in your auto dial configuration with a /24 
on the end. This means that so long as you are always on the same 
subnet you will be OK.

Soneone else: Has anyone ever tried a /16 in the ifaddr line?

Maybe some else can explain this better, and perhaps more 
technically?

> 2. ppp.linkup
> 
> 0:
> 0 255.255.255.255 HISADDR

Here I have:
MYADDR:
 delete all
 add 0 255.255.255.0

But I do not think it is necessary for -ddial, as the line in 
ppp.conf

 add 0 255.255.255.0 HISADDR

Has already set up a default address.
 
> But I start the ppp -auto uunet, I got the following message
> 
> User Process PPP. Written by Toshiharu OHNO.
> Log level is 09
> Warning: No password entry for this host in ppp.secret
> Warning: All manipulation is allowed by anyone in a world
> Using interface: tun0
> Automatic mode
> write: Network is unreachable
> Must specify dstaddr with auto mode.

> But according to the ppp man page, ifaddr 0 0 is supported.
> 
> Why I get network is unreachable ? It should at least dial out first
> and before it finds out that it is reachable or unreachable.

See above.

Sorry this was so long and rambling but I am writing as I think which 
is fast but sometime confusing.
 

Regards,

Irvine Short

http://www.pcm.co.za/homepage/ishort/irv_home.html

     Technical Support
     Professional Computer Manufacturers
     Cape Town, South Africa
Tel: ++27-21-235084         Fax ++27-21-235089



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