Solved

Connect two networks

Posted on 2013-12-20
8
462 Views
Last Modified: 2013-12-21
How do I connect two networks with one router? I have 2 separate networks that are joined to the same router but they cant see each other. I dont know what to do inside the router, which commands to use to connect them.

Network
pc------switch------router---------switch--------pc

On the router I assigned the default gateway IP to one interface and the other default gateway for the other network to the other interface. Each network can communicate with its self and reach their own default gateway. These are layer 2 switches on each network and one router in the middle.
Thanks.
0
Comment
Question by:tolinrome
8 Comments
 
LVL 8

Expert Comment

by:Jeff Perry
ID: 39732945
enable
conf t
router rip version 2
network <network id>
network <network id>

This is the simplest configuration for a router using a cisco router and ios.

Any other small home router you would just add the network ids along with the interface you have addressed as the gateway for those networks into the appropriate section.
0
 
LVL 7

Author Comment

by:tolinrome
ID: 39732955
Thanks, this is a cisco 1841 router and I was hoping to use ospf if possible.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39733195
The simplest way to do this is on the default router for each subnet add a route for the other network pointing to the "common" router.

What you have is:

Network1DG <--> Network1 <--> Common Router <---> Network2 <--. Network2DG

On Network1DG  define a route to Network2 pointing to the IP address that Common Router has is Network1.


On Network2DG  define a route to Network1 pointing to the IP address that Common Router has is Network2.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 7

Author Comment

by:tolinrome
ID: 39733227
can you actually show the commands?
0
 
LVL 11

Accepted Solution

by:
Miftaul earned 500 total points
ID: 39733245
NO routing required if there is only one router directly connecting to two different networks in its two interfaces.

Can you give us the output of "Show IP Route" and "show IP interface brief"

There must be some oversight on the router configuration.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39733555
Miftaul, that is what I though initially.  

However based on the way the question is stated the default route for each of the subnets is NOT the common router, thus my diagram to verify the setup.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39733559
What type of routers are Network1DG and Network2DG?
0
 
LVL 7

Author Closing Comment

by:tolinrome
ID: 39733944
Youre correct, I didn't have one of the connected switchports on the vlan. Thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advise on connecting 3 switches via fibre 4 48
Home network with two AP's dropping WiFi connectivity 12 50
spanning tree loop even though stp is enabled 10 34
VLAN Question! 9 49
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
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…

809 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