?
Solved

Combining two subnets

Posted on 2008-10-31
12
Medium Priority
?
557 Views
Last Modified: 2012-06-27
I have two locations. One is a 192.168.1.0 network and one is a 192.168.2.0 network. I am putting a line inbetween the two networks and I want them to be able to talk. I am not routing, just a simple switch.

I was under the impression that all i need to do is change the subnet mask in both ranges to 255.255.253.0. Is this correct?
0
Comment
Question by:imagnl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22852293
Actually, the mask would need to be 255.255.252.0 at a minimum.  Is the line between locations an ethernet line?  If so, this should work.  If a T1, there is more to it.
0
 

Author Comment

by:imagnl
ID: 22852443
it is a Metro-E line,
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22852477
Okay, should work then.  You just need to change the subnet mask on every device.
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 10

Expert Comment

by:MPCP-Brian
ID: 22852535
Assuming there are no routers involved, as you stated, make sure each computer has the same subnet mask and you can use either of the options below:

Option1: Subnet of 255.255.252.0 and this will give you a complete range of 192.168.0.1 through 192.168.3.254.

Option 2: Subnet of 255.255.254.0 and this will give you a complete range of 192.168.0.1 through 192.168.1.254 ... OR ... 192.168.2.1 through 192.168.3.254.

Since you span 192.168.1.xxx and 192.168.2.xxx, you can use option 1 or change one of the network subnets, depending on security.
0
 

Author Comment

by:imagnl
ID: 22852921
I dont want to include 3 though. Can I use 253 if I just want 0, 1 and 2?
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22852969
Nope, 255.255.253.0 is not a valid mask.  It isn't a big deal if you aren't using 3.  In fact, it is there for future use if you need it.
0
 

Author Comment

by:imagnl
ID: 22853056
It is a big deal because I have another facility that we route to that is .3
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22853088
Okay, you didn't mention that.

Well, it may be simplest then to route between metro-e locations.  Otherwise, you will need to address one side and use a 255.255.254.0 mask.  192.168.0.0 and 192.168.1.0.
0
 

Author Comment

by:imagnl
ID: 22853115
What about going with 255.255.0.0?
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22853129
That just makes it bigger. 255.255.254.0 is the only one you can use unfortunately or keep two seperate 255.255.255.0's and route.

255.255.0.0 is 192.168.0.0 - 192.168.255.254
0
 
LVL 10

Expert Comment

by:MPCP-Brian
ID: 22853198
Since you don't want 192.168.3.xxx, you're only option is subnet mask 255.255.254.0 and change your 192.168.2.xxx subnet to 192.168.0.xxx, leaving the 192.168.1.xxx alone (option 2 in my original post).
Good luck!
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
ID: 22858504
Is that  192.168.3.0   a big network?  Do the other networks need to communicate with it often?
I see 5 options:
* Either stick with routing  between all networks
* Just change the subnet mask on the two networks anyways to 255.255.252.0.   Setup a router to utilize proxy arp on behalf of the third network.   This is suitable if the third network is small.
* Renumber the third network, so you can change the subnet mask of two other networks
* Renumber the other two networks, so you can change the subnet mask and combine just them
* Combine ALL 3 networks instead of just 2.



If you want to combine the two networks to the same Layer 2 network,  then you need to renumber the third so it will not be included in the subnet mask,   or mesh the third network as well by getting  Layer 2  bridges setup between the third network and each of the other two networks.

Should probably be two Bridges from the third network for redundancy,  each to the other two, with spanning tree protocol to help protect against loops, and the third network would need the same netmask change. I do not generally recommend expansive bridging like this this:  bridging across WAN interfaces is a bad idea, unless your WAN connections are comparable to your LAN connections.


Depending on the usage of that third network compared to the other two, it may be possible to NAT the 192.168.3  network using a static translation  as a transition mechanism.


It is generally ideal to place private networks on different /22s  or even different /20s, if you will not be ever combining them.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are thinking of adopting cloud services, or just curious as to what ‘the cloud’ can offer then the leader according to Gartner for Infrastructure as a Service (IaaS) is Amazon Web Services (AWS).  When I started using AWS I was completely new…
In this article, we’ll look at how to deploy ProxySQL.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question