当前位置:网站首页>Role of subnet mask
Role of subnet mask
2022-07-22 01:08:00 【Love little Zhizhi forever~】
One 、 Concept
Subnet mask (subnet mask) Also called netmask 、 Address mask , It is used to indicate One IP Which bits of the address identify the subnet where the host is located , And which bits identify the host number mask . The subnet mask cannot exist alone , It has to be combined with IP Address used together . The subnet mask has only one function , It's about putting some IP The address is divided into network address and host address .
If a computer IP The address is configured to 172.16.122.204, The subnet mask is 255.255.0.0. Subnet mask sum IP Address and operation , The network segment of the computer is 172.16.0.0.
Two 、 Illustrations demonstrate
192.168. 80. 7 # IP Address
255.255.255. 0 # Subnet mask
192.168. 80. 1 # gateway
192.168. 90. 9 # IP Address
As shown above ,IP Address 192.168. 80. 7 The subnet mask of is 255.255.255. 0, So the IP The network segment of is 192.168. 80.0 Network segment . from IP Address 192.168. 80. 7 The purpose of the sent packet IP The address is 192.168. 90. 9 Words ,192.168. 80. 7 According to their own subnet mask 255.255.255. 0, And purpose IP Address 192.168. 90. 9 Do with the operation , Judge the destination address network segment as 192.168. 90.0 Network segment .192.168. 80.0 and 192.168. 90.0 Does not belong to the same network segment , So from IP Address 192.168. 80. 7 Data sent , Send it to your gateway 192.168. 80. 1 , Then the gateway sends it to the router and forwards it .
192.168. 80. 7 # IP Address
255.255. 0. 0 # Subnet mask
192.168. 80. 1 # gateway
192.168. 90. 9 # IP Address
As shown above ,IP Address 192.168. 80. 7 The subnet mask of is 255.255.0. 0, So the IP The network segment of is 192.168. 0.0 Network segment . from IP Address 192.168. 80. 7 The purpose of the sent packet IP The address is 192.168. 90. 9 Words ,192.168. 80. 7 According to their own subnet mask 255.255.0. 0, And purpose IP Address 192.168. 90. 9 Do with the operation , Judge the destination address network segment as 192.168. 0.0 Network segment .192.168. 0.0 and 192.168. 0.0 Belong to the same network segment , So from IP Address 192.168. 80. 7 Data sent , Will be forwarded in the local network , It will not be sent to the router .
边栏推荐
猜你喜欢
20220719给AIO-3568J适配OpenHarmony-v3.1-beta
【数据分析02】
镜头标定板秩事
Take the interface test in 2 hours - dark horse programmer, master the preparation of interface use cases, interface information analysis, interface information analysis through Oh packet capturing, a
OpenShift Security (17) - 将 OpenShift Compliance Operator 的合规扫描集成到 RHACS
Win10 display auto repair fails to boot normally
If else: is there a clock cycle difference between the judgment statement and the execution statement? Parallel execution? Is there a priority?
CentOS install redis
牛客刷题 01——KiKi去重整数并排序(C语言)
websocket 传输文件
随机推荐
[network security] common questions in interview -- SQL injection
Tokio channel performance test
2022 Blue Bridge Cup provincial match group B supplementary questions [decimal to decimal], [shunzi date], [question brushing statistics], [pruning shrubs]
Redis 官方可视化工具,高颜值,功能真心强大!
DOM -- anti shake and throttling
ITSM和ITIL
tokio channel性能测试
镜头标定板秩事
【RM_EE_Note】2 串口&遥控器
ROS 多坐标变换
2022蓝桥杯省赛b组补题[九进制转十进制],[顺子日期],[刷题统计],[ 修剪灌木]
Business based data governance, so that business data can play a long-term value
整数二分、浮点二分以及STL中的二分函数(lower_bound(),upper_bound())
Writing traffic lights with J S
Digitalization opens the second growth curve. Huawei summarizes three scenarios of cloud transformation of operators
C language 10 entry questions set
Process knowledge generalization
Web automation processing "sliding verification code"
HCIA NAT experiment report 7.14
BT.656接口速率