• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 303
  • Last Modified:

Same subnet, different subnet mask, direct communication?

Hi Guys,
    I'm wondering if two computers on the same subnet can still communicate directly with each other, ie not through a router, if one has its subnet mask configured incorrectly, for example if the subnet of computer A is correctly 255.255.224.0 and the subnet of computer B is 255.255.0.0.
Yeh, i know that normally computers on different subnets have to go through a router or the default gateway but what if the subnet was configured like above?

Cheers,
phram3z
0
phram3z
Asked:
phram3z
  • 2
  • 2
2 Solutions
 
Chris DentPowerShell DeveloperCommented:

Only if they are within the same most restricted mask.

Any traffic outside the mask range will be sent to the Default Gateway (unless a static route has been specified), the route back just doesn't work.

Chris
0
 
Steve KnightIT ConsultancyCommented:
Agreed.  They would have to be within the 255.255.224.0 mask, e.g. if you were using
10.0.0.0 ranges then

Devices all within the range 10.0.0.1 to 10.0.31.254 can communicate
Likewise 10.0.32.1 to 10.0.63.254 etc.

In situations where mask or gateway has been set wrongly easiest remote fix is to jump onto a box within the same subnet and reconfigure it from there.

In your case as the mask has been set too big it will communicate fine within it's local LAN but another IP (such as 10.0.127.1 in the example above, e.g. a device on another subnet or over a WAN) won't be able to communicate with it because packets won't return to the default gateway as they will be seen as local.

If a WAN link goes to another address range outside the 255.255.0.0 mask, again not an issue.

Any particular problem here or just after a bit of background?

Steve
0
 
phram3zAuthor Commented:
thanks doods =P quite helpful
0
 
Chris DentPowerShell DeveloperCommented:
Pleasure :)

Chris
0
 
Steve KnightIT ConsultancyCommented:
No problem. Steve
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now