Subnets and gateways

0

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

A) 192.168.1.0

B) 192.168.1.64

C) 192.168.1.128

D) 192.168.1.192

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

user207572

Posted 2013-03-15T17:15:26.997

Reputation:

1Your 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 – 2013-03-15T17:17:53.323

but then, each subnet must have a router? – None – 2013-03-15T18:24:11.060

Answers

1

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.

psusi

Posted 2013-03-15T17:15:26.997

Reputation: 7 195

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. – None – 2013-03-15T18:49:07.427