当前位置:网站首页>网络安全学习(千锋网络安全笔记)2--IP与基本DOS命令
网络安全学习(千锋网络安全笔记)2--IP与基本DOS命令
2022-07-20 05:51:00 【爱编程的西瓜】
网络安全学习(千锋网络安全笔记)2–IP与基本DOS命令
1.IP地址详解
局域网(内网)
单局域网构成:交换机,网线,pc
交换机:用来组建内网的局域网的设备
IP地址
一般为32位二进制地址
或形如 X.X.X.X的十进制地址(X的范围为0-255)
子网掩码
局域网通信规则:在同一个局域网中所有IP地址必须在同一网段才可以互相通信
IP的构成:网络位+主机位(网络位相同的IP地址,为同一网段)
子网掩码:用来确定IP的网络位(255对应的数字为网络位,0对应的数字为主机位)有以下三种:
255.0.0.0
255.255.0.0
255.255.255.0
如图,该主机网段为192.168.159.,主机位为.128。将主机的IP地址与子网掩码按位相与即可得到该注意的网络位。
IP地址
ISO定义五大类(IP地址第一位区分)
A类:1-126 默认掩码:255.0.0.0
B类:128-191 默认掩码:255.255.0.0
C类:192-223 默认掩码:255.255.255.0
D类:224-239 组播地址
E类:240-254 科研使用
注:目前我们只能使用A、B、C类
子网掩码可以修改
255为该网段的广播地址
127.0.0.1 回环地址(跟自己通信)
网关
一个网络的出口,一般在路由器上
路由器:连接外网的设备
网关的一个作用如下:pc向外发包
1、首先判断目标IP与自己是否在 同一个网段
2、如在同一个网段,则直接发出去,不找网关
3、如不在同一个网段,则发包给网关
DNS
域名系统(服务)协议(DNS)是一种分布式网络目录服务,主要用于域名与 IP 地址的相互转换,以及控制因特网的电子邮件的发送
测试网络连通性
手工解析域名:nslookup 网址
ping 目标IP #测试网络连通性,有去有回即为通路
ping -t 目标IP #一直ping
ping -n 数字 #修改ping包的数量,默认为4
ping -l 数字 #修改ping包的大小
ipconfig #查看ip基本信息
ipconfig /all #查看ip所有信息
基本DOS命令
cd… 返回上级目录
cd\ 返回根目录
d: 进入D盘
cls 清空所有dos操作
dir 显示当前盘符文件信息
浏览文件
type 文件名.扩展名 显示
type 文件名.扩展名 |more 分页显示
创建文件
1、echo
2、copy con 文件名.扩展名
开始编写内容
ctrl+z 回车结束编写
删除文件
del *.txt 删除所有txt结尾的文件
del . 删除文件
关机重启注销
shutdown -s -t 100 定时关机
shutdown -s -f -t 100 定时强制关机
shutdown -r -t 秒 定时重启
shutdown -a 取消定时
shutdown -l 注销
边栏推荐
- Understanding and use of unity2d custom scriptable tiles (II) -- understand the methods of the tilebase class (mainly gettiledata method) in detail by understanding the tile class
- 二、mysql进程之间关系、配置文件、文件socket、网络socket、mysql密码破解
- Please ask me how I can check the current program synchronization if I synchronize the data of MySQL binlog without adding a specific log
- UGUI——ToggleGroup
- Combined with the source code, see "cocos2dx-3.0 as I understand" - particle system
- One bite of Stream(1)
- Ask me if there is a better way to do database migration, whole database migration, from MySQL (old) - & gt; MySQL (New)?
- Model graduation thesis on traffic safety management
- Unity2D 自定义Scriptable Tiles的理解与使用(二)——通过了解Tile类来对TileBase类的方法(主要是GetTileData方法)进行详细理解
- MiNi简约版小程序送上,专栏用户独享
猜你喜欢
力扣总结之链表题目
pinctrl
One bite of Stream(5)
Combined with the source code, see "cocos2dx-3.0 as I understand" - particle system
SAFERTOS在医疗设备中的应用
CORS跨域&JSONP回调&域名接管
离线安装jenkins及离线安装插件
[Unity脚本优化] Optimizing garbage collection in Unity games
RIoTBoard开发板系列笔记(四)—— 使用VPU硬件解码
The new version of WordPress 6.0.1 has been released, and it is recommended to update it all.
随机推荐
互联网巨头“赢家通吃”,会产生哪些严重后果?
UGUI——LayoutGroup
CORS跨域&JSONP回调&域名接管
结合源码看《我所理解的cocos2dx-3.0》—— 粒子系统
Graduation thesis title of power system and automation [selected]
好玩的猜数游戏(不是二分查找!四位数)
WordPress opens sitemap XML, a piece of code to solve.
素数环(深度优先,回溯,排列树)
聪明人的游戏提高篇:第三章第一课:grid(格子位置)
pinctrl
Yolo target detection identification box does not display text labels (solved)
Keras 载入历史.h5格式模型报错: AttributeError ‘str‘ object has no attribute ‘decode‘
[Unity脚本优化] Unity magic methods
hello csdn
好玩的猜数游戏(不是二分查找!)
JS构造链表
JS构造二叉树
SAFERTOS在医疗设备中的应用
Pytoch realizes handwritten digit recognition | MNIST data set (CNN convolutional neural network)
Title of graduation thesis on architectural decoration