Question: what is the difference between default gateway and subnet mask?
Answer: What is the difference between a subnet mask and a gateway? ... In the latter case the packet is sent to a (default) gateway. An IPv4 subnet mask masks the net portion of an IP address where this host (meaning the one generating the packet) resides and is useful to compare to the destination address.