LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-21-2005, 01:08 PM   #1
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Rep: Reputation: 15
Question Can not get Internet connection working


I have managed to install the driver for my NIC card
(Broadcom 440 ) for RH Linux 9 on Dell inspiron
now in network device manager I see:

Status Device Nickname Type
Active eth0 eth0 Ethernet

I have cable connection to Internet.
However with Mozilla I am not able to surf the Internet
Why is it so?


I have set up Internet connection with internet connection wizard
and chose the option
Automatically obtain IP address setting with dhcp

so the ethernet device is configured with
Automatically obtain DNS information from provider

and the device is active

with my connection I'm required to have:

100Mbit network card
cat5 cable
and set the option 'obtain an IP address automatically'

under windows it works fine
but under linux although my card is active
I can not ping any IP address

Here what I have:

[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost root]# cat /etc/resolv.conf
search localdomain
nameserver 127.0.0.1
 
Old 02-21-2005, 01:20 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
What does ifconfig eth0 show?
 
Old 02-21-2005, 02:01 PM   #3
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
What does ifconfig eth0 show?
Here it is:


[root@localhost root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0BB:95:23:5A
inet addr:192.168.2.170 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1120 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:88504 (86.4 Kb) TX bytes:1038 (1.0 Kb)
Interrupt:10 Base address:0x4000 Memory:e0204000-e0205080
 
Old 02-21-2005, 02:10 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Do you have a names server running?

[root@localhost root]# cat /etc/resolv.conf
search localdomain
nameserver 127.0.0.1

You have no names server listed. Just add your ISP's DNS server in your /etc/resolv.conf.
 
Old 02-21-2005, 02:25 PM   #5
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
Do you have a names server running?

[root@localhost root]# cat /etc/resolv.conf
search localdomain
nameserver 127.0.0.1

You have no names server listed. Just add your ISP's DNS server in your /etc/resolv.conf.
Could you please explain what is nameserver
and which line exactly should be added to /etc/resolv.conf. [/B]

My ethernet device is configured to
automatically obtain DNS information
so I was expecting I have done enough
At least under Windows it is like this working fine

Thanks!
 
Old 02-21-2005, 03:28 PM   #6
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Dunno why its not automatically finding your dns, but what you need to do is, go into windows and find out what your dns addresses are, or contact your isp. There should be two dns or nameservers. One is primary the other is secondary. Write them down and boot back into linux and open your /etc/resolve.conf file with a text editor and add the addresses.
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
You might have to restart your card
ifconfig eth0 down
ifconfig eth0 up
and you should be good to go.
You could get it to auto find it by adding some stuff to another file. Open up /etc/network/interfaces with a text editor. Add the following lines

# The primary network interface
auto eth0
iface eth0 inet dhcp

That should bring up your card when your machine boots and set it up for dhcp.

Last edited by short101; 02-21-2005 at 03:31 PM.
 
Old 02-21-2005, 05:12 PM   #7
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
Do you have a names server running?

[root@localhost root]# cat /etc/resolv.conf
search localdomain
nameserver 127.0.0.1

You have no names server listed. Just add your ISP's DNS server in your /etc/resolv.conf.

I added nameserver so now /etc/resolv.conf :

search localdomain
nameserver 127.0.0.1
nameserver 145.97.192.38
nameserver 131.211.4.5

And I still cannot get to Internet from Linux
 
Old 02-21-2005, 05:18 PM   #8
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by short101
Dunno why its not automatically finding your dns, but what you need to do is, go into windows and find out what your dns addresses are, or contact your isp. There should be two dns or nameservers. One is primary the other is secondary. Write them down and boot back into linux and open your /etc/resolve.conf file with a text editor and add the addresses.
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
You might have to restart your card
ifconfig eth0 down
ifconfig eth0 up
and you should be good to go.
You could get it to auto find it by adding some stuff to another file. Open up /etc/network/interfaces with a text editor. Add the following lines

# The primary network interface
auto eth0
iface eth0 inet dhcp

That should bring up your card when your machine boots and set it up for dhcp.
I did that, here is the /etc/resolv.conf

search localdomain
nameserver 127.0.0.1
nameserver 145.97.192.38
nameserver 131.211.4.5


however Internet is still not working
 
Old 02-21-2005, 05:19 PM   #9
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by short101
Dunno why its not automatically finding your dns, but what you need to do is, go into windows and find out what your dns addresses are, or contact your isp. There should be two dns or nameservers. One is primary the other is secondary. Write them down and boot back into linux and open your /etc/resolve.conf file with a text editor and add the addresses.
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
You might have to restart your card
ifconfig eth0 down
ifconfig eth0 up
and you should be good to go.
You could get it to auto find it by adding some stuff to another file. Open up /etc/network/interfaces with a text editor. Add the following lines

# The primary network interface
auto eth0
iface eth0 inet dhcp

That should bring up your card when your machine boots and set it up for dhcp.
concerning the /etc/network/interfaces I did not find this file It doesn't exist
 
Old 02-21-2005, 05:20 PM   #10
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
By change, can you ping those IP addresses?
 
Old 02-21-2005, 05:23 PM   #11
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
By change, can you ping those IP addresses?

when I ping some address then it says nothing for a long time and I close the terminal
 
Old 02-22-2005, 01:34 AM   #12
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
I dont think you want that 127.0.0.1 line in there. In my resolve.conf all I have is two nameserver lines with my isp's dns machines adresses, under that is search. ie
nameserver 203.194.27.57
nameserver 203.194.56.150
search
If you have the 127.0.0.1 line, it will use your machine to resolve the adresses which it cant do. afaik.
Ring your isp and find out the numbers of there dns machines and only put those two in there and see how you go, if not post back.
What distro are you using.
If the above didnt work, can you post the contents of your
/etc/sysconfig/network file

Last edited by short101; 02-22-2005 at 01:54 AM.
 
Old 02-22-2005, 05:49 PM   #13
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Unhappy Internet doesn't work RH9 Dell Inspiron

Quote:
Originally posted by short101
I dont think you want that 127.0.0.1 line in there. In my resolve.conf all I have is two nameserver lines with my isp's dns machines adresses, under that is search. ie
nameserver 203.194.27.57
nameserver 203.194.56.150
search
If you have the 127.0.0.1 line, it will use your machine to resolve the adresses which it cant do. afaik.
Ring your isp and find out the numbers of there dns machines and only put those two in there and see how you go, if not post back.
What distro are you using.
If the above didnt work, can you post the contents of your
/etc/sysconfig/network file
I have done that ...it is still not working

here is /erc/sysconfig/network

NETWORKING=yes
HOSTNAME=localhost.localdomain


[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0BB:95:23:5A
inet addr:192.168.2.102 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3580 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:354655 (346.3 Kb) TX bytes:6592 (6.4 Kb)
Interrupt:10 Base address:0x4000 Memory:e0204000-e0205080

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:12100 errors:0 dropped:0 overruns:0 frame:0
TX packets:12100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:825524 (806.1 Kb) TX bytes:825524 (806.1 Kb)


[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0



[root@localhost root]# ping 192.168.2.1
64 bytes from 192.168.2.1: icmp_seq=95 ttl=255 time=0.746 ms
64 bytes from 192.168.2.1: icmp_seq=96 ttl=255 time=0.758 ms
64 bytes from 192.168.2.1: icmp_seq=97 ttl=255 time=0.735 ms

[root@localhost root]# nslookup http://www.yahoo.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
;; connection timed out; no servers could be reached
 
Old 02-22-2005, 05:54 PM   #14
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
The only thing that I can think of is that you default gateway(your router's IP) is not set. That is where your PC looks when that address is not local. Try setting up the nic with a static IP.
 
Old 02-22-2005, 06:48 PM   #15
New_To_RH_Linux
Member
 
Registered: Feb 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tangle
The only thing that I can think of is that you default gateway(your router's IP) is not set. That is where your PC looks when that address is not local. Try setting up the nic with a static IP.

I have tried already so many advices...and have done so many different reinstallation..
so the hope to make it working was vanishing
But now I'm happy!!!! do u believe? I'm typing this from Linux!!! Yeaaah!!!
Actually I set NIC card with static IP, subnetmask and default gateway
Why It was not able to do so automatically with DHCP I don't undertand


THANKS A LOT LINUX-FRIENDS!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet connection working only for root ezrael Debian 1 07-28-2005 04:36 AM
internet connection not working jojotx0 Fedora 5 02-24-2005 10:57 AM
Internet connection not working r_squared Linux - Wireless Networking 4 11-05-2004 12:18 PM
Got my Internet Connection Working! jtwJGuevara LinuxQuestions.org Member Success Stories 0 03-25-2004 10:36 PM
Internet connection not working NoviceW Linux - Networking 1 01-31-2004 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration