Network Experiment Environment Construction
In order to provide an environment for network experiments in the future, I use VirutalBox to create some hosts.
My real host is Ubuntu 14.04 LTS.
And I will install some OSs gradually.
Kali Linux Installation
Nothing more to record.
Just remember to configure the boot loader when you install it.
Or you will come across troubles.
Also, remember to add software sources:
vim /etc/apt/sources.list
Add:
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
Then,
apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get autoremove && apt-get autoclean
Network Configuration:
vim /etc/network/interfaces:
add:
- address 192.168.1.xxx
- netmask 255.255.255.0
- gateway 192.168.1.1
- broadcast 192.168.1.255
vim /etc/resolv.conf:
add:
- nameserver xxx.xxx.xxx.xxx
If you can't connect to the network, use:
- route add default gw xxx.xxx.xxx.xxx
Bingo!
Copy from here. Thank him
Copy from here. Thank him
Metasploitable 2
Default Account:
username: msfadmin
password: msfadmin
Also, remember to Configure the network.
Windows XP SP3
Use it to learn penetration.
If you want to do penetration exercise, DO NOT choose autoupate.
After configuring the network, you can ping other computers in your network.
But if XP's firewall is ON, then maybe other PC of yours can not ping it effectively.(At least, ICMP can't)
However, Nmap SYN scan can feel it.
CentOS 7 Installation
Download (I use CentOS 7 Minimal)
Network Configuration

Here I use Bridged-Adapter Mode, and I will descript the difference among Bridged-Adapter, Host-only and NAT in Appendix A
Then, let's dirty our hands in the OS:
Configure Gateway:
[root@localhost ~]# vi /etc/sysconfig/network
You should add:
NETWORKING=yes
GATEWAY=192.168.1.1 # configure the gateway IP
Configure DNS:
[root@localhost ~]# vi /etc/resolv.conf
add:
nameserver 192.168.1.1
Configure IP:
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 (here is mine, yours may be difference)
add:
IPADDR=192.168.1.123
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
and modify:
ONBOOT=yes
BOOTPROTO=static (if your local network's DHCP server is available , you can set it to *dhcp*)
Now:
service network restart
Completed!
And you can use
ping www.baidu.com
to test your network.
- Install Desktop Environment
Firstly, you'd better update your OS:
yum update
Then:
yum groupinstall "X Window system"
yum groupinstall gnome
Completed!
And you can use
startx
to turn on the Desktop Environment.
P.S.
There is no ifconfig instruction in CentOS Minimal !
How can that be !!!
Solution:
Determine which packet provides that tool:
yum provides ifconfig

We can see that it is net-tools that provides ifconfig
So,
yum install net-tools
Bingo!
Now you can use it !
(You can do similarly to install other tools)
Here are Some questions:

Metasploitable2
Appendix A - Difference Among Bridged-Adapter, Host-only And NAT Mode
Learn from here
Virutal Machine always has these three modes:

Appendix B - Files About Network Configuration in Linux (RedHat series)
- /etc/sysconfig/network
This file is used to configure hostname and whether to start up:
NETWORKING=yes # means your network will start up
GATEWAY=192.168.1.1
- /etc/sysconfig/network-scripts/ifcfg-enp0s3 (the exact file-name is ifcfg-YOUR-NETWORK-CARD-NAME)
This file is about network configuration:
TYPE=Ethernet # network card type
DEVICE=eth0 # name of network card
ONBOOT=yes # boot or not when OS starts up
BOOTPROTO=static # use Address Protocol: static bootp dhcp
IPADDR=192.168.1.11 # network card's IP
NETMASK=255.255.255.0 # Sub-net mask
GATEWAY=192.168.1.1 # IP of gateway
DNS=10.203.104.41 # DNS server's IP
HWADDR=00:0C:29:13:5D:74 # MAC address
BROADCAST=192.168.1.255 # broadcast address
- /etc/resolv.conf
This file is of DNS configuration.
And it mainly has four keywords:
nameserver # define the IP of DNS server
domain # define local host domain
search # define the seraching list of domain.It can't co-exist with domain entry
sortlist #
- /etc/hosts
This file is the static information about host names (from FHS)
And it seems that the table in /etc/hosts is prior to DNS.
We can test: (I use apache2 on my PC and there is a index.html created by me in the /var/www/html/ directory)
service apache2 start
Then add
192.168.1.103 www.baidu.com
to your /etc/hosts. (Notice that 192.168.1.103 is my local IP)
Then I enter www.baidu.com in your browser's address table:

Network Experiment Environment Construction的更多相关文章
- VirtualBox network / study environment setup for RHEL
I re-visited the RHEL study material and setup the environment again, noted down the procedure. 1, c ...
- [Z] 计算机类会议期刊根据引用数排名
一位cornell的教授做的计算机类期刊会议依据Microsoft Research引用数的排名 link:http://www.cs.cornell.edu/andru/csconf.html Th ...
- IoT experitment
Abstract: In order to solve the problems of complex experiment management, complicated teaching task ...
- linux tcp调优
Linux TCP Performance Tuning News Linux Performance Tuning Recommended Books Recommended Links Linux ...
- Modelica学习
Annotation Choices for Suggested Redeclarations and Modifications Replaceable model sample(start,int ...
- CentOS 6.5安装配置LNMP服务器(Nginx+PHP+MySQL)
CentOS 6.5安装配置LNMP服务器(Nginx+PHP+MySQL) 一.准备篇: /etc/init.d/iptables stop #关闭防火墙 关闭SELINUX vi /etc/sel ...
- sqlplus使用(一)
一,sqlplus 环境变量 sqlplus的环境变量(来自SQL*Plus® User's Guide and Reference Release 11.2) Parameter or Variab ...
- MIT jos 6.828 Fall 2014 训练记录(lab 6)
源代码参见我的github: https://github.com/YaoZengzeng/jos 在这个实验中将实现一个基于Intel 82540M(又称E1000)的网卡驱动.不过,一个网卡驱动还 ...
- [转]Linux下的图形库介绍
[转]Linux 下的图形库介绍 http://blog.csdn.net/gogor/article/details/5925925 在进行Linux下的图形系统编程时,我们常常会遇到以下这些概念: ...
随机推荐
- Vue.js – 基于 MVVM 实现交互式的 Web 界面
Vue.js 是用于构建交互式的 Web 界面的库.它提供了 MVVM 数据绑定和一个可组合的组件系统,具有简单.灵活的 API.从技术上讲, Vue.js 集中在 MVVM 模式上的视图模型层,并 ...
- Sharepoint学习笔记—习题系列--70-576习题解析 -(Q4-Q5)
Question 4 You are designing a SharePoint 2010 application to store 50 GB of digital assets, includi ...
- Android 手机卫士--home界面布局
本文实现当从splash界面进入hone界面的时候,产生一种渐进淡入的动画效果,在onCreate中调用一个方法initAnimation(),代码如下: /** * 添加淡入的动画效果 */ pri ...
- C中的流程控制
一. 流程控制 l 顺序结构:默认的流程结构.按照书写顺序执行每一条语句. l 选择结构:对给定的条件进行判断,再根据判断结果来决定执行哪一段代码. l 循环结构:在给定条件成立的情况下,反复执行某一 ...
- 【Andorid】短视频拍摄SDK——Vitamio Recorder 2.0 发布(支持ffmpeg命令行)
简介 VCamera SDK Android 版(短视频拍摄SDK)是炫一下(北京)科技有限公司推出的软件开发工具包,为Android开发者提供简单.快捷的接口,帮助开发者实现Android平台上的短 ...
- 【Android】不使用WebView来执行Javascript脚本(Rhino)
前言 动态执行脚本能有效的降低重要功能硬编码带来的问题,尤其是依赖于第三方的应用,可以通过动态脚本+在线参数(例如友盟在线参数)再不更新应用的情况下升级功能. 声明 欢迎转载,但请保留文章原始出处:) ...
- IOS开发之UI布局
前言:本篇随笔会经常更新,随着本人对布局的深入学习,会不断补充新的知识.新的使用技巧.新的认识等等. 1.Autoresizing(在代码中使用) 先简单的看看下面的代码,以及左边运行出来的效果,然后 ...
- TFS2012 自动生成与部署
思路: 每日构建,自动生成,然后从TFS提交日志中提取版本修订说明,调用打包脚本混淆并生成安装包(系统自带的太锉),最后将相关文件复制到指定网站供浏览下载.自动向测试网站发布,自动生成数据库并初始化. ...
- Win8&Win2012R2如何支持DOTA2输入法
微软自带的拼音和五笔就不用看了,没研究过,下面的方法应该不支持. 其实方法很简单运行下ctfmon.exe就可以了,这个原来旧输入模式的基础,测试可以支持QQ五笔. PS:使用拼音输入法的用户可以直接 ...
- .NET项目工程生成一份项目帮助文档chm--Sandcastle工具
Sandcastle的,由Microsoft创建的,是从创建MSDN风格的文档中使用的工具.NET程序集和关联的XML注释文件.目前的版本是 2010年6月发布.这是命令行并没有GUI前端,项目管理功 ...