| Connecting one system to multiple networks |
|
|
| Linux |
|
Q. I have a Linux server that connects to the external network and internal. Both network cards have a gateway. How can I set it up, so that it can access both networks? A. You would need to set up source routing. This can be done fairly easily, following those steps: Open up /etc/iproute2/rt_tables, add those two at the bottom:
1 first Open up /etc/rc.local add the following (before exit 0):
ip route add 192.168.0.0/24 dev eth0 src 192.168.0.15 table first Network 1 information:
Network 2 information: It doesn't really matter if one network is external and the other internal in this setup, you can pick either one and replace the values with your own settings.
|
| Last Updated on Monday, 28 November 2011 15:31 |

