当前位置:网站首页>根据IP地址和子网掩码求主机所在的网络地址和广播地址
根据IP地址和子网掩码求主机所在的网络地址和广播地址
2022-07-28 05:25:00 【Alice_wm】
例如:有ip202.112.14.137,掩码255.255.255.224 网络地址?广播地址?
255.255.255.224转成二进制数
11111111 11111111 11111111 11100000
网络号位数 主机号位数
将IP地址转成二进制数
11001011 01110000 00001110 10001001
将IP地址的主机号位变成0,有
11001011 01110000 00001110 10000000
转成十进制202.112.14.128,即为网络地址
将IP地址的主机号位变成1,有
11001011 01110000 00001110 10011111
转成十进制202.112.14.159,即为广播地址
主机号有5位,则25 -2=30个主机号位,减去2是因为要排除网络和广播地址。
边栏推荐
- Why should fluke dsx2-5000 network cable tester be calibrated once a year?
- PyTorch 学习笔记 4 —— 自动计算梯度下降 AUTOGRAD
- An example of bill printing
- set_ clock_ groups
- VAN(DWConv+DWDilationConv+PWConv)
- set_clock_groups
- Weight decay
- CLIP Learning Transferable Visual Models From Natural Language Supervision
- Beta distribution (probability of probability)
- What are the common English questions in the postgraduate interview?
猜你喜欢

EfficientNET_ V1

A NOVEL DEEP PARALLEL TIME-SERIES RELATION NETWORK FOR FAULT DIAGNOSIS

多个ics日历合并成单个ics日历

VAN(DWConv+DWDilationConv+PWConv)

Led selection - hardware learning notes 3

雷达成像 Matlab 仿真 3 —— 多目标检测

低功耗设计-isolation cell

Exploration of Clickhouse aggregation internal mechanism of aggregation

Install visual studio 2019 steps and vs2019 offline installation package on win7

Shuffle Net_ v1-shuffle_ v2
随机推荐
PT 基于Multi Voltage的Physical Aware
Electric fast burst (EFT) design - EMC series hardware design notes 4
Triode design, understanding saturation, linear region and cut-off region
Word邮件合并功能详解:合并后生成多个word文档,删除空白页
PyTorch 学习笔记 4 —— 自动计算梯度下降 AUTOGRAD
ICC2分析时序的神器 analyze_design_violations
Mae mask self encoding is scalable learning
Low power design -power switch
天线效应解决办法
Perl入门学习(十一)文件操作
How to test industrial Ethernet cables (using fluke dsx-8000)?
Measure computer battery capacity
clickhouse建宽表多少列最合适?
ICC2(一)Preparing the Design
Pytorch learning note 4 - automatic calculation of gradient descent autograd
Esxi on arm 10/22 update
PyTorch 学习笔记 2 —— About Tensor
IMS-FACNN(Improved Multi-Scale Convolution Neural Network integrated with a Feature Attention Mecha
Pycharm2019设置编辑器主题和默认代码
Perl introductory learning (VIII) subroutine