Got it

Can two physically connected hosts communicate if they belong to different subnet?

Created: Jul 16, 2020 04:08:51Latest reply: Jul 16, 2020 22:41:32 476 6 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

If two host devices are from two different subnet but they are physically directly connected to each other. Can these two devices communicate with each other? Will it depends on the IP adresses, for example, both IP address are valid host address in the two subnet like 10.0.1.1/30 and 10.0.1.2/24?

Featured Answers
umaryaqub
MVE Created Jul 16, 2020 04:19:47

Hi!

It depends on the devices that are connected to each other. For example, if these devices are routers, you can advertise the route. That is the purpose of a router. Routers route packets between different networks.

Even if devices in different networks are on the same layer-2 broadcast domain, you need a router to let the devices communicate at layer-3. That is because each host will compare the destination layer-3 address and its own layer-3 address and mask to see if they are on the same network. If the destination host is on a different network, the host will send the packets in layer-2 frames to its configured gateway (router).

The host must assume that the destination network could be across the world from its network and the gateway is the host on the network that knows how to forward packets toward the destination network.

View more
  • x
  • convention:

user_3886049
user_3886049 Created Jul 16, 2020 04:29:55 (0) (0)
Hi.
Thanks for your prompt reply.
May I confirm with my example, that if both devices are not routers, just end devices, and host A with IP 10.0.1.1/30, when it is connected to host B with IP 10.0.1.2/24. When host A compare the destination layer-3 address 10.0.1.2 (Host B), will it see the host B on the same network, since 10.0.1.2 is also a valid host address in the /30 network?  
umaryaqub
umaryaqub Reply user_3886049  Created Jul 16, 2020 06:17:07 (0) (0)
Hi,

Technically, they shouldn't as in case of 10.0.1.1 we have only 2 useable IPs (10.0.1.1 and 10.0.1.2) but on the other end, subnet mask is entirely different.  
user_3886049
user_3886049 Reply umaryaqub  Created Jul 16, 2020 06:23:26 (0) (0)
Hi,
I see. So inclusion, the two hosts should be unable to ping each other.
Thank you very much  
All Answers
Hello, dear!
It's nice to meet you in the community.
We're working on your problem. Please be patient.
View more
  • x
  • convention:

Hi!

It depends on the devices that are connected to each other. For example, if these devices are routers, you can advertise the route. That is the purpose of a router. Routers route packets between different networks.

Even if devices in different networks are on the same layer-2 broadcast domain, you need a router to let the devices communicate at layer-3. That is because each host will compare the destination layer-3 address and its own layer-3 address and mask to see if they are on the same network. If the destination host is on a different network, the host will send the packets in layer-2 frames to its configured gateway (router).

The host must assume that the destination network could be across the world from its network and the gateway is the host on the network that knows how to forward packets toward the destination network.

View more
  • x
  • convention:

user_3886049
user_3886049 Created Jul 16, 2020 04:29:55 (0) (0)
Hi.
Thanks for your prompt reply.
May I confirm with my example, that if both devices are not routers, just end devices, and host A with IP 10.0.1.1/30, when it is connected to host B with IP 10.0.1.2/24. When host A compare the destination layer-3 address 10.0.1.2 (Host B), will it see the host B on the same network, since 10.0.1.2 is also a valid host address in the /30 network?  
umaryaqub
umaryaqub Reply user_3886049  Created Jul 16, 2020 06:17:07 (0) (0)
Hi,

Technically, they shouldn't as in case of 10.0.1.1 we have only 2 useable IPs (10.0.1.1 and 10.0.1.2) but on the other end, subnet mask is entirely different.  
user_3886049
user_3886049 Reply umaryaqub  Created Jul 16, 2020 06:23:26 (0) (0)
Hi,
I see. So inclusion, the two hosts should be unable to ping each other.
Thank you very much  
Can two physically connected hosts communicate if they belong to different subnet?-3371131-1
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.