Ip adresses and Subnet Masks...

smartguy90

Honorable
May 28, 2012
31
0
10,540
There are two Class A IP addresses, and two Class B IP Addresses connected to a router. What type of a subnet mask needs to be present in order to allow internet sharing?

I know that there are three classes of Subnets

A B C 255.0.0.0 , 255.255.0.0 and 255.255.255.0

Does a subnet have to match up with the class of the IP on the network? What I mean is.. say there is class A IPs

111.0.0.1 and 111.0.0.2 but there is also class B IPs

194.0.0.1 and 194.0.0.2


If I want to have these four computers to be on the same network, do I need to set a class A? B? or C? Subnet?

Confused,
 
Most consumer routers us DHCP. Just let windows get the ip automaticly from the router.

If for some reason you can't here is an easy model to follow.

Router will have its own ip from the factory like. 192.168.1.1.

so make computer 1 192.168.1.2
computer 2 192.168.1.3
computer 3 192.168.1.4
default gateway on all computers should be the IP of the router. 192.168.1.1
subnet is 255.255.255.0.

should be good to go.
 
If you just want the computers to go on the internet you can have the ips be anything you want as long as the default gateway is the routers IP.

If you want the computers to network with each other to share printers and drives then make the first 3 groups match, and the 4 group gets its own number.
192.168.200.1 will network with 192.168.200.50.

Subnet is alwasy 255.255.255.0
 
Yes, bucknutty is correct in saying if you just want them to be accessible to the internet then you should be fine whatever subnet they are on as long as it is on the same subnet as the gateway (router in this case) so it can route to the internet.

Simple explanation of subnets are essentially if two devices are not on the same subnet they will not communicate to each other. For your reference two devices one on class a subnet the other on class b subnet will not communicate. If you really want to know why visit this article because cisco explains it a lot better than I can.

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800a67f5.shtml