No internet access in linux, works fine in windows
Hi
In windows my network and internet works fine using DHCP (I can also use a static IP if I want). When I boot to PHLAK (although I had the same problem in fedora when it was installed) the network card is detected fine, DHCP works fine and it get's an IP and everything, and I can ping other machines on the LAN. However I cannot ping anything on the web, I cannot use any web services (like http, aim, ftp etc), and I cannot detect any networked machines through samba. I get the same problems when I set a static IP. flushing iptables doesnt help at all... ifconfig looks fine and shows that the system has an ip on eth0 whether I use dhcp or static. my network card is an integrated nforce2 nic. my network card connects straight to a router. and I used to have linux working fine with the internet on the same computer and same router so I know it's just a wrong setting somewhere, i just cant think of what or where thanks in advance [edit] eth0 is the only device that exists (besides lo) and the only one detected... so it's not a rogue network device conflicting |
Is there a firewall or something that needs setting/ unsetting? (Yes, I don't know what I'm talking about, just trying to suggest stuff that might help.)
Mick |
sounds like a dsn problem that i was having recently
in windows look at your network details and see what your dns servers are then in linux open /etc/resolv.conf now clear anything in that file and right search <dnsserver> nameserver <dnserver> now save the file and just open up konqueror and go to yahoo.com givin that you can ping your router and you can ping other computers on your lan let me know if this solves your problem |
mickboda - nope, iptables is the only firewall i've got and like i said i flushed them
citrus - tried that (even though when i went to set the ip to a static it already had the nameserver information there...) and it didn't work correct me if im wrong but dns just deals with converting user friendly url's to their real ip addresses yes? if that's the case i cant even access google or my isps website by their ip addresses... and i did notice one thing that i thought was strange - when i get dhcp info it sets my "broadcast address" to 192.168.0.255, is this normal? i dont think i've ever seen a broadcast address with a 255... also: i even tried setting my router (which i can ssh into by the way) to forwards ALL traffic to the linux box and still had no success - so i know it's not like the routers blocking anything thanks for your help |
ok well for you a static ip i would try all this
# ifconfig eth0 <yourlanip> netmask 255.255.255.0 then # route add default gw <yourroutersIP> and make sure what i told you before about your resolv.conf file in your resolv.conf files the dns server shouldn't have anything to do with your lan so it prolly shouldn't start with 192.168.x.x if that is what your lan is set at |
Sounds to me like your linux system does not have a default route established. Run 'netstat -rn' and look for a line that starts with "0.0.0.0" If none exists, you have no default route and that is the problem. Maybe the DHCP server is not (as it should) providing a default route. If you do see this line, does the second field appear to be pointing to the IP address of your router?
And yes, the broadcast address looks fine. |
thanks for all your help guys...
linux nh, one of my linux os' did have the 0.0.0.0 problem, but restarting eth0 fixed that problem (still couldnt connect though) in the end i couldnt get dhcp to work (which was no big deal), even though i have had it working on all the same hardware/network with a different os install *shrug*... so i set a static ip... shut down, and restarted eth0, and for some reason it worked, and even after a reboot it still works - i had to use the same method on both os' odd as that is... anyways, thanks again |
Smae Problem...
I have the same problem, but it is not as easily resolved. I looked through the boards here and several other places and although I found alot of people reporting the same issue I have not found a working solution yet. This is my issue....
I have the same IP, DNS, Gateway all the good stuff on both a Redhat 8 and a windows XP system. I have plugged them in at seperate times of course to the same port and the windows box comes up fine and the linux box will not. I have a second network here and am able to get the linux box up and running fine on that. Which would be fine but I NEED to have it running on this network. It appears that the linux box will not resolve IP's but the issue is more than that. The eth0 activates fine and is up but I can only ping myself...nothing on the lan or outside. I getting timed put attempting to resolve host names when attempting to browse through a web browser and get the same thing if attempting to get straight to IP address of said web site. I didnt set up the network I am trying to access, is it possible that for some reason *nix boxes are not permitted on the network? It seems like a stupid question but I can see what is wrong. I have tried both DHCP and a static IP with same results. Any information or suggestions on what I have missed here would be greatly appreciated. TheBHM |
it might make it easier if we could see the output from following commands
ifconfig -a netstat -in netstat -rn It may be that after you plug the linux box in, you need to tell it to start the interface and get an address with the 'pump' command (see man page for details) |
All times are GMT -5. The time now is 05:30 AM. |