• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 482
  • Last Modified:

Connect two networks

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.


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.
1 Solution
Jeff PerryWindows AdministratorCommented:
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.
tolinromeAuthor Commented:
Thanks, this is a cisco 1841 router and I was hoping to use ospf if possible.
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.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

tolinromeAuthor Commented:
can you actually show the commands?
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.
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.
What type of routers are Network1DG and Network2DG?
tolinromeAuthor Commented:
Youre correct, I didn't have one of the connected switchports on the vlan. Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now