[CentOS] 2nd NIC troubles

Tue Apr 16 18:35:29 UTC 2013
Les Mikesell <lesmikesell at gmail.com>

On Tue, Apr 16, 2013 at 1:05 PM, Jason T. Slack-Moehrle
<slackmoehrle at gmail.com> wrote:
> I do have another gateway at 10.0.254.1, it is a Linksys router that all
> the provate stuff plugs into, and that Linksys plugs directly into our
> modem.

You can only have one 'default' gateway.  Keep the one pointed to the
internet router.  Make a file named
/etc/sysconfig/network-scripts/route-eth1 to hold the route(s) handled
by the other interface.  Something like:
10.0.0.0/8 via 10.0.254.1
should work if you want the whole private class A space to go that way.
The ifup/ifdown scripts will add/remove the routes matching the interfaces.

--
   Les Mikesell
     lesmikesell at gmail.com