記下我的 VirtualBox 網路設定
安裝
sudo apt-get install uml-utilities bridge-utils
/etc/network/interfaces
auto lo
iface lo inet loopback
name Loop interface
auto br0
iface br0 inet static
pre-up ifconfig eth0 down
post-up ifup eth0
address 192.168.22.2
network 192.168.22.0
netmask 255.255.255.0
broadcast 192.168.22.255
gateway 192.168.22.1
bridge_ports eth0
auto eth0
iface eth0 inet manual
name Ethernet LAN card
/etc/vbox/interfaces
#sudo VBoxAddIF vbox0 $USERNAME br0
vbox0 pctao br0
reboot, vbox0 is ready for you.





