Chinaunix首页 | 论坛 | 博客

  • 博客访问: 277146
  • 博文数量: 55
  • 博客积分: 1597
  • 博客等级: 上尉
  • 技术积分: 590
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-30 17:40
文章分类

全部博文(55)

文章存档

2016年(2)

2014年(5)

2013年(35)

2012年(5)

2010年(4)

2009年(4)

我的朋友

分类: LINUX

2013-01-04 19:52:07

环境:
主机:openSUSE 12.2
虚拟机:VirtualBox 4.1.22
虚拟的系统:ubuntu 12.04

step1: 设置VirtualBox
         1)   管理(F) --> 全局设定 (P)   或者  ctrl+g
         2)  选择“网络”
         3)  添加 “Host-Only”

        
         4) 取消DHCP

        
         5)  网卡选择 “Host-Only”

        

step2: ubuntu的网络设置

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.56.99
netmask 255.255.255.0
gateway 192.168.56.1


这样,主机就可以在没有连接网线的情况下,与虚拟系统连接。
主机使用 ifconfig eth0 192.168.56.90 设定IP,使之与虚拟系统为统一网段。
这样虚拟系统也可以访问主机了。
       

阅读(968) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~