FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 02-01-2012, 06:03 PM
Default ip route and nexthop: the "CentOS" way


I'm wanting to configure a CentOS 6 server to have a fall-back default route via
a second network interface.


- eth0 with on subnet gateway
- eth1 with on subnet gateway

Where eth0's network is a "back door" to the internet, and eth1's is the "front
door", I believe I can configure the routing table manually like this:

ip route default scope global
nexthop via dev eth1 weight 1
nexthop via dev eth0 weight 2

However, I've re-read the RHEL6 documents for configuring static routes here:


This kind of thing doesn't seem to fit into the scheme of
/etc/sysconfig/network-scripts/route-eth? described there, since the route isn't
"for" any single interface. Is there a "RHEL/CentOS" way to do this, or do I
need to resort to some sort of script containing the above ip route command
inserted somewhere?

And how do I stop CentOS from trying to pick its own default gateway settings
(since /etc/sysconfig/network likely won't have a GATEWAY parameter)?



ps. Hints about this obtained from

CentOS mailing list

Thread Tools

All times are GMT. The time now is 07:20 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org