Division manner IPv4 addresses and classification, IPv6 IPv4 address is how to make up for the lack of points
Demand:
There are three sectors, where A sector needs 30 hosts, which B sector needs 20 host, wherein C sector needs 10 host, and the predetermined ABC part belonging nowhere segment
if the process is completed, then, as each among the available host network address to 254, and up to as long as 30 the number of host addresses these three segments of the need to use it, obviously wasteful IP address!
Classification of IP addresses
A类地址:1.0.0.0~126.255.255.255
B类地址:128.0.0.0~191.255.255.255
C类地址:192.0.0.0~223.255.255.255
A B C类比较重要
D类地址:224.0.0.0~239.255.255.255
E类地址:240.0.0.0~255.255.255.255
D E 有能力者背下来 HCIA就是了解
Public address
该地址可以在公网出现,在公网上面不能出私网地址
Private address
给用户或者租户使用地址
10.0.0.0~10.255.255.255
172.16.0.0~172.31.255.255
192.168.0.0~192.168.255.255
Special Address
0.0.0.0===》》》全世界 默认路由
127.X.X.X===》》》环回地址 用于测试TCP/IP协议栈
255.255.255.255 三层的全局广播
169.254.X.X 电脑系统如果windows的话 这个地址是微软那边分配给你的地址
除了私网地址和特殊地址之外 其他地址几乎都是公网地址
Between VLSM VLSM and CIDR classless interdomain routing address is how to save
VLSM (variable length subnet mask)
需求:
现在有三个部门,其中A部门需要30个主机,其中B部门需要20个主机,其中C部门需要10个主机,并且,规定A B C部分属于不通网段 这边给的IP地址是192.168.1.0/24
192.168.1.0 255.255.255.0
way is: borrow borrow digit is masked in the end it should take a few? Borrow a
first mask you are 24 if I borrow one side, then the mask becomes 25
24 1111 1111.1111 1111.0000 0001 .0000 0000
0
1
第一种情况就是借的那一位是0 即网络地址就是:192.168.1.0/25
第二种情况就是借的那一位是1 即网络地址就是:192.168.1.128/25
很显然 借一位的话 只能划分成两个网段
192.168.1.0 255.255.255.0
方法就是:借位 借的就是掩码的位数 到底应该借几位呢? 借2位
首先你的掩码是24位 假如我这边借二位的话 掩码就变成了26位
24 1111 1111.1111 1111.0000 0001 .00 00 0000
00
11
01
10
第一种情况就是借的那2位都是0 即网络地址就是:192.168.1.0/26 可用主机数:62
第二种情况就是借的那2位都是1 即网络地址就是:192.168.1.192/26 可用主机数:62
第三种情况就是借的那2位一个是0 一个是1 即网络地址是:192.168.1.64/26 可用主机数:62
第四种情况就是借的那2位一个是1 一个是0 即网络地址是:192.168.1.128/26 可用主机数:62
作用:划分子网 节约咱们IP地址
实现方式---掩码这边向右边进行移动 网络位增加了 主机位减少了
CIDR (Classless Inter-Domain Routing)
Breaking the boundaries of traditional classification of IP addresses, the number of routes in the routing table by the convergence as a route to reduce the size of routing tables and improves the scalability of the router
A:10.24.0.0/24 0000 00 00
B:10.24.1.0/24 0000 00 01
C:10.24.2.0/24 0000 00 10
D:10.24.3.0/24 0000 00 11
A B C D他们之间不在同一个网段 怎么样聚合
For example:
方法就是:类似消消乐,找相同点 发现中间第三位是不相同的 我们换算成二进制后 发现只有后面二位是不相同的 我们直接把后面不相同的去掉 把相同留下来即可,即:10.24.0.0/22
Action: some features have the same IP address to gather together
implementation --- mobile network side mask bit position to the left side of the host side increases to reduce the
练习
路由器A的IP地址是172.16.1.1/24
路由器B的IP地址是172.16.2.1/24
路由器C的IP地址是172.16.3.1/24
路由器D的IP地址是172.16.4.1/24
路由器A B C D他们之间出外网的时候,恰好经过路由器E ,规定,在路由器E上面只允许出现一条路由,请问,这条路由是谁?
练习1
计算出下面网络地址和广播地址以及可用地址主机范围
1、10.1.1.24/27
10.1.1.000 1 1000
网络地址:10.1.1.0
广播地址:10.1.1.31
可用主机地址范围:10.1.1.1~10.1.1.30
2、172.16.1.1/30
172.16.1.0000 00 01
网络地址:172.16.1.0
广播地址:172.16.1.3
可用主机地址范围:172.16.1.1~172.16.1.2
3、192.168.100.100/25
192.168.100.0 110 0100
网络地址:192.168.100.0
广播地址:192.168.100.127
可用主机地址范围:192.168.100.1~192.168.100.126
练习2:
计算出10.10.10.10/26 向右边借3位掩码后,所得出的网络地址分别是多少?
向右边借三位后,总共可以得出8个网段子网出来
2的3次方=8
128 64 32 16 8 4 2 1
10.10.10.00 001010
第1种 000 ===》》》0
第2种 001 ===》》》8
第3种 010 ===》》》16
第4种 011 ===》》》24
第5种 100 ===》》》32
第6种 101 ===》》》40
第7种 110 ===》》》48
第8种 111 ===》》》56
2.3、8个子网,分别是:
10.10.10.0/29
10.10.10.8/29
10.10.10.16/29
10.10.10.24/29
10.10.10.32/29
10.10.10.40/29
10.10.10.48/29
10.10.10.56/29
练习3:
A:192.168.20.0/24 ===》》》0 001 0100
B:192.168.30.0/24 ===》》》0 001 1110
C:192.168.40.0/24 ===》》》0 010 1000
D:192.168.50.0/24 ===》》》0 011 0010
E:192.168.60.0/24 ===》》》0 011 1100
F:192.168.70.0/24 ===》》》0 100 0110
A B C D E F 他们之间不在同一个网段 怎么样聚合
答案:
192.168.0.0/17
The actual project how to maximize the IP address of the division
A company's business are as follows: IP address is given network segment 10.56.0.0/16 how subnetting
网络设备之间的互联地址10.56.252.0/24~10.56.253.0/24 如何进行划分?