Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46
Rep:
eth0 and internet
hi guys,
I got an headache because of my linux machine. I don't know what is the exact problem with it. The problem is I can't get my internet. I am using redhat-7.2 on Pentium-II 366 Mhz, Memory 128 MB (SDRAM) and 4.2 GB Hard drive. I am connected via LAN (DHCP client).
I can get my IP via DHCP. All works well. My linux shows that my eth0, lo was successfully brought up.
# /sbin/service network restart
----shows---
Shutting down interface lo: [OK]
Setting network parameters: [OK]
Bringing up interface lo: [OK]
Bringing up interface eth0: [OK]
--------end----
any idea guys why i still can't connected to internet? Any files I must configure to reset all my network to basic again? any suggestion??
Going back to basics, can you ping anything from the machine?
The router? ping -c 5 172.16.0.1 (could be 172.16.1.1 you'll need to check)
LQ by IP? ping -c 5 64.179.4.149
LQ by DNS? ping -c 5 www.linuxquestions.org
The first should succeed - it's in the same subnet.
If the second fails (LG by IP) then you're missing a default gateway and will need to tag that onto the interface (can't remember the command off the top of my head though ).
If the last one fails the you're missing DNS settings (and possibly a DNS client) and will need to add those on.
We have a winner - as pmgroen has said, your DHCP server isn't telling you the default gateway. Is the DHCP server a router that you control or is this box on a LAN managed by somebody else?
Ideally you should update the DHCP server to handout the default gateway.
Alternatively you'll need to add the default gateway yourself. Try using: route add default gw 172.16.0.1
Note that the IP address there is just a guess and may not be the right one (were you able to ping it before?) - if there is a Windows box nearby you can check it with IPCONFIG from a DOS prompt.
Once that's done, re-run the netstat -r - you should see a line with a destination of 0.0.0.0 or default.
You might also want to keep an eye on this thread - the OP is having similar problems and mentions a package that may be causing it.
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46
Original Poster
Rep:
hi guys,
Still can't connected to internet....
It seem like I am having the real problem here. This is my output when I used netstat -rn :
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.0.0 0.0.0.0 255.255.254.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 172.16.1.250 0.0.0.0 UG 40 0 0 eth0
I have already checked our DHCP default gateway from one of my windows machine. It shows me Default Gateway : 172.16.1.250 while our subnet mask : 255.255.254.0.
My ping to 172.16.1.250 is successfull and i got replied from it. This is my output when I tried to use ftp. And it takes so long to produce this result.
# ftp ftp.redhat.com
ftp: ftp.redhat.com: Temporary failure in name resolution
ftp>
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46
Original Poster
Rep:
hi guys,
its me again.. i still in my nightmare.. i am thinkin what's wrong with my linux machine. My another linux machine doesn't have any problem at all even we are in the same subnet mask and using the same gateway. My windows machine also have no problem at all.
My routing using route -n shows me no problem since it can route to the right place. I have tried what brundles asked me to test. The ping test. None of the test is working. When I ping to my router and another machine within the same subnet, my ping got replied.
I am thinkin also what is the cause to all of this problem? is it something missing.. files or something from my linux machine? or just only the configuration? is it about the DHCP server? But I have tried to connect my machine trough another connection port in my research lab, it still giving me the same headache.
i can't see the light at the end of the tunnel yet? my last alternatives is to reinstall my machine all over again. But before that I want to give myself another chance first...
Someone said DNS, give that a try... Ping a website like google from a machine with working internet and write down the IP address then ping the same address from your linux box and send your results in. If you get a response its a DNS problem if you dont its not
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.