RE: [CentOS] CentOS 4.x - Multiple gateways

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux