Link to home
Start Free TrialLog in
Avatar of Foodcoman
Foodcoman

asked on

Routing 2 Seperate networks both directions.

Mandrake Linux 10.1, Dual NIC

Network 1) 192.168.x.x  Eth0  Bound 192.168.1.249
Network 2) 172.016.x.x  Eth1  Bound 172.016.100.102

I need to route in the following fashion.

1) I need to get various 172.016.x.x IP's to 192.168.1.4
    Example 172.016.014.020 --> 192.168.1.4

2) I need to get 192.168.1.100 to various 172.016.x.x
    Example: 192.168.1.100 --> 172.016.010.020

I am not sure what to even use to route both directions in this fashion. IPtables?  We are trying to keep the 2 networks separate other than implicit routes.  Each of these implicit routes can be completely open.

I have about 8 routes for each direction.
Trying to have this up and running by end of day Friday.  
Any assistance with location of configuration information within Mandrake will help that much more.
Avatar of blkline
blkline

On your Linux box:

echo 1> /proc/sys/net/ipv4/ip_forward

Now add a route entry to the machines on the 172...  network that points to  192.168.1.249, and vice-versa.

Assuming that you have no firewall in place it should just work.

I think that should do the trick.

BK
Avatar of Foodcoman

ASKER

Thank you, that helps some however, I need an implementation that will allow the linux box to handle this entirely.

This for 2 reasons.

1) Centralized Adminstration
2) Limited access to workstation

P.S.
I have no restrictions on using additional unused IP's for the Linux Box on each network to help with the implementation.
ASKER CERTIFIED SOLUTION
Avatar of blkline
blkline

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