Linux下Virtualbox桥接网络配置
发布时间:2008-07-01 07:55:44 来源:赛迪网 网友评论 0 条 1 安装必须软件
sudo apt-get install uml-utilities bridge-utils
2 添加本人帐户到软件组
sudo gpasswd -a bruce uml-net
3 修改interface文件内容如下
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bruce
auto tap1
iface tap1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bruce
auto tap2
iface tap2 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bruce
auto br0
iface br0 inet static
address 192.168.1.188
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_maxwait 0
bridge_ports all tap0 tap1 tap2
auto eth0
allow-hotplug eth0
iface eth0 inet manual
up ifconfig eth0 0.0.0.0 promisc up
4 重启机器配置生效!
以上配置是因为我的网络环境是静态IP的环境,所以虚拟机的IP全都是静态IP,如果网络环境中有DHCP服务器配置可以简化一下,不过我是用虚拟机做实验的,喜欢IP是固定的,所以配置如上。
sudo apt-get install uml-utilities bridge-utils
2 添加本人帐户到软件组
sudo gpasswd -a bruce uml-net
3 修改interface文件内容如下
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bruce
auto tap1
iface tap1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bruce
auto tap2
iface tap2 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bruce
auto br0
iface br0 inet static
address 192.168.1.188
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_maxwait 0
bridge_ports all tap0 tap1 tap2
auto eth0
allow-hotplug eth0
iface eth0 inet manual
up ifconfig eth0 0.0.0.0 promisc up
4 重启机器配置生效!
以上配置是因为我的网络环境是静态IP的环境,所以虚拟机的IP全都是静态IP,如果网络环境中有DHCP服务器配置可以简化一下,不过我是用虚拟机做实验的,喜欢IP是固定的,所以配置如上。
- 推荐阅讯
- Samba服务器安装配置过程介绍
- Red Hat首席执行官:微软仍极具侵略性
- Linux下Virtualbox桥接网络配置
- Linux服务器网卡驱动安装及故障排除
- linux下安装最新apache2.0.52+php5+gd2+mys
- 双系统删除Linux 启动系统停在grub
- 隔墙有耳 Linux系统下的网络监听技术
- 四步轻松搞定Linux下WPA无线上网
- Linux操作系统网卡安装指南
- 挑战微软,Sun升级Linux桌面系统
- 阅读排行
- 1.Windows外衣Linux心 红旗桌面版详测
- 2.扮酷你的桌面 Linux超靓壁纸下载(多图)
- 3.Linux安装流程
- 4.浅谈Linux的内核
- 5.RedHat Linux9.0安装实例(1)
- 6.ARM的嵌入式Linux移植体验之基本概念
- 7.Linux安装要点
- 8.红旗Linux桌面版5.0BETA版OS
- 9.如何在大硬盘上安装Linux
- 10.RealPlayer流媒体播放器Linux版
- 专题教程
- Windows Server-Windows Server文档-Windows Server新闻-Windows Ser PostgreSQL-PostgreSQL文档-PostgreSQL新闻-PostgreSQL专家
- WebLogic-WebLogic文档-WebLogic新闻-WebLogic专家 FreeBSD-FreeBSD文档-FreeBSD新闻-FreeBSD专家
- Linux-内核 GUI KDE Gnome DNS FTP 安全 安装-Linux专区 Windows-AD IIS ServerCore 虚拟化 安全 HPC-Windows专区
- 大话G游 专题:手机病毒揭密
- ARP攻击防范与解决方案 路由故障处理手册
