Friday, September 19, 2014

Consequences of a subnet mask?



On a consumer-grade router, if I set a subnet mask to limit the number of concurrent users (for example, 255.255.255.248), could this cause problems for those users (accessing the web, etc)? Do I have to be aware of anything upstream at the ISP, or does this only affect my LAN?




Clarification



This is the part I didn't get fully answered in my earlier question, in case it looks familiar. I did learn that:




  • I need to make sure that DHCP has an address range that fits within the subnet mask range.

  • I need to remember that a couple of IP addresses will automatically be spoken for by the access point and/or gateway (and maybe the broadcast address?)


Answer



The big part about subnet masks is that all the members of the subnet have to agree what the mask is, otherwise they may have trouble talking to each other.




So you could reduce your mask to 255.255.255.248, but all the computers you want to be able to use the router would have to have the same netmask. If you then want those computers to talk to other computers beyond that netmask, they will either need a second interface (physical or virtual) on the second network, OR a route to a router which knows how to get between the two subnets.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...