LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2007, 05:14 AM   #1
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Rep: Reputation: 15
Can't connect to internet using linux


Hi All

I am completely new to Linux. I installed Linux many a times on my PC, because of the same problem all the time.
I have got a xDSL connection on my PC at home.When I manually configure the IP address, network host, default gateway and DNS server entries, I am not able to connect to the internet. I have also got Windows installed on my system. While using Windows, I can easily connect using the same IP address, network host, default gateway and DNS server entries. I can also ping the default gateway from my Windows. But, when I try to ping the default gateway from Linux, it says, "connect:Network not reachable".
I tried installing Red Hat, Fedora, Ubuntu, but everytime I faced the same problem.

Please help!!!!!!!!!!

Regards
Pratyush
 
Old 07-23-2007, 07:46 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
A little more info, what type of router-modem do you have and how are you connected? Is it ethernet, 2 wire, etc?
 
Old 07-23-2007, 12:49 PM   #3
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
yeah...i m using ethernet and a DPC2100R2 cable modem...

i m using a xDSL connection.

Regards
Pratyush
 
Old 07-23-2007, 03:21 PM   #4
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Please do not ignore my problem!!!!!!!!!!!!

Somebody.....please help!!!!!!!!!!!!!!!


Regards
Pratyush
 
Old 07-24-2007, 12:36 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What kind of network card is it? lspci and lsmod output please!
 
Old 07-24-2007, 07:22 AM   #6
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
I typed lsmod and lspci. But it said,"
lsmod: Command not found.
lspci: Command not found.

I checked in the /bin directory. There is no executable for lsmod and lspci.
What am I supposed to do next?

Regards
Pratyush
 
Old 07-24-2007, 08:39 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Run those commands as root.
 
Old 07-24-2007, 09:58 AM   #8
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
I think it was not a problem of not being a root user. Actually the lsmod & lspci executables are present in /sbin. I had thought that they are present in /bin.

Output of lsmod
Module Size Used by Not tainted
nls_iso8859-1 3516 1 (autoclean)
nls_cp437 5116 1 (autoclean)
vfat 13004 1 (autoclean)
fat 38808 0 (autoclean) [vfat]
i830 74336 1
agpgart 47776 11 (autoclean)
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 0 (autoclean) (unused)
8139too 18088 1
mii 3976 0 [8139too]
ipt_REJECT 3928 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
microcode 4668 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107160 3 [sg sr_mod ide-scsi]
ide-cd 35708 0
cdrom 33728 0 [sr_mod ide-cd]
keybdev 2944 0 (unused)
mousedev 5492 1
hid 22148 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26348 0 (unused)
ehci-hcd 19976 0 (unused)
usbcore 78784 1 [hid usb-uhci ehci-hcd]
ext3 70784 1
jbd 51892 1 [ext3]


Output of lspci
00:00.0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset Host Bridge (rev 03)
00:02.0 VGA compatible controller: Intel Corp. 82845G/GL [Brookdale-G] Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801DB USB EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corp. 82801DB ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio (rev 02)
02:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
/sbin/lspci
00:00.0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset Host Bridge (rev 03)
00:02.0 VGA compatible controller: Intel Corp. 82845G/GL [Brookdale-G] Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801DB USB EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corp. 82801DB ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio (rev 02)
02:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
 
Old 07-24-2007, 10:09 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Well yes. /sbin is in root's $PATH, but usually not in the user's $PATH.

Anyway, it seems like your card is being detected properly as the correct kernel module is already loaded. Can you show the output of ifconfig as well (again, run as root, or if you use your regular user account, you'll need to run "/sbin/ifconfig") please?
 
Old 07-24-2007, 11:05 AM   #10
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
well, the O/P of ifconfig is

eth0 Link encap:Ethernet HWaddr 00:0C:6E:C3:80:A4
inet addr:67.243.37.177 Bcast:67.243.39.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16494 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:997254 (973.8 Kb) TX bytes:240 (240.0 b)
Interrupt:10 Base address:0x5000

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



Regards
Pratyush
 
Old 07-24-2007, 05:31 PM   #11
mseilis
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
Also a Linux newbie, but just wondering...Any chance a firewall is blocking you? Some start automatically.
 
Old 07-24-2007, 11:39 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Hmm, at least you have an IP address (though you might want to remove it from your post). Can you ping websites?
 
Old 07-25-2007, 03:56 AM   #13
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
No, I can not ping websites.

Regsrds
Pratyush
 
Old 07-25-2007, 04:01 AM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is there anything in /etc/resolv.conf? Which distro are you using? That may help, because some may have firewalls set up (as mseilis stated above).
 
Old 07-25-2007, 08:25 AM   #15
pratyush
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
I am using Red Hat 9.0.

The contents of te /etc/resolv.conf file are as follows:

nameserver 85.255.115.4
nameserver 85.255.112.15
nameserver 202.88.130.15

Thanks & regards
Pratyush
 
  


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
how to connect to Internet with Linux ? MaaSTaaR Linux - General 13 08-11-2005 01:16 PM
New to linux, cannot connect to the internet. calathar Linux - Networking 30 04-27-2005 04:57 AM
How does Linux connect to the internet? testforechozero Programming 2 08-17-2004 06:01 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
I can't connect to the Internet in Linux scracker Linux - Networking 5 09-20-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 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