Division of subnet mask 2
# talking about the division of subnet mask, in fact, it was written last time
# Last time, it was about dividing a large network into several small networks. Today, it is about turning a small network into a large network segment.
# example: if a company now has a 300 computer terminal, the network equipment is a router and a stupid switch, and now 300 computers need to be divided into the same network segment
# first of all, we will definitely think of the class c private address, as we all know, it defaults to 192.168.0.0-192.168.255.255 / / this is the range
Subnet mask: 255.255.255.0
# A network segment defaults to 256 hosts and 254 are available, so we don't have enough addresses
That's the point: then we need to borrow one bit from the Internet:
The host bit becomes 2 to the 9th power, with a total of 512 hosts, which fully meets the above requirements, and the network bit becomes 32-923.
So: the ip address, and the subnet mask become the following:
192.168.00000000.00000000 / / IP address
255.255.11111110.00000000 / / Subnet Mask
When the network bit decreases by one bit, the host bit increases by 2 to the power of n segments / / this is my own summary.
N represents the number of borrowed digits, and borrowing a bit represents a host with an increase of 2 to the power of 1, but the hosts of both segments are on the same segment because their masks are both
255.255.254.0
The network segments it has added are
192.168.00000000.00000000-192.168.00000000.11111111
192.168.00000001.00000000-192.168.00000001.11111111
The conversion to decimal are:
192.168.0.0Muray 192.168.0.255 / / this is the ip address range.
192.168.1.0--192.168.1.255
The subnet mask is converted to decimal:
255.255.11111110.00000000
255.255.254.0
Description: 192.168.0.0 / 23-192.168.1.0 / 23 is the same network segment
Examples are as follows:
The IP addresses in the figure above are 192.168.0.1 255.255.254.0 and 192.168.1.1 255.255.254.0, respectively.
As shown in the following figure:
# because they are on the same network segment, there is no gateway address. Their gateway can be set freely between them, any ip address can be used.
# Verification and testing: ping 192.168.1.1 is shown below:
# the above figure shows that they are on the same network segment and the test is successful
_
End
That's all for today. Today's experiment hasn't been finished yet.