橋接網路在帶有 ubuntu 12.04 主機和 ubuntu 11.10 來賓的 Virtual Box 4.2.8 中無法運作

橋接網路在帶有 ubuntu 12.04 主機和 ubuntu 11.10 來賓的 Virtual Box 4.2.8 中無法運作

非常好的文章,但對我來說有一個問題。我正在使用虛擬盒 4.2.8 與 ubuntu 12.04 主機和 ubuntu 11.10 來賓。我無法在主機和訪客之間設定橋接網路。這裡我貼上介面的配置。 ubunutu12.04主機上的配置

auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.56.22
netmask 255.255.255.0   
broadcast 192.168.56.255
gateway 192.168.56.1
bridge_ports eth0
bridge_maxwait 0

auto eth0
iface eth0 inet manual

對於 ubuntu 11.10 guest 虛擬機,我選擇了橋接適配器,並在名稱下選擇了 eth0 介面。訪客乙太網路介面的配置是

auto eth2
iface eth0 inet static
address 192.168.56.23
netmask 255.255.255.0
broadcast 192.168.56.255
gateway 192.168.56.1

但當我 ping 時它不起作用,它只是說目標主機無法訪問。請幫忙

相關內容