I re-visited the RHEL study material and setup the environment again, noted down the procedure.

1, copied the *.vdi (rhel6std.vdi and RHEL6-Student.vdi) file from Lenovo ThinkPad T400 to my new Lenovo ThinkPad X1, created the new machine by importing the *.vdi, no need to install the system again.

2, setup the network at Linux Instructor and Linux Student

In VirtualBox Manager, File->Preferences...->Network, to create "VirtualBox Host-Only Ethernet Adapter #2" and "VirtualBox Host-Only Ethernet #3".

The Adapter #2 leave it as default,



The Adapter #3 set as below, server address allocated as 192.168.18.100, server mask as 255.255.255.0, address range as 192.168.18.101 ~ 192.168.18.254:



In Linux-student->Machine->Settings, set as below,



In Linux-Instructor->Machine->Settings, set as below,



In Windows, the network configuration as below,



Network configuration on Linux-Instructor, as I cloned the machine, I didn't change anything and tried to test the network connection, but failed, the configuration as below,

/etc/sysconfig/network-scripts/glsorig-ifcfg-eth0

DEVICE="eth0"

BOOTPROTO="static"

DNS1="192.168.0.254"

HOSTNAME="instructor.example.com"

HWADDR="00:0C:29:65:C0:CE"

IPADDR="192.168.0.254"

MTU="1500"

NETMASK="255.255.255.0"

NM_CONTROLLED="yes"

ONBOOT="yes"



/etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0

BOOTPROTO=none

IPADDR=192.168.0.254

NETMASK=255.255.255.0

DNS1=192.168.0.254

HOSTNAME="instructor.example.com"

IPV6INIT=no

NAME="Bridge eth0"

NM_CONTROLLED=no

ONBOOT=yes

PEERNTP="no"

DELAY=0

TYPE=Bridge

USERCTL=no



/etc/sysconfig/network-scripts/ifcfg-br0:0

# gls remote.test interface

DEVICE=br0:0

IPADDR=192.168.1.254

NETMASK=255.255.255.0

TYPE=Ethernet

BOOTPROTO=none

IPV6INIT=no

USERCTL=no



/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=none

DNS1=192.168.0.254

HOSTNAME="instructor.example.com"

IPADDR=192.168.0.254

MTU=1500

NETMASK=255.255.255.0

NM_CONTROLLED=yes

ONBOOT=yes

BRIDGE=br0

TYPE=Ethernet

HWADDR=08:00:27:04:C7:4B

IPV6INIT=no

USERCTL=no



/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

BOOTPROTO=dhcp

ONBOOT=yes

TYPE=Ethernet

IPV6INIT=no

USERCTL=no



/etc/sysconfig/network-scripts/ifcfg-lo

DEVICE=lo

IPADDR=127.0.0.1

NETMASK=255.0.0.0

NETWORK=127.0.0.0

# If you're having problems with gated making 127.0.0.0/8 a martian,

# you can change this to something else (255.255.255.255, for example)

BROADCAST=127.255.255.255

ONBOOT=yes

NAME=loopback



Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.

Bringing up interface eth1: Device eth0 does not seem to be present, delaying initialization.

As below,



Delete the file /etc/udev/rules.d/70-persistent-net.rules, by commands:

mv 70-persistent-net.rules 70-persistent-net.rules.bak

reboot


encountered below problems,



change the MAC_address in the ethernet configuration file as required, by commands,

ifconfig -a                                    #this is to get the MAC address of the etho0

vim /etc/sysconfig/network-scripts/ifcfg-eth0   #modify the MAC address in the configuration file


service network restart

For Linux-Instructors network configuration, I configured all and I am not sure which file makes it work.

Network configuration on Linux-Student, as below,

[student@server1 Desktop]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=none

IPADDR=192.168.0.101

NETMASK=255.255.255.0

ONBOOT=yes

GATEWAY=192.168.0.254

TYPE=Ethernet

DNS1=192.168.0.254

IPV6INIT=no

USERCTL=no

PEERDNS=no



and by command

setup

In "Device configuration" -> "eth0 (eth0) - Intel Corporation 82540EM Gigabit Ethernet Controller"



/etc/init.d/NetworkManager stop

chkconfig NetworkManager off

service network restart

3, testing the result from Linux-student and Linux-Instructor

the connection from Linux-student as Linux-student -> Linux-Instructor->Window Host-> Internet, testing ping 8.8.8.8, ping instructor.example.com, ping 192.168.0.254, all successful,



the connection from Linux -Instructor as, Linux-student -> Linux-Instructor->Window host-> Internet, testing ping 8.8.8.8, ping 192.168.0.101, all successful,

4, installation of VirtualBox Additions( VBOXADDITIONS_4.3.12_93733 ), and configure the share the folder between the Windows and Linux

Please refer to this link, http://xionghuilin.com/?p=7

5, reference links,

https://www.centos.org/forums/viewtopic.php?t=26971

https://www.centos.org/forums/viewtopic.php?t=7684

VirtualBox network / study environment setup for RHEL的更多相关文章

  1. Configure a bridged network interface for KVM using RHEL 5.4 or later?

    environment Red Hat Enterprise Linux 5.4 or later Red Hat Enterprise Linux 6.0 or later KVM virtual ...

  2. Network Experiment Environment Construction

    In order to provide an environment for network experiments in the future, I use VirutalBox to create ...

  3. VirtualBox Network Config

    Sharing Host VPN with VirtualBox guest After looking for this solution everywhere, I finally found a ...

  4. Struts 2 - Environment Setup

    Our first task is to get a minimal Struts 2 application running. This chapter will guide you on how ...

  5. [React Fundamentals] Development Environment Setup

    In this lesson we'll setup a simple build process for converting our ES6 React components into ES5 u ...

  6. VirtualBox Network设置的NAT和Bridged Adapter模式区别

    区别: NAT模式下,虚拟机仍然可以访问网络,但是从网络接收者的眼中看来,这些网络请求都来自宿主机,而感知不到虚拟机.外网也无法访问虚拟机网络.虚拟机和宿主机器的IP地址在不同的子网,比如192.16 ...

  7. [Flux] 1. Development Environment Setup

    Install packages: { "name": "reactflux", "version": "1.0.0", ...

  8. [Environment setup]python+selenium+Eclipse+pydev环境搭建

    转载自: http://www.cnblogs.com/Bonker/p/3584707.html http://www.cnblogs.com/fnng/archive/2013/05/29/310 ...

  9. Azure Sphere Development Environment Setup

    1. Visual Studio 目前,Visual Studio 2017/2019支持Azure Sphere开发,后续,微软会加入Visual Studio Code的支持.以Visual St ...

随机推荐

  1. 翻译:Laravel-4-Generators 使用自己定义代码生成工具高速进行Laravel开发

    使用自己定义代码生成工具高速进行Laravel开发 这个Laravle包提供了一种代码生成器,使得你能够加速你的开发进程.这些生成器包含: generate:model – 模型生成器 generat ...

  2. Java Spring Boot: Unable to determine jdbc url from datasource

    如果你和我一样从github或码云上下载了一个几年前别人写的demo代码,想用来做学习用.编译的时候遇到下面这样的错误,然后死命上网查各种方案,百试不灵.试尽了各种方案,就是还连接不上数据库.你可以试 ...

  3. CSS浮动与清除浮动(overflow)例子

    在css中浮动与清除浮动功能是我们开发中常用到的一个功能了,下面小编来为各位分析关于CSS浮动与清除浮动(overflow)例子吧. float脱离文本流,可是为什么文字却会有环绕的效果,这点实在是神 ...

  4. Ubuntu之No module named cv2

    最简单的方法是:pip install opencv-python 另外,从源码安装的方法: 1下载opencv源码:http://opencv.org/releases.html  推荐2.4.13 ...

  5. WPF - 绑定及惯用法(一)

    写在前面:这仍然是一些没有经过严格审阅的文字.虽然我的确执行了初稿.复稿以及审阅等一系列用以保证文章质量的方法,但是仍然担心其中是否有错误.希望您能帮助指出,以在下一次我在版本更新时进行修正.所有的错 ...

  6. uva 610(tarjan的应用)

    题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=23727 思路:首先是Tarjan找桥,对于桥,只能是双向边,而对于 ...

  7. Laravel5.1 文件管理

    Laravel提供了一套很好用的文件系统 方便于管理文件夹和文件,支持Amazon S3和Rackspace云存储等驱动. 1 配置 文件系统的配置文件在 config/filesyetems.php ...

  8. ios开发之--键盘的监听

    监听键盘的弹出,让整个页面向上移动,比较简单,仅做记录使用: 代码如下: // 监听键盘 [[NSNotificationCenter defaultCenter] addObserver:self ...

  9. ios 开发之 -- 极光推送,发送自定义消息,进入制定页面

    在进行极光推送时候,发现版本有所更新,以前截取didfinish入口方法里面的launchOptions,获取一个本地的通知内容,进行本地展示不可用了,通过查询官方文档和网上的资料才发现,方法改变了, ...

  10. jQuery插件手把手教会(一)

    jQuery插件开发教程  ——让你的jQuery水平提升一个台阶 要说jQuery 最成功的地方,我认为是它的可扩展性吸引了众多开发者为其开发插件,从而建立起了一个生态系统.这好比大公司们争相做平台 ...