networking subnetting ip-addressing Purpose of subnet mask in ip networking What is the purpose of a subnet mask? A subnet mask is used in IP networking to divide an IP address into a network and host portion, helping to determine which part of the address identifies the network and which part identifies the specific device within that network.