and we have a subnet mask : 255.255.255.0
we are looking for the network address
in order to figure that out we need to first convert them to binary:
11000000.10101000.00010100.00000101 ip address
11111111.11111111.11111111.00000000 subnet mask
so what you do after this is view the 1's and 0's. in every place there's a 1 in
the Ip address and a 1 in the subnet mask write down a 1, if there numbers are not
1 and 1 then you write a 0 and focus on the next octal(I think that's how its
spelled) this still applies if its:
0 and 1
0 and 0
1 and 0
it has to be 1 and 1 for it to be equal to 1!!
so the result should come out something like this:
11000000.10000000.00010100.00000000
this might not seem like much but this is our network address😼
convert this back from binary then this should be your network address:
192.128.20.0 network address
the lazy way (the way I enjoy) would be to just view the subnet mask and where ever
the address is 0 that's where your host address starts
192.168.20.5
255.255.255.0
so now that we know it starts in the last octale we just add a 0 to our ip address
and we done
192.168.20.0