LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2006, 04:42 PM   #1
IlyaZ
Member
 
Registered: Apr 2004
Posts: 43

Rep: Reputation: 15
Can't get internet working


Hey I'm a Linux Newbie.

Got Red Hat and am trying to get Internet working. But it just won't work.

I'm using a router (DHCP) with a DSL connection. The Network card light is green. Router too.

What do I do?
 
Old 09-17-2006, 05:27 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
IlyaZ,

First check out for /etc/resolv.conf;
as it should have either your router's ip in it or any global dns(public real static ip) in it.
Code:
e.g. nameserver 192.168.1.1
Second your network card should have router's ip acting as its gateway.
Code:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
Even after first & second suggestions being OK; & you net is still not working, you got to move to third point..
Third
Check whether your firewall is working or not & stop if it is
Code:
service iptables status
service iptables stop
 
Old 09-24-2006, 03:34 PM   #3
IlyaZ
Member
 
Registered: Apr 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for your reply,

I get this at point 1:
nameserver 192.168.1.1 . That IP is correct (router, local IP).

At 2 I get:
DEVICE=eth0
BOOTPROTP=dhcp
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no

At 3:
It shows the software firewall is off.


If I check the accesslog of my router I find the MAC-address of the network card listed. So at least it connects somehow. But when I ping the router from the linux I get no response. Same thing happens when I enter the IP of the router in firefox.
 
Old 09-24-2006, 03:41 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Check ifconfig and make sure the interface has an inet address..

Also check ps ax and see if dhcpcd or dhclient is running..
 
Old 10-01-2006, 12:06 PM   #5
IlyaZ
Member
 
Registered: Apr 2004
Posts: 43

Original Poster
Rep: Reputation: 15
I ran ifconfig and got 192.168.1.2

With ps ax I could only find the dhclient. Is the problem here?

I've got a screened ethernet cable. (The metal around the wire seems to conduct power. So when I touch the backside of the computer with it inserted I get a tiny electrical shock.

When I ping the computer from this one I ger fast replies. But when I ping the network from the linux I get no replies at all.
 
Old 10-01-2006, 12:10 PM   #6
IlyaZ
Member
 
Registered: Apr 2004
Posts: 43

Original Poster
Rep: Reputation: 15
No I seem to be able to ping other computers from the linux too. But I can't ping the router from it. This is possible from other comps though.
 
Old 10-01-2006, 01:05 PM   #7
IlyaZ
Member
 
Registered: Apr 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Ok problem solved. Was my Network Card. Don't get what was wrong with it.
 
Old 10-21-2007, 12:45 AM   #8
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Sometimes the Network Card is PCI interface to the Motherboard. Turn the computer off. Open the case, then carefully re-insert the card fully into the PCI card slot. Remember, the Motherboard is fragile in this hardware correction because of the downward force. Be careful not to press to hard on the PCI card. It will crack the Motherboard. If more than one PCI card on the Motherboard, look for space between slots. So no contact is made between PCI cards or dust.Suggestion: IF YOU see dust, blow the dust off the motherboard. The parts on the Motherboard act as heatsinks during operation. Dust will hamper electrical conductivity and longevity. Trap moisture and increase oxidation. Check all fans; cable ties, and wires hanging around. No joke intended. Clean runs smoother. Close the case. Turn computer on when YOU are ready.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 not working, network working Vossy Linux - Networking 3 12-20-2005 05:20 PM
Internet not working mahip83 Linux - Networking 14 08-13-2005 03:50 AM
Internet not working! WWMPCDD Linux - Wireless Networking 2 10-27-2004 01:43 PM
Internet Not Working! rubbercash Linux - Networking 4 07-20-2004 12:27 PM
Internet working, network not working... phoenix07 Fedora 1 04-11-2004 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:22 AM.

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