Link to home
Start Free TrialLog in
Avatar of BR_
BR_Flag for United States of America

asked on

How do I redirect the traffic for one IP address on one subnet to another IP address on another subnet using Cisco 1921 Routers

How do I redirect traffic for one IP address on one subnet to an IP address on another subnet.

    Main Network
      192.168.1.0       255.255.255.0 192.168.1.1
    Cisco 1921 Router
      10.10.10.1      255.255.255.0
           |
           |
      10.10.10.2      255.255.255.0
   Cisco 1921 Router
192.168.4.1               255.255.255.0 192.168.4.1
 Remote Network

Traffic sent by 192.168.4.150 server needs to be redirected to 192.168.1.7 on the Main Network.
Avatar of David Akinsanya
David Akinsanya
Flag of United States of America image

If I understand you correctly, the two networks are not able to communicate with each other.

If yes, you will need to implement routing between the two networks.

By remote network, do you mean outside your firewall, over the internet or different site.

If the networks are behind the same firewall
- On the 1921 router, type the following route statement
Router>en
Router#conf t
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.1

On the remote router
Router>en
Router#conf t
Router(config)#ip route 192.168.4.0 255.255.255.0 192.168.1.1

Please provide a diagram and answer to the questions. I have a feeling the remote network is behind a different firewall. if so there's a lot more to it than described above
Avatar of Fidelius
On Main network Cisco 1921 router enter following:
Router(config)#ip route 192.168.4.0 255.255.255.0 10.10.10.2

On Remote network Cisco 1921 router enter following:
Router(config)#ip route 192.168.1.0 255.255.255.0 10.10.10.1

Regards!
Avatar of BR_

ASKER

The two networks are connected via Metro Ethernet and can communicate with each other perfectly.

The two Cisco 1921 routers are configured with:

Main Network Cisco router:         ip route 192.168.4.0 255.255.255.0 10.10.10.2

Remote Network Cisco router     ip route 192.168.1.0 255.255.255.0 10.10.10.1

The problem I have is getting the traffic for 192.168.4.190 at our second location to go directly to 192.168.1.7.

I have uploaded a diagram.
Metro.pdf
Avatar of BR_

ASKER

I found the solution to my problem. I was using my source address. I should have been using my destination address.
I entered the route using my destination address and was able to connect.

Thank you all for your input.
Excellent
Avatar of BR_

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for BR_'s comment #a40663971

for the following reason:

My mistake. When I created my route I used the source address instead of the destination address. When I changed it to the destination address it worked.
ASKER CERTIFIED SOLUTION
Avatar of David Akinsanya
David Akinsanya
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BR_

ASKER

Sorry - I thought I had closed this question.