Meu sistema operacional host é o Windows XP (SP3), o sistema operacional convidado é o Ubuntu 14.04 e o virtualBox é o 4.3.
Eu quero que XP
e Ubuntu
conversem entre si, então escolho usar bridge adapter
network.
XP
:
Windows IP Configuration
Host Name . . . . . . . . . . . . : cheguangai
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Adaptador Ethernet Conexão local:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Atheros AR8151 PCI-E Gigabit Ethernet Controller
Physical Address. . . . . . . . . : 54-04-A6-9A-E0-25
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.8.92
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.8.1
DNS Servers . . . . . . . . . . . : 192.168.8.1
Rede Host-Only do VirtualBox para adaptador Ethernet:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-00-8C-9E
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.211.66
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Então, adiciono estas linhas a seguir em /etc/network/interfaces
:
auto eth0
iface eth0 inet static
address 192.168.8.98 # Arbitrary free static IP
netmask 255.255.255.0
gateway 192.168.8.1
Após a reinicialização da rede: /etc/init.d/networking restart
, ainda não consigo acessar um site no Ubuntu.
No Ubuntu, ifconfig eth0
imprime estes:
cheguangai@cheguangai-VB:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:24:27:ed
inet6 addr: fe80::a00:27ff:fe24:27ed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25891 errors:0 dropped:0 overruns:0 frame:0
TX packets:2597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1993335 (1.9 MB) TX bytes:532773 (532.7 KB)
Então, o que devo fazer?