Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
network up but not resolving [FIXED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Mon Apr 19, 2004 11:25 am    Post subject: network up but not resolving [FIXED] Reply with quote

At the start of the weekend I had my netwok up and everything was great. I had a conference to go to and needed to bring my wirless usb adpter from my desktop, so I just unplugged it and took off (machine was on). I got back, plugged it back in, rebooted, and poof ... can't get to the network. Not sure if that story of just unplugging the adpter has anything to do with it, but I figured i'd mention it.

(note that I have a cron job to update my world every night, so there may have been an update that caused a problem)

It would appear that everything is working, except for the fact that I cant actualy get to the network.

lsmod lists my device driver (usbvnetr, from atmel wlan project).

ifconfig lists my device, with all correct settings. It even says I've successfully transmitted and recieved packets with no errors.

iwconfig lists my device, with the correct ESSID, AP, etc. the link quality, strenght, etc is all within the norms of my network.

This is where things don't look perfect ...

route hangs for a minute before it actually prints the routing table, route -n prints it immediately.

ping times out for all hosts on my network (and all outside).

So basically I am thinking that somehow my system is not able to resolve any hosts/ip addresses/hostnames.

There has been no recent changes I can think of that could relate to this, like recompiling kernel, changing network settings, etc.

Any ideas? I'm stuck in my dusty windows install until I can fix the problem :(

btw. I can most more info if you like. I just didn't want to post my systems life story if it wasn't needed.
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/


Last edited by count on Wed Apr 21, 2004 4:24 pm; edited 2 times in total
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Mon Apr 19, 2004 12:38 pm    Post subject: Reply with quote

Well, if you have a mobile phone, I presume you have a file like /etc/conf.d/net.(ppp0) associated with your wireless adapter. With
Code:
/etc/init.d/net.(ppp0)
you can start/stop/restart the connection. There are some things to know about ppp connections. Maybe you already know them (my apologises), maybe I am wrong (please correct me).
- by default there is a timeout, when connection is closed;
- your ISP may also close your connection after a period of inactivity;
- when the peer connection is established, the file /etc/ppp/ipup is parsed, the same when the connection goes down, /etc/ppp/ipdown.
I re-read your post and I saw you are having a wireless network adapter, so not related to mobile phone. In this case, I suspect you get your IP address using dhcp, from an dhcp server. The IP addresses are leased for a period of one week (usually), and this might change when you left...
But you were saying you rebooted... So you should have a new IP address. You could try to restart hotplug and net daemons.
Sorry for this post. Seems like I was talking to myself...
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Mon Apr 19, 2004 12:46 pm    Post subject: Reply with quote

Sorry ... it is a wirless 802.11b adapter, not ppp ..

I can start and restart net.eth0 without problem.

I don't use dhcp, I set a static IP. I double checked to make sure there wasn't already a device on that IP (that could have been taken while I was gone) and there isn't. Also, the static IP is outside the range that the DHCP on my router will assign.

Thanks anyways though!
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Mon Apr 19, 2004 1:38 pm    Post subject: Reply with quote

What happens if you ping a host in your local network by IP and/or by name?
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Mon Apr 19, 2004 1:45 pm    Post subject: Reply with quote

nada ... I've tried pinging my router, my internal server (running gentoo), and a few other computers on my network and nothing works. I also access my internal server by name (its setup in my /etc/hosts), and that didn't work either.
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Mon Apr 19, 2004 2:03 pm    Post subject: Reply with quote

Also, the network adapter is working in windows.
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Mon Apr 19, 2004 2:52 pm    Post subject: Reply with quote

I may have found what could have caused it ... My root partition was out of space!! ... grrrrr

But this still doesn't help me too much, possibly a config file was truncated or something.

Any idea which files I should be looking at based on what I've mentioned so far?

Also, I can ping myself (via localhost, 127.0.0.1, and 192.168.0.112 (the IP assigned to eth0, which corresponds to my wireless card)) .. but nobody else. And when I ping hosts by their hostname in /etc/hosts, ping won't let me Ctrl-C out of it.
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Mon Apr 19, 2004 4:55 pm    Post subject: Reply with quote

Well, in this case you should check /etc/hosts and /etc/resolv.conf. The first should hold the correspondence between IP and names in your local network. The second should hold the IP address of your gateway. I think that more important that this is the subnet mask of your network adapter. For this, check your /etc/conf.d/net.eth0 and set it up. If this seems OK, double check it! Pay special attention to the netmask and the gateway setting for this adapter!
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Mon Apr 19, 2004 11:54 pm    Post subject: Reply with quote

/etc/hosts and /etc/resolve.conf are both good.

The subnet mask is ok, the gateway is ok. Everything is as I had it before. I backup /etc/ nightly, and I got a backup from last thursday and restored it ... didn't work, same problem.

I'm thinking I should start rebuilding some packages. Any ideas which to start with? (networking related). I can download them on a separte PC, burn em to cdrw and load them into portage.

Thanks Cosmin for the suggestions!
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
c0r3dump
n00b
n00b


Joined: 19 Mar 2004
Posts: 14

PostPosted: Wed Apr 21, 2004 12:37 pm    Post subject: Reply with quote

Before you go doing all that, i would just boot off of a gentoo live cd and run net-setup eth0 and use dhcp. This way you can determine if you have bad hardware or a network configuration is off. If all of that goes well then you can re-intall your tcp/ip stack.

good luck :wink:
Back to top
View user's profile Send private message
count
Apprentice
Apprentice


Joined: 28 May 2002
Posts: 242
Location: Dalton, MA

PostPosted: Wed Apr 21, 2004 4:23 pm    Post subject: Reply with quote

Thanks for the reply c0r3dump ... I finally got it working!!! Although I'm still not sure what exactly was wrong (I only knew the side-effects and a possible cause).
_________________
- Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum