Solved

Routing 2 Seperate networks both directions.

Posted on 2004-10-07
3
321 Views
Last Modified: 2010-03-18
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.
0
Comment
Question by:Foodcoman
  • 2
3 Comments
 
LVL 6

Expert Comment

by:blkline
ID: 12254039
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
0
 

Author Comment

by:Foodcoman
ID: 12254339
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.
0
 
LVL 6

Accepted Solution

by:
blkline earned 500 total points
ID: 12254425
You need to tell the clients how to reach machines on the other network.  So you have few choices:  

1) configure each client so that they know to use that Linux box as a gateway for a particular network, or
2) configure the router that services each network to use the Linux box as a next hop for the other network, or\
3) configure the Linux box as the default router for each network and go from there to another router for outside both nets.

You didn't give much detail about your network, so I can't give much of an answer other than that.  If you want, draw a small ASCII diagram and provide more detail and we can go from there.

Barry
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux dns for internal resolve 2 59
OpenWrt 1 47
IPA and Samba (and NFS and Samba....) 1 141
looking for a CENTOS ISO to download with x window installed 2 51
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question