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下的图形系统编程时,我们常常会遇到以下这些概念: ...
随机推荐
- 强大的JavaScript动画图形库mo.js
最近在学习前端动画方面知识时发现了挺有趣的一个动画的图形库mo.js,页面效果真是酷炫,有兴趣的同学可以研究下:). 酷炫的效果: 以下是官方的demo效果,更多详情请查看 mo.js http:// ...
- 深入源码分析使用jQuery连续发起jsonp请求失败的原因
jQuery的 jsonp 大家应该是十分熟悉了.曾遇到过这样的需求1.希望请求几个相似的内容添加到页面2.请求的内容一定时间内是固定不变的,希望做个缓存. 于是脑子一拍写下了类似这样的代码 for( ...
- Flex Viewer
一.Flex Viewer简介 Flex Viewer是ESRI公司推出的可以高效开发基于WEB的地理信息应用系统的一种完全免费的应用程序框架.业务人员使用该框架可以无需任何额外的编程就能够通过简单配 ...
- [javascript svg fill stroke stroke-width x y rect rx ry 属性讲解] svg fill stroke stroke-width rect 绘制具有圆角矩形属性讲解
<!DOCTYPE html> <html lang='zh-cn'> <head> <title>Insert you title</title ...
- 不直接登录SharePoint服务器,通过远程直接部署WSP解决方案包
在这之前不得不说一下Sysinternals,他最初是一个网站,网站上会经常发布一些有用的系统扩展工具,之后运营这个网站的公司被微软收购.像非常著名的Procmon,AutoRuns.Process ...
- 图形学理论知识 BRDF 双向反射分布函数(Bidirectional Reflectance Distribution Function)
图形学理论知识 BRDF 双向反射分布函数 Bidirectional Reflectance Distribution Function BRDF理论 BRDF表示的是双向反射分布函数(Bidire ...
- 监听SD卡状态
最近在做项目时遇到需要处理SD卡拔出时的监听,在网上找了很多资料.总结了一下, 用接收广播处理最有效率 sd卡拔插时会发送广播,具体如下(摘自一位大虾的博客 来自:http://blog. ...
- Android touch mode和focusableInTouchMode分析
首先我们来看看touch mode的定义.它是用户和手机进行交互时view层次结构的一个状态.它本身是很容易理解的, 代表了最近一次的交互是否是通过触摸屏发生的,因为在Android设备上还存在别的交 ...
- 浅析Dagger2的使用
什么是Dagger2 Dagger是为Android和Java平台提供的一个完全静态的,在编译时进行依赖注入的框架,原来是由Square公司维护,现在由Google维护. 我们知道Dagger是一个依 ...
- IOS 手势详解
在IOS中手势可以让用户有很好的体验,因此我们有必要去了解一下手势. (在设置手势是有很多值得注意的地方) *是需要设置为Yes的点击无法响应* *要把手势添加到所需点击的View,否则无法响应* 手 ...