请问192.168.10.100/25与192.168.10.200/25是否在同一个网域内

鸟哥的一个题

192.168.10.100/25 , ip是class C,Net_ID 占24位,题目要求为25,即Host_ID借1给Net_ID

192      |      168     |     10       |      100

11000000   10100000   00001010  01100100

下面开始计算Network 与boardcast

11000000   10100000   0000101 0|0 | 1100100

----------------------------------------|--|-------------

ip被分成3段,第1段+第2段是Net_Id(25位) ,第3段(7位)是host_Id

计算Network将Host_Id(7位)全部变成0,最后结果是

11000000   10100000   00001010 |0 | 0000000

----------------------------------------|--|-------------

然后转成10进制后的结果就是

192.168.10.0

计算BoardCast将Host_Id全部变成1,最后结果是

11000000   10100000   0000101 0|0 | 1111111

----------------------------------------|--|-------------

然后转成10进制后的结果就是

192.168.10.127

同理计算192.168.10.200的network与boardcast

192      |      168     |     10       |      200

11000000   10100000   00001010  11001000

25位的Net 与 7位的host

11000000   10100000   00001010  1 | 1001000

将7位的host变成0000000

11000000   10100000   00001010  1 | 0000000

转10进制

network = 192.168.10.128

将7位的host变成1111111

11000000   10100000   00001010  1 | 1111111

boardcast = 192.168.10.255

题目结束

时间: 2024-08-03 22:21:50

请问192.168.10.100/25与192.168.10.200/25是否在同一个网域内的相关文章

[2016-05-11][51nod][1087 1 10 100 1000]

时间:2016-05-11 14:03:56 星期三 题目编号:[2016-05-11][51nod][1087 1 10 100 1000] 题目大意:1,10,100,1000-组成序列1101001000-,求这个序列的第N位是0还是1. 分析:第(k+1)×k2+1=n(k+1)×k2+1=n的时候,n位置的数字为1 #include<stdio.h> #include<math.h> using namespace std; int main(){ int t; scan

hadoop启动之后出现错误:Retrying connect to server: hadoop/192.168.73.100:9000. Already tried 0 time(s);

INFO ipc.Client: Retrying connect to server: hadoop/192.168.73.100:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) INFO ipc.Client: Retrying connect to server: hadoop/192.168.73.1

CRITICAL: VIP 192.168.1.100 not found on Master!

1.环境描述MHA MariaDB 10.1 2.报错信息MHA管理报错信息如下:tail -f /var/log/masterha/manager.logCRITICAL: VIP 192.168.1.100 not found on Master!Mon Sep 10 10:08:01 2018 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln226] Failed to get master_ip_failover_scri

解决“出现Unable to retrieve 192.168.0.100/var/www/html/images/install.img错误”

分析:我们必须了解这个错误出现在哪个阶段才能正确找到错误原因,出现这个错误时已经是在开机PXE引导顺利从dhcp server中获得了ip,(或者 光盘引导)均正常,而且正常的读取了ks文件,正确的找到了安装源,否则不会提示无法获取install.img文件.一般无法获取某个文件,不是该文件损坏就是网络不通的问题. 解决办法: 1)我们先证明安装源服务器是正常的,我们用其他机器下载install.img文件,使用下面的命令: wget http://192.168.0.100/var/www/h

docker maven 出错:Failed to execute goal com.spotify:docker-maven-plugin:...: Request error: POST https://192.168.99.100:2376/build?t=

Spring Boot项目构建docker镜像,出错Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli) on project SpringBoot2: Exception caught: Request error: POST https://192.168.99.100:2376/build?t=mytest/SpringBoot2: 500: HTTP 500 Internal S

class java.lang.Class has no zero-arg constructor and this will affect the serialization performance, dubbo version: 3.0.1, current host: 192.158.10.100

class java.lang.Class has no zero-arg constructor and this will affect the serialization performance, dubbo version: 3.0.1, current host: 192.158.10.100 提示提示对象没有序列化. 出现该情况是测试环境冲突.解决方法:测试环境该成开发环境. 在applicationContext-web.xml配置更改成开发环境: 原文地址:https://www

10.23 linux任务计划cron10.24chkconfig工具10.25 systemd管理服务10.26 unit介绍 10.27 target介绍

- 10.23 linux任务计划cron - 10.24 chkconfig工具 - 10.25 systemd管理服务 - 10.26 unit介绍 - 10.27 target介绍 - 扩展 1. anacron http://blog.csdn.net/strikers1982/article/details/4787226  2. xinetd服(默认机器没有安装这个服务,需要yum install xinetd安装) http://blog.sina.com.cn/s/blog_46

js实现随机选取[10,100)中的10个整数,存入一个数组,并排序。 另考虑(10,100]和[10,100]两种情况。

1.js实现随机选取[10,100)中的10个整数,存入一个数组,并排序. 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 </head> 7 <body> 8 <script type="text/java

1087 1 10 100 1000

1087 1 10 100 1000 题目来源: Ural 1209 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注 1,10,100,1000...组成序列1101001000...,求这个序列的第N位是0还是1. Input 第1行:一个数T,表示后面用作输入测试的数的数量.(1 <= T <= 10000) 第2 - T + 1行:每行1个数N.(1 <= N <= 10^9) Output 共T行,如果该位是0,输出0,如果该位