A subnet is a logical grouping of devices on a LAN (local area network) that shares a common IP addresses prefix. For example, all devices that have 157.21. 0. … This partitioning is accomplished through the use of subnet masks. Devices on the same subnet share the same subnet mask.
What exactly is a subnet?
A subnet or subnetwork is a smaller network inside a large network. Subnetting makes network routing much more efficient.
What is my subnet mask Linux?
In order to find the subnet mask for your host, use the “ifconfig” command with the interface name and pipe it with the “grep” command to isolate the “mask” string. In this case, you are presented with subnet masks for every network interface (loopback interface included).