connecting to net by pppd - problems


Recommended Posts

I am using Slackware 9.1 & I have problem getting my computer configured for internet access. I have an external modem(mobile phone connected to usb port) which gets connected but I am unable to browse. I am using the following command to connect to the internet

pppd /dev/modem 115200 debug usepeerdns defaultroute connect '/usr/sbin/chat -v "" at+cta=30 OK "atdt#777" CONNECT' mtu 264

I have checked the /etc/resolv.conf also in /etc/ppp/resolv.conf and found the following entries of my isp dns no:

nameserver 202.138.103.100

nameserver 202.138.96.2

The problem is it gets connected but I am unable to browse. I did ifconfig and got the following output

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:156 errors:0 dropped:0 overruns:0 frame:0

TX packets:156 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:11452 (11.1 Kb) TX bytes:11452 (11.1 Kb)

ppp0 Link encap:Point-to-Point Protocol

inet addr:220.226.12.75 P-t-P:97.236.2.14 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:264 Metric:1

RX packets:15 errors:0 dropped:0 overruns:0 frame:0

TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:167 (167.0 b) TX bytes:119 (119.0 b)

I am using this ppp0 connection only, then what is this lo one?

I have connecting the same way in other distros and it gets connected, its not working in slackware only. I badly need help on this one as I have been trying this for more than an month.

I am using the following options in the etc/ppp/options file.

lock

asyncmap 0

crtscts

modem

defaultroute

usepeerdns

name soman

noauth

/dev/modem 115200

kindly help me.

Link to comment
Share on other sites

lo is the loop back.

I have been having the same issues, although I did not have time to look into it.

It seems to me that on mine all the traffic is routed to eth0 (the LAN card).

Did you try pinging the nameservers and the server it self ?

Link to comment
Share on other sites

I tried pinging some other sites with no success. I will try pinging the nameservers and post the result.

What is this loopback and is it necessary, if no then how do i remove it?

Link to comment
Share on other sites

when i did route -n i got the following

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

97.236.2.14 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

0.0.0.0 97.236.2.14 0.0.0.0 UG 0 0 0 ppp0

Link to comment
Share on other sites

ok thanks for the effort, i have been trying to solve this for more than an moth now.

I think there is a bug in slackware as it is fine in all other distros

Link to comment
Share on other sites

You said that this works with other distros, but not Slack?

You should be able to set it up on another distro and then look at how it is configured and set Slack up the same way....

Link to comment
Share on other sites

I tryed it recently on the same machine I was having the problem with, and this time no problems.

This was after reformatting and reinstalling slackware.

The only think that I did differently this time was that I set up the ppp connection before I have set up the eth0 connection.

Hope it helps. It works fine now.

Link to comment
Share on other sites

The only think that I did differently this time was that I set up the ppp connection before I have set up the eth0 connection.

how did you do that?

sorry if its silly i am a total noob

thanks

Link to comment
Share on other sites

how did you do that?

sorry if its silly i am a total noob

thanks

np

In shell terms, I ran pppsetup and tryed if it worked before running netconfig. I even cancelled netconfig in the setup.

But I doubt this has something to do with it.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.