Virtual Box or Ubuntu?

Peter Garrett peter.garrett at optusnet.com.au
Tue Apr 29 17:12:30 UTC 2008


On Tue, 29 Apr 2008 13:37:00 -0300
Derek Broughton <news at pointerstop.ca> wrote:

> The outside world is _easy_ (with NAT) - it's trying to get at anything else
> on your LAN that is practically impossible!

I don't pretend to understand how this actually works, but I append
this screendump, transferred by scp to another machine on my LAN, from
a vbox virtual machine on this one ( miranda , IP 192.168.1.103 ):

[ in Vbox machine on miranda ]

tty6:inx at inx:~ $ ifconfig eth1 | grep inet
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe9a:e30f/64 Scope:Link
tty6:inx at inx:~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         10.0.2.2        0.0.0.0         UG    100    0        0 eth1
tty6:inx at inx:~ $ ping -c 2 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.

--- 192.168.1.100 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms

tty6:inx at inx:~ $ ssh peter at 192.168.1.100
peter at 192.168.1.100's password:
Linux prospero 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686
No mail.
Last login: Wed Apr 30 02:57:21 2008 from miranda
peter at prospero:~ $ logout


sshfs also works from the guest machine to other machines on the network.
What doesn't work is access to the virtual machine from the others. I suppose setting up a route 
to the virtual machine would work, but I haven't tried it. The other odd thing is that if I run
two virtual machines at once, they both have the same (10.0.2.15)  IP address.... struck me as very odd :)


-- 
Peter Garrett <peter.garrett at optusnet.com.au>




More information about the ubuntu-users mailing list