LingaringBell
IS-IT--Management
I have two buildings, lets call them A and B. The buildings are connected by a T1 PTP. Each building also has a few public internet gateways, so all the users in Building A reach the internet through the gateways in Building A and vice-versa. Occasionally, the PTP between the buildings goes down, so then users in Building A can't communicate with the users in Building B (duh). I'm looking for an idea to get the two buildings communicating again by using the gateways instead of the PTP. Here is what I have tried:
1.) Tried to route private IPs to public IPs (I'm pretty sure this is impossible, but I've been wrong before)
Example:
Router in Building A has public IP 1.1.1.1
Private LAN in Building A is 192.168.1.0/24
Router in Building B has public IP 2.2.2.2
Private LAN in Building B is 192.168.2.0/24
On Router A I put a static route that says:
ip route 192.168.2.0 255.255.255.0 2.2.2.2
and then vice versa on Router B.
Now I'm pretty sure this won't work (and it hasn't in my tests), but I've never really understood why not.
2.) Use NAT
This idea is easy if I am trying to re-route a single IP address, but I'm not sure how to do it for a whole subnet range.
Example:
Router in Building A has public IP 1.1.1.1
Has IP address 1.1.1.2 directed towards it
Private LAN in Building A is 192.168.1.0/24
Router in Building B has public IP 2.2.2.2
Private LAN in Building B is 192.168.2.0/24
Then lets say I want to let Building B connect to IP address 192.168.1.5
On router B I put a NAT rule that says:
ip nat outside source static 1.1.1.2 192.168.1.5
and on Router A I put a NAT rule that says:
ip nat inside source static 192.168.1.5 1.1.1.2
This works fine, but can I do it for a whole subnet? I've never tried to use the "source network" command with a NAT outside rule. Will this even work?
If anyone has any better ideas, I'm all ears. Thanks for reading this long post.
-Bell
1.) Tried to route private IPs to public IPs (I'm pretty sure this is impossible, but I've been wrong before)
Example:
Router in Building A has public IP 1.1.1.1
Private LAN in Building A is 192.168.1.0/24
Router in Building B has public IP 2.2.2.2
Private LAN in Building B is 192.168.2.0/24
On Router A I put a static route that says:
ip route 192.168.2.0 255.255.255.0 2.2.2.2
and then vice versa on Router B.
Now I'm pretty sure this won't work (and it hasn't in my tests), but I've never really understood why not.
2.) Use NAT
This idea is easy if I am trying to re-route a single IP address, but I'm not sure how to do it for a whole subnet range.
Example:
Router in Building A has public IP 1.1.1.1
Has IP address 1.1.1.2 directed towards it
Private LAN in Building A is 192.168.1.0/24
Router in Building B has public IP 2.2.2.2
Private LAN in Building B is 192.168.2.0/24
Then lets say I want to let Building B connect to IP address 192.168.1.5
On router B I put a NAT rule that says:
ip nat outside source static 1.1.1.2 192.168.1.5
and on Router A I put a NAT rule that says:
ip nat inside source static 192.168.1.5 1.1.1.2
This works fine, but can I do it for a whole subnet? I've never tried to use the "source network" command with a NAT outside rule. Will this even work?
If anyone has any better ideas, I'm all ears. Thanks for reading this long post.
-Bell