[CentOS] CentOS 4.x - Multiple gateways

Tue Jun 6 02:07:22 UTC 2006
JJ <jj at thescottproject.com>

If it is just for static routes on a system with multiple nics, I prefer
using the route-<interface> in sysconfig.

 

i.e. /etc/sysconfig/network-scripts/route-eth1

 

192.168.1.0/24 via 10.0.0.250

192.168.2.0/24 via 10.0.0.250

192.168.3.0/24 via 10.0.0.250

 

This way the routes get cleaned up and re-added with an /etc/init.d/network
restart, unlike /etc/rc.local

 

J.J.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20060605/96c08bd5/attachment-0004.html>