Re: Multiple Internet facing Nics - Gateway issue

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



Lucian@xxxxxxxxxxx ha scritto:
> On Thu, Jul 2, 2009 at 10:05 AM, Lorenzo
> Quatrini<lorenzo.quatrini@xxxxxxxxx> wrote:
>> John R Pierce ha scritto:
>>
>>> now, these commands are NOT persistent, and, AFAIK, RHEL has no
>>> provision for `ip route` or rule commands, so I end up sticking this
>>> stuff in /etc/rc.d/rc.local or something.
>>>
>> I was facing the same problem some time ago... what is the right place to put
>> "ip route" commands and configuration files?
>> Does someone have a better place other than rc.local?
>> If I put them in rc.local, is there a way to issue a command like "service
>> network restart"?
>>
>>
> 
> Yeah, in /etc/sysconfig/network-scripts/
> e.g.
> /etc/sysconfig/network-scripts/route-eth0
> 
> I got something like: aaa.bbb.ccc.0/24 dev eth0 in there

Yes, that's the default on CentOS... but can I put iproute2 commands and
configuration files there? Where do I put the configuration to have something like

ip route add default scope global nexthop via aa.bb.cc.dd weight 10 nexthop via
xx.yy.zz.tt 1 weight 20



_______________________________________________
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