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 01-26-2004, 08:48 PM   #1
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Rep: Reputation: 15
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

Last edited by c0uchm0nster; 01-26-2004 at 08:49 PM.
 
Old 01-26-2004, 10:03 PM   #2
mickboda
Member
 
Registered: Jul 2002
Location: Sydney
Distribution: Kubuntu Edgy
Posts: 74

Rep: Reputation: 15
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
 
Old 01-27-2004, 02:27 AM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
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
 
Old 01-27-2004, 07:12 AM   #4
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
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
 
Old 01-27-2004, 07:23 AM   #5
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
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
 
Old 01-27-2004, 07:27 AM   #6
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
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.
 
Old 01-28-2004, 05:44 PM   #7
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
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
 
Old 01-29-2004, 06:32 AM   #8
TheBHM
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
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
 
Old 01-29-2004, 06:45 AM   #9
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
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)
 
  


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
can't ping localhost, Internet works fine drowstar Linux - Networking 5 01-04-2005 03:09 PM
X croaks at 640x480, but Windows works fine. Luke727 Debian 6 05-28-2004 06:19 PM
Samba Works, Windows can access Linux Side but ............ srikz Red Hat 10 12-02-2003 09:24 AM
printer works fine in windows but is slow under linux nef Linux - Hardware 4 09-28-2003 02:39 PM
ftp says login incorrect - anonymous access works fine?!? wwwgeek Linux - Newbie 2 09-15-2001 12:46 PM

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

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