How to setup a Cisco 2901 router to route between two internal networks

The router has two ethernet ports, and I have configured an ip address from each of my networks on one of the ports.  i.e.  Ethernet port 0/0 - 192.168.1.0, and Ethernet port 0/1 - 192.168.2.0.

I would like to setup routing from the one network to the other other, i.e. route from 192.168.1.0 to 192.168.2.0.  Can you give me some pointers?  Thanks.
CherokeeITAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
lruiz52Connect With a Mentor Commented:
In your example you cant use 192.168.1.0 and 192.168.2.0 because in a class c subnet those would be the network address, you can however use 192.168.1.1 for Ethernet port 0/0 and 192.168.2.1 for Ethernet port 0/1. use 255.255.255.0 as the Subnet Mask for both.

so it would look like
config terminal
         interface ethernet 0/0
                  ip address 192.168.1.1 255.255.255.0
         interface ethernet 0/1
                  ip address 192.168.2.1 255.255.255.0
                  end

you should be able to route between both networks connected to the router just be sure you enable ip routing.

configure terminal
       ip routing
       end

on your router, list your current routing table with command
show ip route

you should see both 192.168.1.0 and 192.168.2.0 with a C infront of it.

no on nodes on the 192.168.1.0 network make sure you assign default gateway 192.168.1.1 and on nodes on the 192.168.2.0 network assign default gateway 192.168.2.1
0
 
fgasimzadeCommented:
Where the router interfaces are connected? If it is a switch (I assume so), you would need to plug them to appropriate vlans
0
All Courses

From novice to tech pro — start learning today.