Ich habe bei mir Virtualbox 4.1.12 installiert. Auf meinem PC habe ich die Desktopversion ubuntu 12.04 und in der Virtualbox ist als Guest ein ubuntu server 12.04 installiert. Ich kann aus mit ubuntu server als Guest den Host pingen. Umgekehrt aber nicht. Kann mir da vielleicht jemand helfen?
Eingestellt ist NAT siehe hier: Virtualbox.png herunterladen
ifconfig im Guest ergibt: Virtualbox1.png herunterladen
ifconfig im Host liefert:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | root@stargate:~# ifconfig
eth0 Link encap:Ethernet HWaddr xxxxxxxxxxxxxxxxxxx
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16
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:920 errors:0 dropped:0 overruns:0 frame:0
TX packets:920 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:69231 (69.2 KB) TX bytes:69231 (69.2 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:109.44.131.22 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:20098 errors:0 dropped:0 overruns:0 frame:0
TX packets:17742 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:22233498 (22.2 MB) TX bytes:1894353 (1.8 MB)
|
Die /etc/network/interfaces im Host sieht wie folgt aus:
1 2 3 4 5 6 7 8 | auto lo
iface lo inet loopback
#neu eingefügt:
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
|
und die /etc/hosts im Host sieht wie folgt aus:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | GNU nano 2.2.6 File: /etc/hosts Modified 127.0.0.1 localhost 127.0.1.1 stargate 192.168.56.101 test test.atlantis.ag # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
Im Guest sieht die /etc/network/interfaces wie folgt aus: Virtualbox2.png herunterladen
2004 – 2013 ubuntuusers.de • Einige Rechte vorbehalten