当前位置:网站首页>有关计网的五种类型题
有关计网的五种类型题
2022-06-25 10:10:00 【Yzhenfeng7】
五种类型题
假设一个主机的IP地址为192.168.5.121,而子网掩码为255.255.255.248,那么该主机的网络号是什么?
解: 子网掩码: 11111111 11111111 11111111 11111000
主机IP地址: 11000000 10101000 00000101 01111001
相与运算: 192.168.5.(01111000)=120
最终得网络号为 192.168.5.120
某计算机的IP地址为208.37.62.23,如果该网络的地址掩码是255.255.255.240,则该网络
最多可划分( )个子网,每个子网最多有( )台主机
解:地址掩码(子网掩码)前三个255 的二进制数都是1,240的二进制数是1111 0000
与IP地址(208.37.62. 0001 0111)进行相与运算得 208.37.62.(0001 0000),主机数目是2的4次方(主机二进制位数为4位)减去全0和全1等于14
同样每个子网也是2的四次方-2=14(台主机)
即16个子网,14台主机。
当A类网络地址34.0.0.0使用8位二进制位作子网地址时,子网掩码设置为?
解:
首先要知道a类地址默认子网掩码255.0.0.0 b类255.255.0.0 c类255.255.255.0
所以题目给出A类网络地址时,就是告诉你它的默认子网掩码是255.0.0.0
它说要使用8位二进制位作子网地址,说明是要将非零的最后一位后面的8个0置1,
也就是255.255.0.0
所以答案就是255.255.0.0。
某部门申请到一个C类IP地址,若要分成6个子网,其掩码应该为?
解:C类IP地址默认子网掩码是 255.255.255.0
若要分有6个子网,则应该要有2的三次方=8才够分
所以最后的主机号应该是1110 0000 =224
掩码:255.255.255.224
若子网掩码为255.255.255.192(1100 0000),下列IP地址属于同一个子网的是哪一项
解:将子网掩码和主机IP地址相与得到各自网络号,看两个选项是否在同一子网里
比如156.26.27.(71= 0100 0111)和156.26.27.(110= 0110 1110)
相与运算后两项结果:156.26.27.(0100 0000)和156.28.27.(0100 0000)
二者相同,所以在同一子网上。
边栏推荐
- DDS learning notes of opendds
- Redis(二)分布式锁与Redis集群搭建
- New school: no fraud Economics
- 性能之网络篇
- Detailed explanation of Android interview notes handler
- Free platform for wechat applet making, steps for wechat applet making
- How to build a wechat applet? How to open an applet?
- On binary tree
- Guiding principle - read source code
- Gradle download warehouse is slow
猜你喜欢

Kotlin advanced generic

Yolov5更换上采样方式

浅谈二叉树

NETCORE performance troubleshooting

Houdini图文笔记:Your driver settings have been set to force 4x Antialiasing in OpenGL applications问题的解决

What is CRA

String longest common prefix
![[dynamic planning] - Digital triangle](/img/79/79259ed8931a7968fb55f98a34d9e1.png)
[dynamic planning] - Digital triangle
![[RPC] i/o model - Rector mode of bio, NiO, AIO and NiO](/img/29/1945b130c7c6a575f7a56c51136e3a.jpg)
[RPC] i/o model - Rector mode of bio, NiO, AIO and NiO

Opencv learning (II) -- installing opencv on raspberry pie
随机推荐
Dependent properties, dependent additional properties, and type conversions
ScheduleMaster分布式任务调度中心基本使用和原理
Basic use and principle of Minio
Difference between malloc and calloc
虚幻引擎图文笔记:使用VAT(Vertex Aniamtion Texture)制作破碎特效(Houdini,UE4/UE5)上 Houdini端
The title of my composition is - "my district head father"
ES 学习
Comparison and evaluation of digicert and globalsign single domain ov SSL certificates
How to make small programs on wechat? How to make small programs on wechat
Oracle query comes with JDK version
【论文阅读|深读】DRNE:Deep Recursive Network Embedding with Regular Equivalence
Shardingsphere proxy 5.0 sub database and sub table (I)
SQL to object thinking vs SQL of object thinking
Principle of distribution: understanding the gossip protocol
Guiding principle - read source code
什么是 CRA
Shardingsphere proxy 4.1 sub database and sub table
Minio基本使用与原理
[RPC] i/o model - Rector mode of bio, NiO, AIO and NiO
The real difference between i++ and ++i