LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 894|回复: 2

Using host interface networking (the Arch way)

[复制链接]
发表于 2008-11-1 23:46:31 | 显示全部楼层 |阅读模式
在官方的WIKI上看到的这种方式:

编辑以下这几个文件然后重新启动:

/etc/conf.d/bridges
/etc/rc.conf
/etc/vbox/interfaces

Ready? Let's go!

/etc/conf.d/bridges:
bridge_br0="eth0"  #  Put  any  interfaces  you  need.
BRIDGE_INTERFACES=(br0)

/etc/rc.conf:
把bridge添加到MODULES

MODULES=(  <your  other  modules>  bridge)

在网络配置选项,做如下更改:
lo="lo  127.0.0.1"
eth0="eth0  up"  #  If  you  have  more  interfaces  in  the  previous  file,  more  lines  like  "if_number="if_number  up"  here.
br0="dhcp"  #  Maybe  you  have  some  static  configuration...  I  use  DHCP.
INTERFACES=(lo  eth0  br0)

/etc/vbox/interfaces (you can set up more interfaces if you want. Sky is the limit!):

vbox0  your_user  br0  #  Be  sure  that  your  user  is  in  the  vboxusers  group.

Reboot and enjoy!

NOTE: Remember to set up your virtual machine with proper network configuration.

NOTE: If you have any issue, make sure that you have the bridge-utils package installed and vboxnet daemon loaded
发表于 2008-11-2 14:02:39 | 显示全部楼层
and how to setup on Vbox itself ?
回复 支持 反对

使用道具 举报

发表于 2009-1-5 00:08:55 | 显示全部楼层
Too much steps! Don't use the arch way.

Just add vboxnetflt to your MODULES section in rc.conf and choose Host Interface Networking in the virtual machine configuration.
  1. $ sudo modprobe vboxnetflt
  2. $ VirtualBox
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表