Jump to content

Linux Modem is connecting but no internet access


saurya_s
 Share

Recommended Posts

Hi Guys

I have got a HAMR56 winmodem, for which I installed Linux driver.I use kppp to connect to the dialup service.Now, the modem, is recognized in kppp 'Query Modem' option.It also, connects as I get a message saying that I am connected, my phone gets also busy and I can hear the usual sound of 'Internet connected' however, when I try to go to the webpage or email server, I get an error message- failed to connect to the email server and error on websites.

Any suggestions to make it to work.

Thanks for your help.

SS

Link to comment
Share on other sites

well, I feel a problem of routing or name resolution.

 

If you do a ping google.com how does it replies ?

 

ping google.com

 

if you ping 216.239.57.99 (google.com IP address) how does does it replies ?

 

ping 216.239.57.99

 

Ok you use kppp, good. anyway do you try to configure it using DrakConnect to see how it goes ?

You should enter the DNS addresses manually. It must be possible to find them in the web site of your ISP.

 

[EDIT] a last word: what is exactly the error message ?

 

 

roland

Edited by roland
Link to comment
Share on other sites

Hi Roalnd

I did try PING.

Here is the output. It seems it is not connecting.

[ss@sauryalap ss]$ ping 216.239.57.99

PING 216.239.57.99 (216.239.57.99) 56(84) bytes of data.

From 163.1.221.189 icmp_seq=1 Destination Host Unreachable

From 163.1.221.189 icmp_seq=2 Destination Host Unreachable

From 163.1.221.189 icmp_seq=3 Destination Host Unreachable

From 163.1.221.189 icmp_seq=4 Destination Host Unreachable

From 163.1.221.189 icmp_seq=5 Destination Host Unreachable

From 163.1.221.189 icmp_seq=6 Destination Host Unreachable

From 163.1.221.189 icmp_seq=7 Destination Host Unreachable

From 163.1.221.189 icmp_seq=8 Destination Host Unreachable

From 163.1.221.189 icmp_seq=9 Destination Host Unreachable

From 163.1.221.189 icmp_seq=10 Destination Host Unreachable

From 163.1.221.189 icmp_seq=11 Destination Host Unreachable

From 163.1.221.189 icmp_seq=12 Destination Host Unreachable

 

--- 216.239.57.99 ping statistics ---

13 packets transmitted, 0 received, +12 errors, 100% packet loss, time 12024ms

, pipe 3

[ss@sauryalap ss]$

 

 

 

 

 

I don't get any error message. KPPP staus bar shows connected, phon line looks to be busy of usal internet connected.Darkconnect though says configuration error.

 

 

Here is the URL setup for my ISP.Have a look at this please.

Thanks

SS

Link to comment
Share on other sites

Hi guys

Sorry Roland

Here is the instruction for Linux dialling by my ISP.

http://www.oucs.ox.ac.uk/linux/dialin/inde...style=printable

Here is the route ouput when I am on modem- connected, eth is off:

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.76.27.250 * 255.255.255.255 UH 0 0 0 ppp0

127.0.0.0 * 255.0.0.0 U 0 0 0 lo

default 192.76.27.250 0.0.0.0 UG 0 0 0 ppp0

 

I will try ifconfig -a and will post the output, at the moment I am on LAN.

Thanks guys, I hope with your help I will be able to correct this, then I am also set for linux.

SS

Link to comment
Share on other sites

You can still check your /etc/resolv as said in the previous post and show us what ifconfig -a says but I guess it's not the problem:

 

- if ping <a IP address> does not work that means the problem is routing or firewall correct ?

- if the route is good so that's the firewall imho or I have reached my knowledge limit :help:

By the way witch distro do you run ?

 

roland

Link to comment
Share on other sites

Hi Roland

I am using mandrake 9.2. here are some outputs while I was connected thru modem:Please have a look. No ti doesn't wrok as root either, I tried ping with that. by the way what is shorewall- is it some sort of firewall or what? Well, in the Security tab in mandrake- there is a tab which says 'Which service would you like to allow the internet to connect to?.I have checked everything - equivalent to No firewall? is that oK?

Please let em know what do you think.

Best

SS

 

resolv.conf

[ss@localhost ss]$ more /etc/resolv.conf

domain localdomain #kppp temp entry

search imm.ox.ac.uk local

nameserver 127.0.0.1

nameserver 163.1.2.1

nameserver 129.67.1.1

nameserver 129.67.1.180

nameserver 129.67.1.1 # ppp temp entry

nameserver 163.1.2.1 # ppp temp entry

nameserver 129.67.1.1 #kppp temp entry

nameserver 163.1.2.1 #kppp temp entry

 

ifconfig -a listing

 

[root@localhost ss]# ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:90:F5:07:7A:D2

UP BROADCAST MULTICAST MTU:1500 Metric:1

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

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

collisions:0 txqueuelen:100

RX bytes:0 (0.0 B) TX bytes:3030 (2.9 Kb)

Interrupt:10 Base address:0x3200

 

eth0:9 Link encap:Ethernet HWaddr 00:90:F5:07:7A:D2

inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0

UP BROADCAST MULTICAST MTU:1500 Metric:1

Interrupt:10 Base address:0x3200

 

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:254 errors:0 dropped:0 overruns:0 frame:0

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

collisions:0 txqueuelen:0

RX bytes:19101 (18.6 Kb) TX bytes:19101 (18.6 Kb)

 

ppp0 Link encap:Point-to-Point Protocol

inet addr:192.76.27.90 P-t-P:192.76.27.250 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1524 Metric:1

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

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

collisions:0 txqueuelen:3

RX bytes:125 (125.0 B) TX bytes:101 (101.0 B)

 

[ss@localhost ss]$

 

netstat -nr

 

Kernel IP routing table

Destination Gateway Genmask Flags MSS Window irtt Iface

192.76.27.250 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 192.76.27.250 0.0.0.0 UG 0 0 0 ppp0

Link to comment
Share on other sites

Hi Roland!! :D

It is working mate!! Your guess was right, firewall was the culprit, when I stopped shorewall , I could access web!!! Excellent.

Hi there guys!!

The eth and modem don't work simultaneously. I have to switch off the eth to make modem work.

But the shorewall was the key!!

Thanks a lot guys for tremendous help.!!

So everything is perfect on my linux then!! Wow I could do everything in 6 weeks!! ofcourse with your help.!!!

Keep it up boys!!

Best

SS

Link to comment
Share on other sites

hmmm sorry roland pm'd me to ask me to have a look but it seems you solved it :D

Theoretically you can have simulataneous routing for dialup/lan at the same time, the question is if you need to.

 

the simplest way is just changing the default gateway, either by a script or just command line

route del default

should delete the default gw...

route add default gw ppp0 should set it to ppp (check syntax under man route or route --help)

or alternatively through the lan

route add default gw eth0

you can also add a static route for the internal lan (say 192.168.10.(0-255)) by

route add 192.168.10.0 MASK 255.255.255.0 eth0

(again checj=k exact synax) then internal traffic will got hrough the LAN and everything else will go through the modem...

 

\Sorry if that late....

Link to comment
Share on other sites

Hiya

Thanks i will try that as well after sometime. Essentially, I use LAN at work, so when I bring my laptop to work and boot it, it recognizes eth. at home when I boot it it shows eth- down but I am able to connect to modem. So it should be OK.

Cheers guys!!people like you are helping a beginner to enjoy linux.

Best

SS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...