Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a doubt with subnets and their gateways. For example assume I have four subnets using a mask of





If the router only can has an address (let's say, which are the gateways of the subnets B,C and D and how are they going to have internet connection?

share|improve this question
Your gateway must have an address on the subnet or it won't be accessible by other devices on the subnet. So in your example given above only the devices in subnet A would be able to access the gateway. – heavyd Mar 15 '13 at 17:17
but then, each subnet must have a router? – user207572 Mar 15 '13 at 18:24
up vote 1 down vote accepted

Subnets are logically isolated from each other so yes, if you want each subnet to have a router, then you have to put a router in each subnet. Of course, you can put one physical router into 4 logical subnets by assigning it multiple addresses, one per subnet. If you can't assign multiple addresses to your router, then you're out of luck for 3 of the subnets.

share|improve this answer
I'm just checking Google pictures and I'm seeing that each subnet has a router. I don't know why I had in mind that only a router were needed. – user207572 Mar 15 '13 at 18:49

You must log in to answer this question.