|
|
按照http://gentoo-wiki.com/HOWTO:_VirtualBox设置:
- #vbox网桥设置
- #http://zh.gentoo-wiki.com/index.php?title=HOWTO_VirtualBox&redirect=no
- #the interface is really replaced by br0 for outgoing, so if you had dhcp here, you'll use dhcp in br0
- config_eth0=( "null" )
- #this specifies that interface vbox0 will be a tap interface and use the tunctl command to generate itself
- tuntap_vbox0="tap"
- #ALL interfaces part of a bridge should be null, otherwise oddities may occur.
- config_vbox0=( "null")
- # you can specify an owner of the interface if you want to run virtual box as a non root user
- #tunctl_vbox0="-u adm"
- #If you'd prefer a dynamic ip address for the machine, use
- #config_br0=( "dhcp" )
- config_br0=("192.168.2.10/24 brd 192.168.2.255" )
- routes_br0=("default via 192.168.2.1")
- #this specifies the briding information
- bridge_br0="eth0 vbox0"
- depend_br0() {
- need net.eth0
- need net.vbox0
- }
- brctl_br0=( "setfd 0")
复制代码
net.eth0 net.vbox0启动都没有问题。
start net.br0时,错误:
- network interface br0 does not exist
- Please verify hardware or kernel module (driver)
复制代码
当我把net.eth0的设置改为原来的
- config_eth0=("192.168.2.2/24 brd 192.168.2.255" )
- routes_eth0=("default via 192.168.2.1")
复制代码
net.br0可以启动,但是主机无法访问网络。 |
|