[CentOS] Static routes with a metric?

Sat Dec 17 15:37:08 UTC 2011
Ljubomir Ljubojevic <office at plnet.rs>

Vreme: 12/17/2011 05:43 AM, Mike Burger piše:
> Hi, Matt.
>
> Sorry for the top post, but my iPad mail client seems averse to allowing me to bottom post.
>
> Just wanted to take a moment to note that I believe you've got things a little bit reversed.
>
> The use Of the route-ethX files and the "ip" command are the "newer" method. Setting the NETMASK and ADDRESS in the ifcfg-ethX files has always been and continues to be the norm. Having the GATEWAY field in either the ifcfg-ethX files or in /etc/sysconofig/network is the older way of setting the default route.
>
> You're right, though...it was certainly less flexible. ;-)
>
> On Dec 15, 2011, at 12:54 PM, Matt Garman<matthew.garman at gmail.com>  wrote:
>

No, you got it wrong,

he was talking about that route-ethX, not ifcfg-ethX, supports NETMASK, 
ADDRESS, GATEWAY (in separate lines) format. I used it from 2006. You 
can add as much routes that way as you please:

NETMASK0=
ADDRESS0=
GATEWAY0=

NETMASK1=
ADDRESS1=
GATEWAY1=

NETMASK2=
ADDRESS2=
GATEWAY2=

...

-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant