vbox网桥设置
时间:2007-08-20
来源:互联网
#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")
start net.br0时,错误:
network interface br0 does not exist Please verify hardware or kernel module (driver)
config_eth0=("192.168.2.2/24 brd 192.168.2.255" ) routes_eth0=("default via 192.168.2.1")
作者: 食古不化 发布时间: 2007-08-20
另外,我的主机的IP如何设置?不用设置?已经设置?
对网桥的看来还是不明白的。
作者: 食古不化 发布时间: 2007-08-20
http://www.gentoo.org/doc/zh_cn/hand...ap=3#doc_chap7
作者: zhou3345 发布时间: 2007-08-20
我又试验了,一下。
restart eth0 vbox0 br0就好了?似乎是模块没有加载?
作者: 食古不化 发布时间: 2007-08-20
作者: jjj311 发布时间: 2007-08-20
谢谢2位。
我正是找到了jjj311的译贴才又找原贴看的。
作者: 食古不化 发布时间: 2007-08-20
dhcp_eth0="nodns nontp nonis"
config_eth1=("null")
config_tap11=("null")
tuntap_tap11="tap"
tunctl_tap11="-u william"
config_br0=( "192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" )
bridge_br0="eth1 tap11"
brctl_br0=( "stp off" )
depend_br0() {
need net.eth1 net.tap11
}
我的配置:
eth0 外网
eth1 内网,做 bridge
tap11 是给 vbox 用的。
br0 就是 内网bridge 了。
作者: 晨想 发布时间: 2007-08-21
# /etc/init.d/net.eth0 restart && /etc/init.d/net.vbox0 restart && /etc/init.d/net.br0 restart
楼上:
我只有一个网卡呀。 你的内外网啥意思?你的内网的eth1也是虚拟的一块网卡?
作者: 食古不化 发布时间: 2007-08-21
# /etc/init.d/net.eth2 restart && /etc/init.d/net.vbox0 restart && /etc/init.d/net.br0 restart * Service net.eth2 stopping * Service net.eth2 stopped * Service net.eth2 starting * Service net.eth2 started * Service net.vbox0 stopping * Service net.vbox0 stopped * Service net.vbox0 starting * Service net.vbox0 started * Service net.br0 starting network interface eth2 does not exist Please verify hardware or kernel module (driver) [ !! ] * ERROR: net.br0 failed to start
作者: 食古不化 发布时间: 2007-08-21
算了,还是NAT吧。
作者: 食古不化 发布时间: 2007-08-21
还是这个来的简单,呵呵。原来在qemu就是这么搞的。用的huahua的配置。
真是学艺不精,换个马甲就不知道怎么办了。
作者: 食古不化 发布时间: 2007-08-21
作者: 食古不化
http://wangyuanzju.blog.163.com/blog...9200755199573/
还是这个来的简单,呵呵。原来在qemu就是这么搞的。用的huahua的配置。 真是学艺不精,换个马甲就不知道怎么办了。 |
两种方法论坛里都曾讨论过的。看JackeyKing的:
http://www.linuxsir.org/bbs/showthre...=291517&page=4
作者: zhou3345 发布时间: 2007-08-21
作者: 食古不化 发布时间: 2007-08-24
作者: 晨想 发布时间: 2007-08-25
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28