Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 1997 11:36:10 +0930 (CST)
From:      Greg Lehey <grog@lemis.com>
To:        uh@NU.cs.fsu.edu (Gang-Ryung Uh)
Cc:        questions@FreeBSD.ORG
Subject:   Re: usermode ppp
Message-ID:  <199708060206.LAA04515@freebie.lemis.com>
In-Reply-To: <199708060114.VAA05742@sed.cs.fsu.edu> from Gang-Ryung Uh at "Aug 5, 97 09:14:45 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Gang-Ryung Uh writes:
> Hi,
>
>   I have been trying to configure usermode ppp and dynamic IP address.
>   Obviously, I cannot make the user ppp work for me. I think I set the
>   required information correctly as a usermode ppp client. However,
>   after the connection, I can not ping any host.
>
>   Would you possibly correct my mistake(s)?
>   Thanks in advance.
>
> Regards,
> Gang-Ryung Uh
>
>
> ppp.conf
> ========
> ..
> simplesite:
>  set phone 6446090
>  set login "TIMEOUT 5 login:-\\r-login: xx word: xxxxxx ocol: ppp"
>  set timeout 120
>  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
>  delete all
>  add 0 0 HISADDR
>  set openmode active
> ..
>
> ppp.linkup
> ==========
> ...
> # Otherwise, simply add peer as default gateway.
> #
> MYADDR:
>  add 0 0 HISADDR
> ..
> =========
>
> Here is the action that I made as a super user.
>
> # ppp
> PPP ON jonah> dial simplesite
> Dial attempt 1 of 1
> Phone: 6446090
> dial OK!
> ppp ON jonah> Packet mode.
> ppp ON jonah> show
> PPP ON jonah> ip
> IPCP [Opend]
>  his side: 128.186.121.25, 2d0f01  <-- what is 2d0f01?
>  my  side: 128.186.121.202, 2d0f00 <-- what is 2d0f00?
> connected: 1 secs, idle: 1 secs
>
> Defaults:
>  My Address:  10.0.0.1/0
>  His Address: 10.0.0.2/0
>  Negotiation: 0.0.0.0/0     <--- Is it correct?
>
> PPP ON jonah> show log
> 08-05 16:42:22 [402] Using interface: tun0
> 08-05 16:42:22 [402] PPP Started.
> 08-05 16:42:27 [402] Phone: 6446090
> 08-05 16:42:52 [402] *Connected!
> 08-05 16:42:59 [402] Phase: Authenticate
> 08-05 16:42:59 [402] Phase: Network
> 08-05 16:42:59 [402]  myaddr = 128.186.121.202  hisaddr = 128.186.1121.25
                                                                    ^^^^
I trust that this is a miscopy.  You should be able to get all this
information from the log file--you don't need to copy it.

> 08-05 16:42:59 [402] OsLinkup: 128.186.121.25

So far, the messages are saying that all is fine, and that you are
connected to your ISP.

> 08-05 16:43:58 [402] HDLC errors -> FCS: 1 ADDR: 0 COMD: 0 PROTO: 0
>                      ===============================================
>                         ???? <-- What this error means?

The FCS error usually means that a corrupted frame has been received.
It could be indicative of a bad line.  In your case, it probably means
that there is some misunderstanding between your ISP and your system.

> Ovbiously I cannot ping any host. 

That's not obvious at all.  You should be able to, according to the
messages you have.

> The following is the more information after the connection
>
> # ifconfig tun0
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 296
>         inet 128.186.121.202 --> 128.186.121.25 netmask 0xffffff00
>
> # netstat -nr
> Routing tables
>
> Internet:
> Destination        Gateway            Flags     Refs     Use     Netif Expire
> default            128.186.121.25     UGSc        0        0      tun0
> 127.0.0.1          127.0.0.1          UH          0        0       lo0
> 128.186.121.25     128.186.121.202    UH          1        0      tun0

This all looks fine.  Have you tried 'ping 128.186.121.25'?  If not,
please try it.  If you can get a response from the other end, then
your ISP probably has routing problems.  Otherwise let me know, and
I'll suggest more things to try.

Greg



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