Re: Re: Is there a way to save the routing table permanently?

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



Currently, only one NIC wifi0.
AFAIK, /etc/rc.local will only be executed once after other init scripts. And this reverts the changes to default after restarting the network.

Thanks.




On Tue, Aug 19, 2008 at 10:22 PM, Rob Townley <rob.townley@xxxxxxxxx> wrote:
On Tue, Aug 19, 2008 at 11:32 AM, ABBAS KHAN <bashukhan@xxxxxxxxx> wrote:
Thanks Bob for the additional tip :)





On Tue, Aug 19, 2008 at 9:28 AM, Bob Beers <bob.beers@xxxxxxxxx> wrote:
IIANM, you can also use /etc/sysconfig/network-scripts/route-eth*, no?

Take a look at /etc/sysconfig/network-scripts/ifup-routes script.

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


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


How many NICs?
SELinux?

When you have SELinux, two NICs each that would use two different gateways, system-config-network is worthless whether using the GUI or text based one.  The route will not stay permanent.  ifup would not process either route.ethX nor ethX.route - at least not enough for it to show in route.  Had to set the routes in /etc/rc.local.   Of course, you can't set two default gateways, but you can add two routes via something like the following:

route add -net 0.0.0.0 netmask 0.0.0.0 gw     a.b.c.d    dev eth0
route add -net 0.0.0.0 netmask 0.0.0.0 gw     w.x.y.z    dev eth1


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


_______________________________________________
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