今天做作业做得头大(哭)
学新知识的过程总让人又爱又恨
好了进入正题:
作业问题:
Provide examples of two hosts on A class subnets (write two IP addresses in CIDR notation) that could communicate without a router and explain how you know they are on class A and how you know they could communicate without a router.
1. IP地址表示方法
IP地址根据网络ID的不同分为5种类型,A类地址、B类地址、C类地址、D类地址和E类地址。
A类:
A类IP地址: 一个A类IP地址由1字节的网络地址和3字节主机地址组成,网络地址的最高位必须是“0”, 地址范围从1.0.0.0 到126.0.0.0。可用的A类网络有126个,每个网络能容纳1亿多个主机。
0 000 0000 - 0 111 1111: 0-127
网络数: 2^7(1~126)(0:用于表示未知地址,127表示回环地址,两个都不能用)
每个网络中的主机数: 2^24-2
注意&#