cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 
cancel
1507
Visitas
0
ÚTIL
1
Respuestas

How to find in whether two hosts belong to same network or not ?

radhagogia
Level 1
Level 1

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 .

1 SOLUCIÓN ACEPTADA

Soluciones aceptadas

Diana Karolina Rojas
Cisco Employee
Cisco Employee

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,

Ver la solución en mensaje original publicado

1 RESPUESTA 1

Diana Karolina Rojas
Cisco Employee
Cisco Employee

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,

Review Cisco Networking for a $25 gift card