View Single Post
  #5  
Old 14th October 2010, 03:27
Alf71 Alf71 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks - Ubuntu x Virtual Box x Windows x Networking

It works

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


Last edited by Alf71; 14th October 2010 at 03:44.
Reply With Quote