Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-26-2004, 08:48 PM
|
#1
|
Member
Registered: Nov 2003
Distribution: debian
Posts: 62
Rep:
|
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.
|
|
|
01-26-2004, 10:03 PM
|
#2
|
Member
Registered: Jul 2002
Location: Sydney
Distribution: Kubuntu Edgy
Posts: 74
Rep:
|
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
|
|
|
01-27-2004, 02:27 AM
|
#3
|
Member
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548
Rep:
|
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
|
|
|
01-27-2004, 07:12 AM
|
#4
|
Member
Registered: Nov 2003
Distribution: debian
Posts: 62
Original Poster
Rep:
|
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
|
|
|
01-27-2004, 07:23 AM
|
#5
|
Member
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548
Rep:
|
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
|
|
|
01-27-2004, 07:27 AM
|
#6
|
Member
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105
Rep:
|
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.
|
|
|
01-28-2004, 05:44 PM
|
#7
|
Member
Registered: Nov 2003
Distribution: debian
Posts: 62
Original Poster
Rep:
|
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
|
|
|
01-29-2004, 06:32 AM
|
#8
|
LQ Newbie
Registered: Jan 2004
Posts: 1
Rep:
|
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
|
|
|
01-29-2004, 06:45 AM
|
#9
|
Member
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105
Rep:
|
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 12:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|