当前位置:文档之家› (六)IP地址的概念和配置v0-2

(六)IP地址的概念和配置v0-2


..
Cat 4006
10/100M
192.168.1.128/28
0~65535 216= 65536
00000000 00000001 00000000 00000011 11111111 11111101 11111111 11111110 11111111 11111111
65536-2(全0和全1)=65534
© 2002, DigitalChina Group Ltd. All rights reserved.
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址计算例子2
网络 主机
172
地址 10101100 地址 掩码 11111111 掩码 网号 10101100 网号 广播 10101100 广播 起始 10101100 起始 结束 10101100 结束
网络 网络 网络
Class D: 组播 Class E: 保留地址
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址分类
Bits: A类: Bits: B类: Bits: C类: Bits: D类: 1 8 9 Host 16 17 Network 16 17 Network Host 24 25 Host 32 16 17 Host 24 25 Host 32 24 25 Host 32 32 0NNNNNNN 范围 (1-126) 1 8 9 10NNNNNN 范围 (128-191) 1 8 9 110NNNNN 范围 (192-223) 1 8 9 1110MMMM 范围 (224-239)

网络号
定向广播
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址计算练习答案
地址 201.222.10.60 15.16.193.6 128.16.32.13 153.50.6.27
子网掩码 255.255.255.248 255.255.248.0 255.255.255.252 255.255.255.128
子网掩码的概念
网络 IP 地址 主机
176
网络
28 255
0
主机
0 0
缺省子 网掩码
11111111 主网
255
11111111
00000000 子网
0
00000000 主机
也可以写成 “/16”表示掩码中“1”的个数。
加8位 子网掩码
255
255
255
0
也可以写成 “/24”表示掩码中“1”的个数。
1000M 1000M×2 1000M
168.25.7.0
Cat 6509
100M
168.25.6.0 168.25.5.0
168.25.4.0 需要有路由功能 需要有路由功能
• 利用高位主机号来扩展网络号
© 2002, DigitalChina Group Ltd. All rights reserved.
© 2002, DigitalChina Group Ltd. All rights reserved.
广播地址的概念
255.255.255.255 255.255.255.255
168.28.255.255 168.28.255.255
10.1.1.0
172.32.1.255 172.32.1.255
© 2002, DigitalChina Group Ltd. All rights reserved.
为什么需要划分子网
10/100M
Cat 3550
Cat 3550
10/100M
Cat 4006
10/100M
Cat 4006
1000M
10/100M
Cat 4006
10/100M
Cat 6509 Cat 4006
IP地址的概念和配置 第六章
IP地址的概念和配置
© 2002, DigitalChina Group Ltd. All rights reserved.
概述
IP地址的概念 在设备中配置IP地址
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址的概念
1000M 1000M×2
• 所有计算机全部都在168.25.0.0这个巨大 的网段里
© 2002, DigitalChina Group Ltd. All rights reserved.
..
..
Cat 4006
10/100M
Cat 6509
1000M
100M
子网的概念
168.25.1.0
10/100M
202.24.0.2 202.24.0.1
202.22.0.2
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址分类
32 bits
二 进 制
网络号
主机号
11001010 01100000 11001111 00000111
8 bits 8 bits 8 bits 8 bits
192.168.1.96/28
10/100M
192.168.1.32/2810/100M
Cat 4006
1000M
Cat 4006
10/100M
192.168.1.112/28
192.168.1.64/2810/100M
Cat 4006
Cat 6509 Cat 4006
1000M 1000M×2
..
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址简介
202.23.0.2 192.168.6.0 10.1.1.0 网段 202.23.0.1 202.25.0.1 202.25.0.2 网段 192.168.6.1
10.1.1.1 202.2lChina Group Ltd. All rights reserved.
IP地址计算练习
地址 201.222.10.60 15.16.193.6 128.16.32.13 153.50.6.27
子网掩码 255.255.255.248 255.255.248.0 255.255.255.252 255.255.255.128
10.1.1.2
© 2002, DigitalChina Group Ltd. All rights reserved.
192.168.1.1
192.168.1.2
什么地址是可分配的
网络号 主机号
168
25
0
0
0 1 2 65533 65534 65535
...
10101000 00011001 00000000 00000000 ... ...
Network 24 25
16 17
Multicast Group Multicast Group Multicast Group
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址的分配
路由表 目的网络 10.0.0.0 192.168.1.0 172.16.0.0 10.1.1.1 转发接口 E0 S0 S0 网络号 主机号 172.16.1.1 172.16.1.2
类 C A B B
网络号
定向广播
201.222.10.56 201.222.10.63 15.16.192.0 128.16.32.12 153.50.6.0 15.16.199.255 128.16.32.15 153.50.6.127
© 2002, DigitalChina Group Ltd. All rights reserved.
IP地址规划
给定一个C类192.168.1.0, 要求为网络各个网段和设 备分配IP地址
10/100M
Cat 3550
Cat 3550
10/100M
Cat 4006
10/100M
Cat 4006
1000M
10/100M
Cat 4006
10/100M
Cat 6509 Cat 4006
1000M 1000M×2
IP地址分类练习答案
IP地址 10.4.65.7 128.78.5.132 202.233.5.60 192.168.7.133 129.76.28.17 256.32.101.29 类别 A B C C B 不存在 网络地址 10.0.0.0 126.78.0.0 202.233.5.0 192.168.7.0 129.76.0.0 主机地址 0.4.65.7 0.0.5.132 0.0.0.60 0.0.0.133 0.0.28.17
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
IP地址分类练习
IP地址 10.4.65.7 128.78.5.132 202.233.5.60 192.168.7.133 129.76.28.17 256.32.101.29 类别 网络地址 主机地址
© 2002, DigitalChina Group Ltd. All rights reserved.
28
8
129
10000001 176.28.8.129 00000000 255.255.0.0 00000000 176.28.0.0 11111111 176.28.255.255 00000001 176.28.0.1 11111110 176.28.255.254
相关主题