[筆記] VirtualBox 網路設定

記下我的 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.

This entry was posted in hardy, ubuntu and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
  • Google Friend Connect

  • Just for you

    Powered by MyBlogLog
  • Meta