
June 16th, 2012, 10:19 AM
|
|
|
|
In IPv4 (which you are using), the subnet mask determines which IP addresses belong to the same Subnet. The mask is applied bit wise to the address. In your particular case it is very simple, as the last byte (8 bits) is zero. Therefore, if the first 3 bytes of the destination address compare or match with the first 3 bytes of the source address, the 2 addresses are on the same subnet and packets will be routed directly. If they don't compare, packets will be routed to the gateway. In your case, the first 3 bytes do not compare, so they are not on the same subnet.
J.A. Coutts
|