-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Python Web Development with Sanic
By :
You may have seen IPv4 addresses written in the format of 10.10.1.2/8 and wondered what /8 is all about. This is known as the network prefix. The network prefix is another format that is commonly used in the networking industry to easily represent a subnet mask.
You are probably wondering how /8 can represent the dotted-binary and dotted-decimal format of a subnet mask for an IPv4 address. To answer this question, take a look at Table 5.2, which shows the binary format of the subnet mask:
|
Class A- 255.0.0.0 |
11111111 00000000 00000000 00000000 |
Table 5.2: Class A subnet mask
When writing a subnet mask in binary, it is always written with a sequential series of 1s. There aren’t any 0s between the 1s of a subnet mask; the 0s are placed after the continuous stream of 1s has ended. Looking at the previous example, there are eight 1s in the...