On 03/25/2010 09:56 AM, Rainer Traut wrote:
> Am 25.03.2010 13:44, schrieb Tim Edwards:
>> On 25/03/10 13:37, Rainer Traut wrote:
>>> Here is a working example:
>>>
>>> # cat /etc/sysconfig/network-scripts/route-eth1
>>> ADDRESS0=192.168.200.0
>>> NETMASK0=255.255.255.0
>>> GATEWAY0=192.168.100.1
>>> ADDRESS1=192.168.101.0
>>> NETMASK1=255.255.255.0
>>> GATEWAY1=192.168.100.1
>>>
>
>> Note: The ifup-routes script also supports an older syntax designed
>> to be
>> used directly as an argument to "/sbin/ip route add". This syntax is
>> deprecated, but if no "ADDRESSn" lines are found the following will
>> still
>> work:
>>
>> 192.168.2.0/24 dev ppp0
>>
>> adds a network route to the 192.168.2.0 network through ppp0."
>
> Ok, it's not feasible to deploy a deprecated syntax to my machines - too
> many and too risky.
>
> So I guess it's not possible to do apply the routes if they are in newer
> syntax.
Can you not just run "ifup" on the interface and it will add just the
routes that are missing? You'll get some RT_NETLINK errors for those
routes that already exist, but the new routes will be added.
/Brian/
--
Brian Long | |
Corporate Security Programs Org . | | | . | | | .
' '
C I S C O
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list