IP enables communication across networks, connecting not just physical links but also router networks using either IPv4 or IPv6 addresses. Networks can be divided into subnets using a netmask, which defines the network size and routing of packets. Netmasks can be represented in decimal format or slash notation, such as in the following examples:
IP Address |
Slash Notation |
Netmask |
10.0.0.1 |
/8 – Example: 10.0.0.1/8 |
255.0.0.0 |
172.16.1.1 |
/12 – Example: 172.16.1.1/12 |
255.240.0.0 |
192.168.0.1 |
/16 – Example: 192.168.0.1/16 |
255.255.0.0 |
192.168.0.1 |
/24 – Example: 192.168.0.1/24 |
255.255.255.0 |