使用Fedora或Ubuntu作为主机,并且两端均已关闭防火墙(vbox guest&host),我该怎么办才能使用NAT接口访问来宾计算机,就像使用桥接接口一样?(仅来自vbox主机!)
更新:ifconfig
在主机上:
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:41:56:6B:78:4E
inet addr:192.168.1.2 Bcast:.192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:271850 errors:0 dropped:0 overruns:0 frame:0
TX packets:144494 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:256776500 (244.8 MiB) TX bytes:10670238 (10.1 MiB)
Interrupt:16 Memory:fc500000-fc520000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:77698 errors:0 dropped:0 overruns:0 frame:0
TX packets:77698 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104227086 (99.3 MiB) TX bytes:104227086 (99.3 MiB)
vboxnet0 Link encap:Ethernet HWaddr 0A:00:27:00:00:00
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)