LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   I can't go to the Internet. (https://www.linuxquestions.org/questions/linux-general-1/i-cant-go-to-the-internet-386440/)

Gins 11-25-2005 11:27 AM

I can't go to the Internet.
 
I have installed Mandriva 2006 version. It works fine except I can’t go to the Internet. I first installed Windows XP and installed the Partition Magic program. Using the PM I created a partition for Linux and a swap partition.
So I could install Mandriva 2006 which I downloaded from a FTP site.



The problem is that I can't go to the Internet. I talked to my ISP. In first place they don't support Linux. They support Bill Gates. However, the man I talked to knew some Linux. He asked me to use the ping command. It was not successful. The ' ifconfig' command didn't work either. I could see their DNS server's ip address. The connection was there. The browsers can't go to the Internet. I am hooked to the ISP; browsers can't go to the Internet. There is an icon to indicate that I am connected to the Internet.

They couldn't do anything. There is a problem with the network card. If the network card is not working, how on earth I am connected to the ISP?

A friend of mine suggested buying a netword card and sees the reaction from the system. The built in network card works fine for Windows XP. I wouldn’t say there is a problem of drivers here. I am connected to the ISP. My ISP told me that the existence of a connection is there. Configuration of the network card worked smoothly.

I am connected to the ISP; however, I can’t go to the Internet. On the Mandriva package there are 3 browsers. They are Konqueror, Epiphany and Mozilla Firefox.
I looked at the settings of the browsers. There is nothing to alter in the settings.

I tried with all the 3 browsers.
I can go to the Internet on Windows XP side.

Your thoughts are welcome.

nephish 11-25-2005 12:04 PM

ok , as root, do an lsmod and see what modules it loaded for you network card. very few onboard network cards are not ok with linux. if you can get online with windows, you really should be able to in linux.
try doing an ifconfig as root. some distros only allow ifconfig as the root user.
also, try to ping an ip address on the internet by its ip address instead of its host name.
are you connecting by dsl, cable, wireless?

also do this

dmesg | grep eth0

and let us know what it gives you.

Gins 11-25-2005 12:53 PM

nephish
Thanks for the reply.

I have a cable modem.
I wrote the following:

ping www.google.com and pressed enter.

The reply was 'unknown host'

I will try the other commands and come back to you soon.

[I am writing here on the Windows XP side. I must reboot the computer and go back to the Linux side to try the commands you have mentioned.]

nephish 11-25-2005 01:06 PM

ok, try this and we will see if the problem is your DNS information
ping -c 3 216.239.39.99

if you dont get the same error, open your browser and type
216.239.39.99 in the url

let us know what happens

Gins 11-25-2005 01:39 PM

I logged on as a root user and wrote the following command.


# ifconfig

etho Link encap: Ethernet Hwaddr 00:0B: 6A: C2: 93: EC

inet addr: 83.250.88.97 Bcast: 255.255.255.255 Mask: 255.255.248.0

inet6 addr: fe80::20b:6aff:fec2:93ec/64 Scope:Link

UP BROADCAST MULTICAST MTU: 1500 Metric:1

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

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

Collisions: 0 txqueuelen: 1000

RX bytes: 40327 (39.3KiB) TX bytes:0 (0.0 b)

Interrupt: 209 Base address: 0xe400





lo Link encap:Local Loopback

inet addr: 127.0.0.1 Mask: 255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU: 16436 Metric: 1

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

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

collisions: 0 txqueuelen:0

RX bytes: 83607 ( 81.6 KiB ) TX bytes: 83607 ( 81.6 KiB)






# dmesg | grep eth0

Eth0: Uli M5261/M5263 rev 64 at 000000000001e400, 00:0B:6A:C2:93:EC, IRQ 209.

Eth0: Invalid media table selection 128.

Etho: no IPv6 routers present


# ping www.google.com

Ping: unknown host www.google.com

[You want me to try some other commands. I must go back to the Linux side and let you know the results again.]

nephish 11-25-2005 02:29 PM

ok , we are doing good.
i think its your dns servers.

open your browser and type
216.239.39.99 in the url

if it fails, type this in a terminal
ping -c 3 216.239.39.99

your ifconfig shows that you have an internet address. cool. so you are on line in linux. just need to narrow the last bit down

Gins 11-25-2005 02:36 PM

I logged on as a root user and wrote the following:

# ping -c 3 216.239.39.99 and pressed enter.

The message was:

PING 216.239.39.99 (216.239.39.99 ) 56(84) bytes of data

--- 216.239.39.99

3 packets transmitted, 0 received, 100% packet loss, time 1999ms
----------------------------------------------------------------------------

I opened the Mozilla Firefox browsr and wrote the following:

http:// 216.239.39.99

The message was.

The operation time out when attempting to contact 216.239.39.99

--------------------------------------------------------------------------------------

[ You want me to try some other commands again. I must reboot the system and go back to the Linux side now. I will write the output here.]

nephish 11-25-2005 02:50 PM

rats, may not be your DNS servers after all.
check your ifconfig again and write down the ip number right after inet addr:

then try to ping that number ( this is pinging your own network interface in your computer. like this
ping -c 3 xxx.xxx.xxx.xxx
and see what it gives you. look at where the cable plugs in. most interfaces have little LED lights that will be on when you are connected to something, and they should blink when you ping.

let us know what happens.

the reason you need to write the number down is that its very likely to be different everytime you reboot, if you are getting your ip from dhcp provided by your isp.

one last thing. if all this fails, ask your isp for their ip address, and try to ping that.

we will get thru this !

Gins 11-25-2005 03:26 PM

In Windows command prompt, I wrote the following command:

ipconfig /all


IP Routing Enabled : No
WINS Proxy Enabled: No


Dhcp enabled: Yes
Auto configuration enabled: Yes

Ip addreess: 83.250.92.194

Subnet mask: 25.255.248.0

Default gateway: 83.250.88.1

DHCP Server: 10.15.1.11

DNS servers: 83.250.245.10
: 83.250.249.10

[I will go back to the Linux side try again and let you know the outcome.]

Gins 11-25-2005 03:59 PM

It worked, as far as I can see. Still I can't go to the Internet with a browser.
-------------------------------------------------------------------------------------------
[The command 'ifconfig' gave me the IP address.]
# ping -c 3 83.250.88.97


64 bytes from 83.250.88.97: icmp_seq=1 ttl=64 time=0.025ms

64 bytes from 83.250.88.97: icmp_seq=2 ttl=64 time=0.023ms

64 bytes from 83.250.88.97: icmp_seq=3 ttl=64 time=0.021ms

3 packets transmitted, 3 received, 0 packets loss, time 1991 ms


Why can't I go to the Internet?

I would agree with you to say the IP address comes from a DHCP server. So it is
different from time to time.

I don't think I have to ask the ISP about the IP address. I got it from the Windows side.



Why can't I go to the Internet?

nephish 11-25-2005 04:08 PM

well this is really ..... wierd.

ok, i would burn the latest stable release of knoppix. its a live CD, good for auto configuring and troubleshooting.
i am wondering if you got a bad install on mandriva. mandriva is famous for being easy to configure. So that kinda does not make sense that it did not work right out of the box.
sorry about all this headache.

Gins 11-25-2005 04:46 PM

nephish

Thanks for all the help. You did your best. Sometimes such problems appears on
computers. I have experienced similar problems.

It is not your fault. There is a strange problem.


By the way, what is the following command:

ping -c 3 216.239.39.99

I know the ping command. This ' ping -c 2 xxxx xxxx xxxx xxxx

The portion '' -c 3 '' look strange. What is it?

What is 'c' ? What is '' 3 '' ?

nephish 11-25-2005 05:00 PM

3 means three packets and i think the c means count (but dont hold me to that one) if you want to check your NIC lights try a ping -c 10

babysparrow 11-26-2005 04:00 PM

In your post#7 your subnet mask is 25.255.248.0. I assume this is a typo.

Your dmesg hints that no ipv6 router is available at boot. This will affect the "default route".

# su - root
# route

This will show your routing info. You should see an entry like "default * 83.nn.nn.nn" or something similar.

If there is no default entry then it may be because your system did not find any suitable transport at boot (as dmesg indicates).

You could try add the default route (man route for how - it's easy). I guess you must use the public IP given by the isp.

If you are connecting (and maybe i've missed something here) via a NIC in your PC then I assume you have an ADSL Modem/Router connected to your PC via an RJ45 cable. (??) What brand/product_id is it?

What is the ip address of your router? (I actually don't understand how you're getting a public IP set on your PC NIC - and maybe someone can bump me off this thread if I'm all at sea here). :-)

Basslord1124 11-26-2005 04:58 PM

What does Linux display your default gateway as?


All times are GMT -5. The time now is 11:30 AM.