Network problems with Ubuntu Server 7.1
airbornflght
Houston, TX Icrontian
I'm really running into some issues here. I'm not sure what is going awry, but when I installed ubuntu server 7.1 it would never be able to use DHCP to get network information. So at first I just typed everything in outside of the routers DHCP lease range. I gave it an ip of 192.168.0.251. I also typed in the gateway and net mask and all the other good stuff. Well it would go, but when it got to the part of the install that it scanned the remote server it would just hang.
So I restarted the install and said configure network settings later, leaving the network cable unplugged. So I get through the install and now I'm trying to get a connection to the internet. I have the network stuff setup from editing vi /etc/network/interfaces. Then I restarted the networking. I also edited sudo vi /etc/hosts and rebooted the computer. I checked my router and it is listed under the attached devices. Excellent, or so I thought. I go back to try and 'sudo apt-get update' and it say that it can't resolve the dns names. So I'm obviously not getting a live connection to the internet, just my network.
I have a netgear FA311 NIC that I just bought for it. The computer is a 333 Mhz Pentium II with 256 mb of ram. All I want to do is use this as a dev server.
All I need is apache, php and mysql. I also want ruby and python, but that can come later. I also am going to install webmin and ssh so that I can do everything from my room and stick this old tank (it literally weighs ~35 pounds) in the network closet up stairs.
The problem is I can't install ssh or webmin and the other packages without a live connection to the internet, if I read correctly. I thought this would be a bit easier.
Can some unix guru help me out?
So I restarted the install and said configure network settings later, leaving the network cable unplugged. So I get through the install and now I'm trying to get a connection to the internet. I have the network stuff setup from editing vi /etc/network/interfaces. Then I restarted the networking. I also edited sudo vi /etc/hosts and rebooted the computer. I checked my router and it is listed under the attached devices. Excellent, or so I thought. I go back to try and 'sudo apt-get update' and it say that it can't resolve the dns names. So I'm obviously not getting a live connection to the internet, just my network.
I have a netgear FA311 NIC that I just bought for it. The computer is a 333 Mhz Pentium II with 256 mb of ram. All I want to do is use this as a dev server.
All I need is apache, php and mysql. I also want ruby and python, but that can come later. I also am going to install webmin and ssh so that I can do everything from my room and stick this old tank (it literally weighs ~35 pounds) in the network closet up stairs.
The problem is I can't install ssh or webmin and the other packages without a live connection to the internet, if I read correctly. I thought this would be a bit easier.
Can some unix guru help me out?
0
Comments
Secondly, what did you edit in the hosts file?
Did you get an output from ifconfig?
That is what it says, but I don't know how I would test to see if it is seeing the internet. is there anything I can do from the CLI to.... scratch that.
I am pinging google, I typed in a resolved ip that i got from the windows ping utility (64.233.167.104) and I am getting replies. So how do I get dns/hostnames to resolve. This seems to be the issue. I have two dns servers from my isp (dedicated fiber) is there a place to set those? Shouldn't it be getting those from the gateway(router)?
I just ended the ping and I have a 43% packet lost out of 115, 65 were received. So that is a little interesting. Our connection has been flaky lately but I think that is the router's fault. And I didn't think it was that flaky
Switch back to DHCP and see if it all just works. If you want to keep the static IP you need to edit /etc/resolv.conf and add your dns servers.
I pinged both a local computer(my workstation) and a remote computer(google server) with 100 packets. The local computer had no packet loss, the remote computer had 21% packet loss. What gives? Obviously it's the router/gateway that is being flaky, I guess it could also be the transceiver that is old as balls, but I doubt it.
How do I get this thing to resolve host/DNS names? I'm litterally getting drove up a wall by this. I wanted to get ssh and webmin installed and tuck the computer away in a networking closet.
Would I list my gateway or my ISP's dns servers?
I just opened that file in vi and it is a new file. So it wasn't there.
You'll need to set your gateway and dns servers. Why don't you go back to DHCP, since your router is already handing that information out?
remove the line "192.168.1.101 Server1"
Edits to networks:
Remove all your hand typed addresses
change "iface eth0 inet static" to "iface eth0 inet dhcp"
This is assuming you have a dhcp client (dhcpcd for example).
you can type "sudo apt-get -s dhcpcd" to see if you need to install this application.
After you make the changes restart your network device and see what happens.
"sudo /etc/init.d/networking restart"
**Edited for Ubuntu specific config**
http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html
Google is your friend, linux n00b
You could also use no-ip.com's client (http://www.no-ip.com/downloads.php) that updates no-ip.com every time your server address changes. Do an apt-get -s no-ip and see what you can find.
We have a static external ip address. We are on a dedicated 10/1 fiber line. (which is weird because I'm downloading at a blazing 8KB/s..I blame the cheap ass router)
Besides, I don't want the server to be visible from the outside. I just want a static internal ip address so that my router isn't always handing out different ip's to this server. That way I can remote into it and do work.
It won't be public with the no-ip tool. Your server will report it's address, 192.168.1.101 for example. When you connect to airborn.no-ip.com the name will resolve to that private IP. You will be able to connect, but that address has no meaning to anyone on the other side of your router.
is there a way to just set a static ip? I thought if I put it outside of the routers dhcp range then I'd be fine. Right now I'm downloading at a wholping 15 kB/s (tops). damn gamers. I'd like nothing more than to boot them off the network. I have qos with port 80 tcp/udp traffic the highest, but the poor thing can't handle the traffic.
I read the how to, I'll try that. But is there a reason why my settings didn't work when I had them entered correctly, or is there more to it that I'm not seeing?
3 hours and all my updates should be downloaded... 10kB/s sucks big time when you have 100mB to download.
I have ssh and webmin working. It is up in the network closet and I'm working on it right now. Right now I'm trying to create a share to the apache directory and get bandwidthd to work.
Am I correct in assuming bandwidthd will track bandwidth usage for everyone on the network (all on same subnet).
I think you would have to be the router or on a hub to see everyone else's traffic. Your router's built in switch is not going to broadcast every packet to your server.
We are on a switch. But those don't broadcast every packet though. I'll try it. you never know.