Because each IP defines certain subnet mask.
To find the subnet address, perform a bitwise AND operation between the destination address (198.47.34.31) and the subnet mask (255.255.244.0). In binary, the destination address is 11000110.00101111.00100010.00011111 and the subnet mask is 11111111.11111111.11110100.00000000. Performing the AND operation results in the subnet address of 198.47.32.0.
This is a network address
The network address of an IPv4 address of 192.168.7.5 with a subnet mask of 255.255.255.0 would be 192.168.7.0. Remember that the subnet mask determines the network portion of the IP Address.
255.255.255.0
255.255.255.0
it is a class c address..so default subnet mask is 255.255.255.0 it is a private address...
The default subnet mask for this address - a class A address - is 255.0.0.0 (same as /8).
There isn't just a single subnet mask that could be used for that address. The default subnet mask would be 255.0.0.0, but there could be others if the network is subnetted.
The default subnet mask would be 255.255.0.0 for a class B address.
if the ip address is 192.168.2.1 then the subnet mask should be 255.255.255.0
Subnet mask for the above is 255.0.0.0
To create a subnet ID, you start with the network's base IP address and subnet mask. The subnet mask determines how many bits are allocated for the network and how many for the hosts. By applying the subnet mask to the base IP address, you can identify the subnet ID, which represents the network portion of the address. For example, if your base IP is 192.168.1.0 with a subnet mask of 255.255.255.0, the subnet ID is 192.168.1.0.