Operating System - HP-UX
1826704 Members
2566 Online
109696 Solutions
New Discussion

Re: PPP internet connection

 
Enrico_3
Occasional Contributor

PPP internet connection

Hi
I'm just now finished the right configuration of the port to connect a modem for internet browsing, like web page "http://www.docs.hp.com/cgi-bin/otsearch/getfile?top=/hpux/onlinedocs/B2355-90698/B2355-90698_top.html&id=/hpux/onlinedocs/B2355-90698/00/00/27-con.html&searchterms=dev" suggest by Sridhar Bhaskarla in IT Resource Center on 08/27/2001.

To perform browing with Netscape 4.7 I have configured pppd, but until now I'm not able to connect to my Internet provider and not sure to make all correctly, than I need someone for ppp configuration support.

I use the software contained in hp-ux 11.00 release, the pppd
"Version 2.0 Beta [2-Jun-1998 20:17:15 hpux-streams-hppa-export]" and it's configuration files contained in /etc/ppp on a WS HP 715/80.

In order to connect to my provider after modem connection and switch-on it, I have configured the file under /etc/ppp and run /etc/ppp/Autostart. The modem dial-out and at "ps -ef|grep pppd" command I can see the process pppd is in dialing state:

root 1788 1 0 08:10:22 cul0p0 0:00 pppd [dialing, du0] 141.29.195.4:195.130.224.18 auto up debug 6

Note that the address 141.29.195.4 is the IP address of lan0 interface of WS (lan0).

After a few seconds the chat script in /etc/ppp/Systems is executed with success and at "ps -ef|grep pppd" command I can see the process pppd is in connecting state:

root 1788 1 0 08:10:22 cul0p0 0:00 pppd [connecting, du0, cul0p0] 141.29.195.4:195.130.224.18 auto

At "netstat -rn" I can see a new route added to the routing table:

Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 63 lo0 4136
141.29.195.4 141.29.195.4 UH 0 17634 lan0 4136
195.130.224.18 141.29.195.4 UH 2 0 du0 1500
141.29.195.0 141.29.195.4 U 2 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 141.29.195.1 UG 0 0 lan0 1500

A new logical network interface named du0 is created. I can see that with "ifconfig du0":

du0: flags=851
inet 141.29.195.4 --> 195.130.224.18 netmask ffff0000

In the /var/adm/pppd.log I can see after success of chat script the error "Authentication failed" but I don't understand the reason. At the same time the connection goes hung-up and the command "ps -ef|grep pppd" visualize the following output:

root 1788 1 0 08:10:22 ? 0:00 pppd [off, du0] 141.29.195.4:195.130.224.18 auto up debug 6

However, at this time, the route, the logical network interface du0 and pppd process are still present. Until I don't kill the pppd process with the command "kill -15 this one execute other addempts and the modem dial-out.

My modem is a AET MD TOP MUST LD/RC, but I have already test another modem without any improvement.

I send in attach the file ppp.tar containing configuration files /etc/ppp/* and the file /var/adm/pppd.log.

Are the configuration of files /etc/ppp/* correct? Or they have somthing wrong?

Follow, there are the configuration parameter recomended by Internet provider:

Protocol: PPP
Authentication: CHAP
Address: Assigned by the server (0.0.0.0)
Hostname: Assigned by the server
Domain: tiscali.it
Primary DNS: 195.130.224.18
Secondary DNS: 195.130.225.129
Proxy server: Automatic
Automatic Proxy Configuration (URL): http://www.tiscalinet.it/proxy.pac

I wait for any suggest.

All the best.
Enrico Venegoni
2 REPLIES 2
Klaus Crusius
Trusted Contributor

Re: PPP internet connection


Hi,

looks to me like an authorization problem. Your internet provider should give you a user name and a "secret", which have to be entered in the /etc/ppp/Auth file. See instructions in this file template.

Regards, Klaus
There is a live before death!
Enrico_3
Occasional Contributor

Re: PPP internet connection

Hi Klaus
and thanks for your attention.
Sorry, but I had already inserted a user name and password in /etc/ppp/Auth file.
Those who you see (myuser and mypasswd) in /etc/ppp/Auth file are that I filled just for internet security.
My real username and password, are the same I use to connect at my provider on a PC MS Window 95 without any problem. The same modem dial a normal remote connection at the same telephone number and after that I can use Netscape or Iexplorer for browsing.

Moreover for test, I have commented the line with username and password in the file /etc/ppp/Auth and I have see that is ignored.
The username and password are taken from the chat-script command line parameter of pppd in the file /etc/ppp/System.
If I delete the chat-script and uncomment the line inside the /etc/ppp/Auth the file is ignored again.
It may be the version Beta of the pppd ?
I don't have understand well if the mean of "secret" is the same of password or other.
The secret is an ascii password or is something encrypted ?

Waiting for answer.

Thanks
Enrico