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:
Open up /etc/rc.local add the following (before exit 0):
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.