How to network 2 computers on same swicth with different IP

Thrackhamator

Reputable
Sep 3, 2014
3
0
4,510
Hi all,

Could anyone highlight if this is possible.

I have 2 PC's connected to a WNR2200 (netgear) router. I have DHCP off. Each machine has its own IP

192.168.1.2 (Works on internet as gateway is 192.168.1.1)
192.168.2.2 (doesn't work on internet as gateway is on a different IP range)

Subnets are both 255.255.255.0

Default gateway

192.168.1.1, I want to be able to have both machines see each other is this something to do with Subnets? is it possible?

Thanks in advance.
 
Solution
In the simplest networks you need to the subnets to all match on all equipment. Although there are some very non standard configurations that you can make work with the subnets not the same it is best not to even consider this a possibility until you have full master the standard concept of subnets.

Part of your confusion I suspect is that with consumer "routers" your only option is to make the subnets match. If the device that were sold in all the big box stores were actual routers and not gateways you would have other ways to solve this. The key definition of a router is its ability to pass traffic between machines on different subnets. So you put one group of pc in 192.168.1.x/24 and the other in 192.168.2.x/24 and the router...

Thrackhamator

Reputable
Sep 3, 2014
3
0
4,510


thanks for the response, its more of an excercise for me to get to grips with what can be done.

So you say I can keep both IP addresses
192.168.1.2
192.168.2.2

and just make both subnets 255.255.252.0

For the router would i need to change the subnet?

Again thanks for such a prompt reply.
 

Thrackhamator

Reputable
Sep 3, 2014
3
0
4,510


Thanks.

Just discovered the router already has an Subnet 255.255.255.248

I've look around the internet for a easy guide on subnets but seem to be getting bombarded. Do you know of any? As I don't want to keep asking you too many questions.

 

adubs1989

Reputable
Sep 3, 2014
13
0
4,520
Subnetting can be pretty hard as you have to use binary to calculate the subnets. Just try and find a subnet calculator on google. Or you can look up tutorials on how to do it on youtube, but that can take a while to learn.
 
In the simplest networks you need to the subnets to all match on all equipment. Although there are some very non standard configurations that you can make work with the subnets not the same it is best not to even consider this a possibility until you have full master the standard concept of subnets.

Part of your confusion I suspect is that with consumer "routers" your only option is to make the subnets match. If the device that were sold in all the big box stores were actual routers and not gateways you would have other ways to solve this. The key definition of a router is its ability to pass traffic between machines on different subnets. So you put one group of pc in 192.168.1.x/24 and the other in 192.168.2.x/24 and the router would make it work because it would have a ip in each of these subnets. There used to be a huge penalty to running routed networks compared to switched but this is largely not true anymore.

To really be able to play with and learn how subnet masks work you are going to have to be able to play with actual routers. You can memorize the tables and learn how to do the math but you will never really understand it until you can really use commands to send data and see how it flows.

Although it is going to be quite a learning curve I would look at the commercial cisco routers. These have the most resources and example available to you on the internet . The good news is you can get a program called "packet tracer" that lets you play with simulated routers so you are not going to have to spend a lot of money on real routers. Although I would not at your stage say to actually pursue the CCNA certification a lot of the very early material in that certification is related to subnets. You should be able to find the very basic stuff for free. There are books that not extremely expensive...and then of course you have the cisco academy if you want to pay someone to teach you.
 
Solution