Possible Duplicate:
Configuring subnets quandry
I am new to the world of subnetworks and have been tasked as part of my internship to create 2 separate distint networks i.e. 192.168.1.0/24 and 192.168.2.0/24 each having 20 hosts for each subnetwork. Hence so far I have determined the following
For the network 192.168.1.0/24 I will have the following subnet masks, broadcasts and available hosts if I am to limit each subnet to 20 hosts/nodes
My network will be 192.168.1.0/27
The subnets will be
192.168.1.0
192.168.1.32
192.168.1.64
192.168.1.96
192.168.1.128
192.168.1.160
192.168.1.192
192.168.1.224
The broadcast addresses will be
192.168.1.31
192.168.1.63
192.168.1.95
192.168.1.127
192.168.1.159
192.168.1.191
192.168.1.223
The available number of host addresses will
192.168.1.1 - 192.168.1.30
192.168.1.33 - 192.168.1.62
192.168.1.65 - 192.168.1.94
192.168.1.97 - 192.168.1.126
192.168.1.129 - 192.168.1.158
192.168.1.161 - 192.168.1.190
192.168.1.193 - 192.168.1.222
192.168.1.225 - 192.168.1.254
For the network 192.168.2.0/24 I will have the following subnet masks, broadcasts and available hosts if I am to limit each subnet to 20 hosts/nodes
My network will be 192.168.2.0/27
The subnets will be
192.168.2.0
192.168.2.32
192.168.2.64
192.168.2.96
192.168.2.128
192.168.2.160
192.168.2.192
192.168.2.224
The broadcast address will be
192.168.2.31
192.168.2.63
192.168.2.95
192.168.2.127
192.168.2.159
192.168.2.191
192.168.2.223
The available number of host address will be
192.168.2.1 - 192.168.2.30
192.168.2.33 - 192.168.2.62
192.168.2.65 - 192.168.2.94
192.168.2.97 - 192.168.2.126
192.168.2.129 - 192.168.2.158
192.168.2.161 - 192.168.2.190
192.168.2.193 - 192.168.2.222
192.168.2.225 - 192.168.2.254
My questions are;
- Are my subnet masks, broadcast and available host address right?
- If they are correct and if I were setting up a single PC running Windows, the IP address would be 192.168.1.1, subnet mask would be 255.255.255.254 and the gateway would be say 192.168.1.254 (if that is the assigned gateway IP address). Is that right?
- Seeing we only have a single internet connection, what would I need to do to setup each subnet so that it could access the internet?
- What would I need to do if I need to allow particular subnets to communicate between each other e.g. 192.168.1.1 - 192.168.1.30 and 192.168.2.1 - 192.168.2.30, 192.168.1.65 - 192.168.1.94 and 192.168.2.65 - 192.168.2.94?
- Currently there is no DHCP server but if I were to introduce a DHCP server how would it look different? I take it I would need two DHCP servers for each network
- What type of router would I need?
- I am confused about when I would use a switch in this scenario