04-03-2018 11:04 PM - editado 03-01-2019 06:30 PM
If IP address of a host A is 200.1.2.10 and subnet mask of host A is 255.255.255.128 .
IP Address of host B is 200.1.2.69 and subnet mask of host B is 255.255.255.192 .
Network ID of Host A is 200.1.2.0
Network ID of Host B is 200.1.2.64
Now for host A , Host B is in the same subnet ( By performing AND operation of the subnet mask of A and IP address of host B ) .
For Host B , Host A is in the different subnet ( By performing AND operation of subnet mask of B and IP address of Host A )
So , if host A has to send any packet to Host B , it will send it directly while Host B will send the packet to its default gateway and then the gateway will send it to Host A .
So in general scenario , Host A and B in the same subnet or in different subnet ?
Please explain precisely .
¡Resuelto! Ir a solución.
el 04-04-2018 06:57 AM
Good morning estimated!
In your last example, you showed an IP addresses overlap, your host 200.1.2.69 subnet mask 255.255.255.192 is being overlaping for Host A network, remmenber you have to do a desing of your addressing scheme, your host A is in a network with cover from 200.1.2.0 - 200.1.2.127, so like you said in your post host A will send a packet directly while Host B will send the packet to its default gateway and then the gateway will send it to Host A because there is 2 perspectives from the hosts and this shouln't happen in a real scenario, this is a demostration of bad desing, taking into account the network of host A your next subnet have to be 200.1.2.128/25.
------I hope this can be uselful to you, do not forget to rate useful post-----
Regards,
el 04-04-2018 06:57 AM
Good morning estimated!
In your last example, you showed an IP addresses overlap, your host 200.1.2.69 subnet mask 255.255.255.192 is being overlaping for Host A network, remmenber you have to do a desing of your addressing scheme, your host A is in a network with cover from 200.1.2.0 - 200.1.2.127, so like you said in your post host A will send a packet directly while Host B will send the packet to its default gateway and then the gateway will send it to Host A because there is 2 perspectives from the hosts and this shouln't happen in a real scenario, this is a demostration of bad desing, taking into account the network of host A your next subnet have to be 200.1.2.128/25.
------I hope this can be uselful to you, do not forget to rate useful post-----
Regards,
Descubra y salve sus notas favoritas. Vuelva a encontrar las respuestas de los expertos, guías paso a paso, temas recientes y mucho más.
¿Es nuevo por aquí? Empiece con estos tips. Cómo usar la comunidad Guía para nuevos miembros