- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- LAN Routing
- >
- Connecting 2 networks with different subnets
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2015 01:43 PM - edited 04-21-2015 01:44 PM
04-21-2015 01:43 PM - edited 04-21-2015 01:44 PM
Connecting 2 networks with different subnets
Hi,
I have 2 buildings- each with their own networks, switches, routers etc.
Building A is on the 192.168.168.0 network and Building B is on the 192.168.1.0 network.
We ran fiber to connect the 2 buildings together. I am using a static route on my router to get the networks to talk to each other- but I think it is slowing things down- I'm only getting 90-150Mbps instead of 500-1000Mbps.
So I want to try having the switches do the routing. I've attached a diagram of the current network topology.
From what I understand- I need to create a new VLAN on each switch- with the IP address of the other buildings network. Then add the fiber port # on the switch to that new VLAN as TAGGED. Then enable IP Routing on both switches.
My question is:
1) Is that all I need to do?
2) What IP should I give the VLAN- a random IP- or something like 192.168.1.0 (the whole network)?
3) I still want the router to deal with all other routing- will doing this interfere?
Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2015 07:08 PM - edited 04-22-2015 07:11 PM
04-22-2015 07:08 PM - edited 04-22-2015 07:11 PM
Re: Connecting 2 networks with different subnets
If you enable routing on both switches, you will need to:
1. Change all your hosts' default GWs to point at the switch IP address instead of the router IP address
(eg, building A hosts' default GW needs to be 192.168.168.1)
2. Add to each switch a default route pointing at its local router
(eg, Building A needs 0.0.0.0 0.0.0.0 --> 192.168.168.168)
3. Create on each switch a new VLAN, VLAN2, giving it an address of, eg, 192.168.99.1 at Building A, and 192.168.99.2 at Building B
4. Add to each switch a static route for the other switch's subnet pointing at the other switch's IP address in VLAN2.
(eg, Building A needs 192.168.1.0/24-->192.168.99.2)
5. On both switches, on the switchport that is patched to the other switch, change it to VLAN2 Untagged.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2015 06:28 AM
04-27-2015 06:28 AM
Re: Connecting 2 networks with different subnets
Thank you very much- it worked.
2 things to point out.
1) You can get around having to change the Gateway IP on every device by simply swapping the switch IP with the router (former gateway) IP. This way all devices are still pointing to the correct gatweay.
2) To ensure that DHCP works correctly: Set a ip helper address of the same side router and change the DHCP server gateway address to be the switch.