免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 926 | 回复: 0

Arch linux中使用virtualbox的桥接方式连接网络 [复制链接]

论坛徽章:
0
发表于 2008-05-05 21:36 |显示全部楼层

                1.安装bridge-utils
sudo pacman -Sy bridge-utils
2.安装uml_utilities
sudo pacman -Sy uml_utilities
3.sudo modprobe tun,并将tun添加到/etc/rc.conf中去
4.sudo chmod 0666 /dev/net/tun
5.sudo tunctl -t tap0 -u  "your user name"
6.sudo ifconfig eth0 0.0.0.0 promisc
   sudo ifconfig tap0 0.0.0.0 promisc
7.sudo brctl addbr br0
8.brctl addif br0 eth0
9.brctl addif br0 tap0 #将tap0加入网桥
10.ifconfig tap0 up #激活tap0
11.sudo dhcpcd -t 30 -h "your user name" br0&
12.设置vbox中使用主机接口,名称为tap0即可
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19906/showart_674377.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP