LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't get internet working (https://www.linuxquestions.org/questions/linux-networking-3/cant-get-internet-working-484434/)

IlyaZ 09-17-2006 04:42 PM

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?

amitsharma_26 09-17-2006 05:27 PM

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


IlyaZ 09-24-2006 03:34 PM

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.

peter_robb 09-24-2006 03:41 PM

Check ifconfig and make sure the interface has an inet address..

Also check ps ax and see if dhcpcd or dhclient is running..

IlyaZ 10-01-2006 12:06 PM

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.

IlyaZ 10-01-2006 12:10 PM

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.

IlyaZ 10-01-2006 01:05 PM

Ok problem solved. Was my Network Card. Don't get what was wrong with it.

UhhMaybe 10-21-2007 12:45 AM

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.


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