Debian server cannot connect to internet
I just installed Debian on an old Dell Dimension 3000, and I followed the instructions here: http://debianserver.wikidot.com/squeeze:start
to set up a home server. The first thing that told me something was wrong is when I couldn't ping anything. I have since changed my DNS to Google's (8.8.8.8 and 8.8.4.4), and ping is fine. However, apt-get doesn't do anything. It gets stuck at 0% [Working] whenever I try to install a package. I don't know what's wrong. My eth0 interface seems to be okay, but I just can't do anything internet-related yet. If it makes a difference, I couldn't make a wired connection when the PC had Windows on it either. |
Quote:
1 - Does this system have a DHCP server that it is supposed to be configured by or is it supposed to be using a static IP address? 2 - If it uses DHCP, does the DHCP configure the DNS? It may be helpful to post your /etc/network/interfaces so that we can see how you have things configured. It would also be be helpful to post the error messages that you are getting when you try to ping (e.g. no route to host, network unreachable, etc). What happens if you try to ping a numeric address (8.8.8.8 will work) via pinging via name? |
/etc/network/interfaces:
auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp Also, when I try to ping I get "unknown host." |
This confirms that it is DHCP configured. What does your resolv.conf look like? Unknown host says that it can't locate a DNS server. Does your DHCP list the name servers (this would be typical. I noticed you said "when you changed your DNS to google" you were able to ping. Where exactly did you change it? Clearly something is amiss in this regard. Did you forget to allow this machine to connect through a firewall or something perhaps? The inability to update could mean that traffic is being blocked (firewalled) or it can't resolve the address to establish a connection. I would suggest looking through the log files, e.g. /var/log/messages and others for any indication of trouble.
|
noob having problems configuring a Debian home server
In my last post, I had trouble getting my server to download packages and ping servers. Since then, I changed my DNS to Google's and stayed with DHCP and a dynamic IP on my home network, and for some reason now I can download packages and ping servers.
Now I need to connect to my server from my PC. First of all, here's my setup: Desktop: Apple eMac PowerPC G4, Debian with LXDE Server: Dell Dimension 3000 Pentium 4, Debian with no GUI. My two main problems: I cannot successfully set a static IP address on my server; I cannot set up SSH functionality between my PC and my server. My router IP is 10.0.0.1, and I've tried to assign my server to a few different IPs starting with 10.0.0.x. I also tried a couple different DNS addresses, including my default ISP's DNS and Google's public DNS. I also tried to make my server the DNS server as suggested in the Debian server wiki, and none of these configurations worked. The only way I can maintain any kind of internet connection is by keeping a dynamic IP address. When I try to SSH, I either get "connection refused" or "host unknown." I think my problem is twofold: I don't have a solid grasp on the syntax when trying to make an SSH connection via Terminal, and no matter how strictly I copy online instructions for editing the configuration files, I still don't get it right. I eventually want to share files with and remotely access media stored on my server, but first I need to figure out basic connections. I've spent two days looking at various sources for instructions on how to do these things, but I can't seem to get it right. What am I doing wrong? |
Regarding the static IP, what have you done?
My Debian home server has one: here are the settings from /etc/network/interfaces in case they can help: Code:
# The loopback network interface |
All times are GMT -5. The time now is 06:10 PM. |