Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Ubuntu Server Trouble

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
Hal356's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: May 2007
Experience: Advanced
01-May-2009, 05:51 PM #1
Ubuntu Server Trouble
Hello everyone!

I have just set up a new server and installed the latest version of the Ubuntu Server edition onto it. Now I'm having technical difficulties (typical). Ughh. So I'm in need of desperate help.

Okay, so the big problem that I'm having is that I'm unable to connect to I believe anything outside the computer. I tried using commands to update, and commands to get a GUI on the system, however, they all just fail (in other words I notice the word "fail" multiple times). I attempted to change the /etc/network/interfaces file, and this is what I put in:

iface eth0 inet static
address 192.168.122.0
netmask 255.255.255.0
network 192.168.0.70
broadcast 192.168.0.1
gateway 192.168.0.1

I believe the original file had none of the options listed, and static was replaced with dhcp, but up above is the CURRENT status of that file.

and the /etc/resolv.conf file looks like this:

nameserver 192.168.0.1

Then when I do the command: sudo /etc/init.d/networking restart, I get this:

* Reconfiguring network interfaces . . .
SIOCADDRT: No such process
Failed to bring up eth0.

And something tells me that that isn't right. I obviously can't even connect remotely to this server via PuTTy on a Windows Vista machine. And I tried to ping google, and it couldn't find the host. I'm figuring that I entered the wrong numbers up there in the interfaces file, but I'm not sure where to find ANY of those numbers :-o It's driving me insane!!!!!!

Oh, and I have the server directly connected to a Motorola 3347 Qwest router thingey, which is also connected to the Windows Vista machine, and wirelessly connected to a Macintosh.

Any help and guidance would be much appreciated!! I'm sorry if I'm just being stupid or something, this is my first time attempting to set up a server, so it's all kind of new to me.
__________________
The key to everything is patience. You get the chicken by hatching the egg, not by smashing it.
JohnWill's Avatar
Computer Specs
Moderator with 96,644 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
01-May-2009, 07:34 PM #2
I'll move you over to where the Linux folks live.
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
02-May-2009, 07:45 AM #3
Hi Hal356,

First things first - i.e. setting up a server requires planning aforethought which appears to be lacking in this case, so your experience is not surprising. Setting up a server is a lot different than a desktop.

Starting from your router, it needs to be able to identify each computer on your network by a unique internal network address, and each computer needs to be able to identify the router by the same unique internal network address, i.e. one-to-many and many-to-one relationship. For instance, I have a hardware router with only one computer connected to it. My router's internal ip address is: 192.168.1.1 and my computer's internal ip address is 192.168.1.2 - very simple.

That said your internal network is more complex and you need to sort out what your other internal network addresses for your other computers are first, so that you do not name your Ubuntu server with an already in-use internal ip address as far as the router is concerned. One thing you may be able to do is to login to the router as admin if you have the admin password and the router's documentation. Then you can inspect what computers it may have connected, and be able to address what internal ip address is available for your Ubuntu server.

Your netmask of 255.255.255.0 appears to be fine. Try a broadcast value of 192.168.1.255. Try a nameserver in your /etc/resolv.conf file of: 192.168.1.1 and try gateway of 192.168.1.0 - assuming that 192.168.1.1 is the internal ip address of your hardware router on all computers of your internal LAN.

Check on your Windows Vista with the ipconfig command what your internal settings are - to the extent that it will tell you. I do not know which Mac you use, but if it is OSX, then it is probably like Unix so try the ifconfig command.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Hal356's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: May 2007
Experience: Advanced
02-May-2009, 09:42 AM #4
Hey, thanks man.

So I know I'm being the Ubuntu Server Dunce. Haha. Can you show me exactly what my files should look like? I think I'm putting in the wrong lines none the less.

Connection Information
DSL
-Up Connection
-Up
IP Address
-97.123.65.23
-IP Gateway
-67.42.200.217
Primary DNS Server
-205.171.3.65
resolver.qwest.net
-Secondary DNS Server
-205.171.2.65
resolver.qwest.net
Speed
-12122/894 (kbps)
-Line Attenuation
-14/6 dB

Router Information
Router Name
-Netopia
-Model
-3347-02
Serial Number
-136441742848
-MAC Address
-00:1f:c4:8f:c6:00
Software Version
-QM01-7.7.4r10


Local Network
IP Address
-192.168.0.1
-Ethernet
-Connected
Wireless
-Operational
-Privacy
-WEP - Manual
Wireless ID (SSID)
-SIMMONS-NT (broadcast)

Here is the user list to the router:

Ethernet Users
PC Name, IP Address, MAC Address
ALBAIHMILT01, 192.168.0.66, 00-19-b9-54-da-17
Di-PC, 192.168.0.70, 00-14-bf-56-b4-ea

Wireless SSID1 (SIMMONS-NT) Users
PC Name, IP Address, MAC Address
home, 192.168.0.67, 00-1e-e5-9c-a7-77
192.168.0.83, 192.168.0.83, 00-23-12-1a-e0-57
ALBAIHMILT01, 192.168.0.90, 00-19-d2-00-ad-3b
HarryG-PC, 192.168.0.65, 00-0f-66-6f-c7-bf


So yeah, if someone can just tell me what the file is supposed to look like I won't have too many issues, and we can pinpoint the problem (if there is one) more efficiently.

And if I need more information, please let me know.

Once again, I apologize for being the dunce of the Ubuntu Server.
__________________
The key to everything is patience. You get the chicken by hatching the egg, not by smashing it.
arochester's Avatar
Senior Member with 275 posts.
 
Join Date: Jan 2007
Experience: Intermediate
02-May-2009, 12:09 PM #5
Quote:
and commands to get a GUI on the system
Ubuntu Server doesn't have a gui on the CD...

Have you looked at e.g. http://howtoforge.com/set-up-ubuntu-...p-dns-ftp-mail ?
Hal356's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: May 2007
Experience: Advanced
02-May-2009, 01:59 PM #6
Yes, I know there isn't a GUI on the CD, I was trying to get the GUI off the internet but as you can clearly see I failed, unfortunately
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
02-May-2009, 04:13 PM #7
Hi Hal356,

As arochester recommended, download and install the Easy Hosting Control Panel and follow the directions on the 3 web pages from the link he posted - it does tell you what your files should look like - so, if by now, you have not looked at those web page(s), you should do so with all haste to help you solve your problem.

arochester posted link: Set Up Ubuntu Server With EHCP (LAMP, DNS, FTP, Mail) (3 web pages).

EHCP link: Easy Hosting Control Panel. Click on Download link in the left-hand side panel and follow directions to download.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Hal356's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: May 2007
Experience: Advanced
02-May-2009, 04:20 PM #8
Yes, thank you.

When I was starting the server update. I googled this page and followed it with careful precision. And yes, I got stuck on page 2 where it tells you to change the to Static IP, and I didn't know where I needed to find the numbers to put on there. And I just need to get past this part AND I WILL BE GOOD! I can clearly follow the directions on how to set up the rest of the server if I can just figure out this one little part. Like here is a quote from the beginning of the tutorial: "You will need to know the ip address you want to assign to the server, it's subnet mask, the default gateway and the ip for the dns server." and I need someone to tell me these numbers! Then I believe that if I follow the rest of the tutorial that I should be perfectly fine.

May you tell me the numbers I will need from above to setup the interfaces file, and what can stay, and what needs to be changed? I'm sorry if I'm being an idiot or something.

Thank you.

There are no error messages that appear now. All it says now is * Reconfiguring network interfaces . . .

However I am still unable to move onto the next step with the command apt-get update. It always ends with a long list of files that were unable to be retrieved.
__________________
The key to everything is patience. You get the chicken by hatching the egg, not by smashing it.

Last edited by Hal356 : 02-May-2009 05:25 PM. Reason: New error message.
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
02-May-2009, 06:46 PM #9
What is the content of your /etc/network/interfaces file, i.e.
$ cat /etc/network/interfaces

What is the output of the ifconfig command:
$ ifconfig

On your Mac and/or Windows, what is the output of your ifconfig/ipconfig commands?

Exactly, where are you stuck on page 2?

-- Tom
Hal356's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: May 2007
Experience: Advanced
02-May-2009, 07:53 PM #10
This is the content of the /etc/network/interfaces file:

# This file describes the network interfaces available on your system
# and how to activate them. For more informations, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.254
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1


The above is the contents of the /etc/network/interfaces file, and the output for the ifconfig is listed below:

eth0
Link encap:Ethernet HWaddr 00:e0:4d:bd:f7:89
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.0
inet6 addr: fe80::2e0:4dff:febd:f789/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8428 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:579654 (579.6 KB) TX bytes:3864 (3.8 KB)
Interrupt:220 Base address:0xe000

lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU :16436 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2364 (2.3 KB) TX bytes:2364 (2.3 KB)


And I am stuck in step 3. Install EHCP, I am right where you are supposed to type the command to get updates:

$ apt-get update

When I type that in, the output for a little while is 0% with some addresses near that percent, and after a little while, the rest of the output is basically like an off screen list of "Files that could not be Fetched".

Here is the ipconfig/ifconfig outputs for every other computer on the Network:

Windows Vista Machine One

Windows IP Configuration


Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5858:b9f5:fc06:70cb%9
IPv4 Address. . . . . . . . . . . : 192.168.0.70
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 10:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 11:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 9:

Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e50:4c5:1ec4:3f57:ffb9
Link-local IPv6 Address . . . . . : fe80::4c5:1ec4:3f57:ffb9%10
Default Gateway . . . . . . . . . : ::


Windows Vista Machine Two

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::c5bb:2985:762e:d44f%9
IPv4 Address. . . . . . . . . . . : 192.168.0.65
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 6:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 7:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 9:

Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e50:2ce4:3f19:3f57:ffbe
Link-local IPv6 Address . . . . . : fe80::2ce4:3f19:3f57:ffbe%10
Default Gateway . . . . . . . . . : ::

Windows XP Machine

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.90
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

Mac OSX Machine

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:23:32:93:83:9b
media: autoselect status: inactive
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:23:32:ff:fe:02:e9:22
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.83 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::223:12ff:fe1a:e057%en1 prefixlen 64 scopeid 0x6
ether 00:23:12:1a:e0:57
media: autoselect status: active
supported media: autoselect
__________________
The key to everything is patience. You get the chicken by hatching the egg, not by smashing it.

Last edited by Hal356 : 02-May-2009 10:01 PM.
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-May-2009, 08:56 AM #11
Hi Hal356,

First, let's test your network TCP/IP stack to see if it is working properly. Issue the command on the Ubuntu server aka ping the loopback address:
$ ping 127.0.0.1

If you can successfully execute this command, then the TCP/IP stack of your computer can talk to itself allowing you to rule out the Linux environment as a source of trouble.

Just as a curiosity on my part, try to ping the router, i.e.
$ ping 192.168.1.1

Next, try to ping the server's ip address (from itself) which you have setup as 192.168.1.254, i.e.
$ ping 192.168.1.254

If you can't ping the Ubuntu server's internal ip address then there might be a hardware error message that occurs on bootup with the network card - and you might have to run the network card diagnostics that came with your network card. Run the following command, i.e.
$dmesg | less
and check for problem messages.

Next, try to ping the ip address of another computer on your LAN, i.e.
$ ping 192.168.0.83
for the Mac, and for Windows Vista
$ ping 192.168.0.70

If you can ping the other other computers on your LAN, then the computers are functioning correctly at the data link level, if not then there is a data link level problem.

Also, try the inverse, i.e. from the Mac and Windows Vista computers, try to ping the Ubuntu server computer, i.e.
$ ping 192.168.1.254

Your /etc/resolv.conf file should contain at least(and your router should be setup to use the default DNS servers (primary, secondary) of your ISP provider in order to resolve Internet addresses):
nameserver 192.168.1.1

I have my router setup to use OpenDNS servers. Consult your router's documentation on admin login (don't forget to change the default password and remember it), and try to change its DNS servers for your WAN (Coax, Wireless and/or Ethernet):
208.67.220.220
208.67.222.222

What results did you get in each case?

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-May-2009, 06:33 PM #12
Here is a good reference for help:
/etc/network/interfaces Ubuntu Linux networking example.

Give it a shot to see if it will help solve your problems.

-- Tom
Hal356's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: May 2007
Experience: Advanced
10-May-2009, 02:42 PM #13
Hmm. Well, the only thing I did that was successful was testing the Network TCP/IP Stack:

$ ping 127.0.0.1
29 packets transmitted, 29 received, 0% packet loss, time 27993ms
rtt min/avg/max/mdev = 0.007/0.008/0.028/0.005 ms
PING 127.0.0.1 (127.0.0.1) 56 (84) bytes of data
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.029 ms

Everything else I attempted to do appeared to fail. When I attempted to ping the Router and the Server IP Address I got these errors:

connect: Network is unreachable

When I did the dmesg | less command, there was a HUGE text file that I had no idea what to look for in it.

When I attempted to ping the server from other computers, it appeared to send packets, however there was 100% packet loss.

I'm beginning to think this is a hardware issue now. Do I need to install an Ethernet driver for my Linux Server?

Here is my status of the router and all of it's information. When I attempted to change the router to static IP addresses, I lost my internet connections.

LAN Status

Router IP Address Subnet Mask DHCP Start Address DHCP End Address
192.168.0.1 255.255.255.0 192.168.0.64 192.168.0.254

DHCP Server Status On
DNS Server 205.171.3.65

Devices on LAN
IP Address MAC Address Name
192.168.0.70 00-14-bf-56-b4-ea Di-PC
192.168.0.67 00-1e-e5-9c-a7-77 home
192.168.0.83 00-23-12-1a-e0-57 192.168.0.83
__________________
The key to everything is patience. You get the chicken by hatching the egg, not by smashing it.
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
13-May-2009, 09:39 AM #14
Quote:
Originally Posted by Hal356 View Post
Hmm. Well, the only thing I did that was successful was testing the Network TCP/IP Stack:

$ ping 127.0.0.1
29 packets transmitted, 29 received, 0% packet loss, time 27993ms
rtt min/avg/max/mdev = 0.007/0.008/0.028/0.005 ms
PING 127.0.0.1 (127.0.0.1) 56 (84) bytes of data
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.029 ms

Everything else I attempted to do appeared to fail. When I attempted to ping the Router and the Server IP Address I got these errors:

connect: Network is unreachable

When I did the dmesg | less command, there was a HUGE text file that I had no idea what to look for in it.

When I attempted to ping the server from other computers, it appeared to send packets, however there was 100% packet loss.

I'm beginning to think this is a hardware issue now. Do I need to install an Ethernet driver for my Linux Server?

Here is my status of the router and all of it's information. When I attempted to change the router to static IP addresses, I lost my internet connections.

LAN Status

Router IP Address Subnet Mask DHCP Start Address DHCP End Address
192.168.0.1 255.255.255.0 192.168.0.64 192.168.0.254

DHCP Server Status On
DNS Server 205.171.3.65

Devices on LAN
IP Address MAC Address Name
192.168.0.70 00-14-bf-56-b4-ea Di-PC
192.168.0.67 00-1e-e5-9c-a7-77 home
192.168.0.83 00-23-12-1a-e0-57 192.168.0.83
Hi Hal356,

Ok, it looks like your internal network router ip address is 192.168.0.1 instead of 192.168.1.1, so, that should tell you that you should run the command:
$ ping 192.168.0.1

Try following the advice in my previous message and let us know what happens?

The message reads (goto that message for the link):
Here is a good reference for help:
/etc/network/interfaces Ubuntu Linux networking example.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 05:01 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.