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. Unix系统编程()发送信号的其他方式:raise和killpg

    有时,进程需要向自身发送信号,raise 函数就执行了这一任务. #include <signal.h> int raise(int sig); 在单线程程序中,调用raise相当于对ki ...

  2. CSS3实现0.5px的边框

    前端页面细节处理好了才会显得精致.边框在网页中是常见的一种样式了.虽然不把它处理为0.5px看上去没毛病,但是想让你做的东西征服更多的人,这些细节处理是必须的. 今天主要说一下如何让边框显示0.5px ...

  3. C++ 构造中调用构造

    //构造中调用构造 #define _CRT_SECURE_NO_WARNINGS #include<iostream> using namespace std; class Point{ ...

  4. Windows 安装、重装MySQL时,报错:could not start the service mysql

    原因: 卸载mysql时并没有完全删除相关文件和服务,需要手动清除. 解决方法: 首先,在管理工具->服务里面将MySQL的服务给停止(有的是没有安装成功,有这个服务,但是已经停止了的). 然后 ...

  5. 实现现下列哪一种接口的对象,并不需要在web.xml文件内进行额外的设定,Servlet容器就能够回应该对象加入HTTP会话所发生的事件?(选择1项)

    实现现下列哪一种接口的对象,并不需要在web.xml文件内进行额外的设定,Servlet容器就能够回应该对象加入HTTP会话所发生的事件?(选择1项) A.ServletContextListener ...

  6. 出错的方法有可能是JDK,也可能是程序员写的程序,无论谁写的,抛出一定用throw

    应对未检查异常就是养成良好的检查习惯. 已检查异常是不可避免的,对于已检查异常必须实现定义好应对的方法. 已检查异常肯定跨越出了虚拟机的范围.(比如“未找到文件”) 如何处理已检查异常(对于所有的已检 ...

  7. 项目中遇到的direct3d问题,设备丢失

    今天在调试项目的时候,遇到一个问题,之前在写代码的时候,调试都是在本地的电脑上进行调试,然而今天是通过远程登陆到电脑进行调试的,所以在调试的过程中遇到了一个问题. 其实开始的时候,有同事反应说,当远程 ...

  8. LoadRunner Error code 10053,Software caused connection abort

    发现问题的应用场景  C/S结构程序,请求响应采用异步机制.即客户端发送一个请求后不是一直等待这个结果,客户端将请求存放在请求队列并获得一个JOBID,服务器运行后将运行结果存放在响应队列,客户端定时 ...

  9. ulimit命令学习

    通过ulimit -n命令可以查看linux系统里打开文件描述符的最大值,一般缺省值是1024,对一台繁忙的服务器来说,这个值偏小,所以有必要重新设置linux系统里打开文件描述符的最大值.那么应该在 ...

  10. VC++ 轻松实现“闪屏” SplashWnd

    我们平时使用的好多软件在运行启动时都会有一个“闪屏”画面显示,一般用于标识软件的一些信息,如软件版本名称.公司等,通过查找资料发现,其实实现起来很简单,一个类就能搞定! SplashWnd.h  C+ ...