Presentation is loading. Please wait.

Presentation is loading. Please wait.

iSoftStone Information Service Corporation

Similar presentations


Presentation on theme: "iSoftStone Information Service Corporation"— Presentation transcript:

1 iSoftStone Information Service Corporation
计算机网络——IP 地址 梁居刚 iSoftStone Information Service Corporation 2019/4/6

2 The Communication Process
Name Address Post Office Name Address Post Office Name Address ©2005 iSoftStone Information Service Corporation. All rights reserved.

3 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 一,IP 地址分类 IP 地址 IP 地址分类 ©2005 iSoftStone Information Service Corporation. All rights reserved.

4 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 IP 地址 IP 地址 Network ID Host ID ©2005 iSoftStone Information Service Corporation. All rights reserved.

5 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 IP 地址分类 A 类 网络 ID 主机 ID B 类 网络 ID 主机 ID C 类 网络 ID 主机 ID w x y z ©2005 iSoftStone Information Service Corporation. All rights reserved.

6 ©2005 iSoftStone Information Service Corporation. All rights reserved.
思考一: 如何确定IP地址在同一子网内或不在同一子网内?也就是说,可以相互在局域网内打联机游戏? 例1: /24与 /24能否通讯? 例2: /10与 /10能否通讯? 不在同一子网内的IP,如何通讯? (通过路由器可以将不同网段的计算机联结起来。) ©2005 iSoftStone Information Service Corporation. All rights reserved.

7 ©2005 iSoftStone Information Service Corporation. All rights reserved.
思考二: 为什么要划分子网? 借用部分主机地址,来划分多个不同网段的子网。 ©2005 iSoftStone Information Service Corporation. All rights reserved.

8 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 将网络分成子网 子网 子网掩码 子网掩码的分配规律 CIDR 标记法 本地IP和远程IP ©2005 iSoftStone Information Service Corporation. All rights reserved.

9 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 CIDR 标记法 IP 地址 子网掩码 1的数量 CIDR表示的 IP地址 = 20 /20 ©2005 iSoftStone Information Service Corporation. All rights reserved.

10 ©2005 iSoftStone Information Service Corporation. All rights reserved.
CIDR 标记法 也称网络前缀标记法。 IP: /20 表示:其子网掩码有20个连续的1,用来确定网络ID;余下的必须是0,用来确定主机ID。 ©2005 iSoftStone Information Service Corporation. All rights reserved.

11 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 子网 Hub ©2005 iSoftStone Information Service Corporation. All rights reserved.

12 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 子网掩码 IP 地址 200 子网 掩码 网络 ID IP 地址 10.50. 子网 掩码 0.0 网络 ID IP Address 10. Subnet Mask 255. 0.0.0 Network ID IP Address Host ID Network ID 2.200 Subnet Mask 0.0 ©2005 iSoftStone Information Service Corporation. All rights reserved.

13 ©2005 iSoftStone Information Service Corporation. All rights reserved.
子网掩码的分配规律: 1,最大值1跟最小值0。 2,连续的1确定网络ID。 3,连续的0确定主机ID。 ©2005 iSoftStone Information Service Corporation. All rights reserved.

14 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 子网掩码比特 二进制表示 十进制表示 Network ID Host ID 1 w x y z ©2005 iSoftStone Information Service Corporation. All rights reserved.

15 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 子网掩码比特 二进制表示 十进制表示 255 254 252 248 240 224 192 128 Network ID Host ID 1 w x y z ©2005 iSoftStone Information Service Corporation. All rights reserved.

16 ©2005 iSoftStone Information Service Corporation. All rights reserved.
计算机网络 ID 1,计算IP地址的二进制值。 2,计算子网掩码的二进制值。 3,由二进制的与运算计算机网络ID的二进制值。 4,将网络ID的二进制转为十进制。 5,按以上方法计算另一个IP的网络ID十进制 6,并判断这两个IP地址是否在同一网段内。 ©2005 iSoftStone Information Service Corporation. All rights reserved.

17 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 计算机网络 ID 用CIDR 表示的 IP地址 : /20 IP 地址 子网掩码 网络 ID CIDR表示的 网络 ID /20 ©2005 iSoftStone Information Service Corporation. All rights reserved.

18 ©2005 iSoftStone Information Service Corporation. All rights reserved.
思考二: 网络ID有什么用? 网络ID不一样应该怎么办? 例2: /10与 /10能否通讯? ©2005 iSoftStone Information Service Corporation. All rights reserved.

19 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 确定本地主机和远程主机 例 2 1 2 远程主机 路由器 子网 掩码 A B C D E F 例 1 1 本地主机 2 陆游器 子网 掩码 A B C D E F ©2005 iSoftStone Information Service Corporation. All rights reserved.

20 ©2005 iSoftStone Information Service Corporation. All rights reserved.
2019/4/6 IP地址分配原则 网络 ID 中第一个数不能是 127 主机 ID 不能都是 255 主机 ID 不能都是 0 主机 ID 对于本地网络 ID 来说是唯一 ©2005 iSoftStone Information Service Corporation. All rights reserved.

21 ©2005 iSoftStone Information Service Corporation. All rights reserved.
子网掩码的分配规律: 1,最大值1跟最小值0。 2,连续的1确定网络ID。 3,连续的0确定主机ID。 4, 子网掩码可定制; ©2005 iSoftStone Information Service Corporation. All rights reserved.

22 ©2005 iSoftStone Information Service Corporation. All rights reserved.
小结: IP 地址分类 网络中子网划分 规划 IP 地址 分配 TCP/IP 地址 ©2005 iSoftStone Information Service Corporation. All rights reserved.

23 ©2005 iSoftStone Information Service Corporation. All rights reserved.
网络配置实例: 要求一:要求IP为 的主机能PING通IP为 的主机。 要求二:在 的网段内有一文件资料,如何才能在 端访问到? 要求三:将局域网 联入互联网。(课外作业) ©2005 iSoftStone Information Service Corporation. All rights reserved.


Download ppt "iSoftStone Information Service Corporation"

Similar presentations


Ads by Google