HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Network Configuration Server - Ubuntu 10.04 (http://www.howtoforge.com/forums/showthread.php?t=49335)

Alf71 9th October 2010 13:28

Network Configuration Server - Ubuntu 10.04
 
Hi

Thanks for this nice work.
However, I'm having a problem.
After installing Ubuntu server 10.04 and configuring the network (point 7, page 3, http://www.howtoforge.com/perfect-se...ispconfig-3-p3)

I cannot move further

vi /etc/network/interfaces

and than

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

/etc/init.d/networking restart

Nothing happens...
How do I move further and get out of the network configuration window?

Best regards!

Alf71 :D

falko 10th October 2010 19:47

Quote:

Originally Posted by Alf71 (Post 241401)
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

Are you sure that these are the correct network settings for your network? What's your router's internal IP address?

Alf71 10th October 2010 19:53

IP address
 
Hi

IPv4-Adresse . . . . . . . . . . : 192.168.0.100(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Lease erhalten. . . . . . . . . . : Sonntag, 10. Oktober 2010 19:41:49
Lease läuft ab. . . . . . . . . . : Sonntag, 17. Oktober 2010 19:44:07
Standardgateway . . . . . . . . . : 192.168.0.1
DHCP-Server . . . . . . . . . . . : 192.168.0.1

I have other problem:

Following the tutorial I cannot move further after installing text editor
and inserting the command

vi /etc/network/interfaces


in order to change DHCP into static.
How do I move further and get out of this network configuration window?
"/etc/init.d/networking restart" didn't work:

"Point 7 Configure The Network
Because the Ubuntu installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100):

vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, 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.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

Then restart your network:

/etc/init.d/networking restart"



Best regards

falko 11th October 2010 10:22

Take a look here: http://www.howtoforge.com/faq/12_15_en.html

Alf71 14th October 2010 02:27

Thanks - Ubuntu x Virtual Box x Windows x Networking
 
It works :D

One more question:

Today I installed the new Ubuntu Server 10.10 in my PC, running the latest version of VirtualBox on Windows 7 Ultimate 64 bit.

I was curious to find if it is possible to access the server from outside:

WORLD => INTERNET => ROUTER => PC => VIRTUAL PC => SERVER

Quite confusing all this:

NETWORK

So, first of all, I need to get a DDNS name.
I already have it: server.athome.com
It is pointed to a dynamic IP address, for example "0.0.0.0"

My router gateway works on 192.168.0.1 and my PC has a reserved static IP,
say 192.168.0.155

I cannot get through from outside of the network, to access my PC, so I thought, if I install UBUNTU SERVER 10.10 in a VirtualBox on it, I will be able to do it...

After installing my Ubuntu in VirtualBox, I tried to follow this part:

http://www.howtoforge.com/perfect-se...ispconfig-3-p3

vi /etc/network/interfaces
i
auto eth0
iface eth0 inet static
address 192.168.56.100
netmask 255.255.255.0
network 192.168.56.101
broadcast 192.168.0.255
gateway 192.168.56.1

ESC
:x

/etc/init.d/networking restart


vi /etc/hosts
i

127.0.0.1 localhost.localdomain localhost
192.168.0.1 CRAZY-PC.server.athome.com CRAZY-PC

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I think I need to change first the value
192.168.56.1 to 192.168.56.100

but I'm getting a READ ONLY WARNING...

And before it didn't work at all at:

aptitude update

Any hint?

Best regards

Alf71:D

http://www.metatranslations.com/ubuntu-vbox.png


All times are GMT +2. The time now is 17:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.