Ed Brown schrieb:
> Broekman, Maarten wrote:
>> The only thing you can do is set up static routes for each subnet that
>> you want to have go over a specific network.
>
> I wish RedHat would document setting static routes for RHEL-5 (at
> least I haven't found it if it exists), but this I think sums it up well:
>
> http://www.grokzit.com/content/view/41/26/

irc 1)  is what  `system-config-network`  does
1)Edit the file /etc/sysconfig/network-scripts/route-<eth#> and add the
following lines  
    GATEWAY0=<gateway address>
    NETMASK0=<network netmask>
    ADDRESS0=<network address>
    GATEWAY1=<gateway address>
    NETMASK1=<network netmask>
    ADDRESS1=<network address>



http://www.akadia.com/services/redhat_static_routes.html

Edit your */etc/rc.local* file and add your static routes using the
route statement.

Example:

*route add -net 10.10.98.0 netmask 255.255.255.0 gw 10.164.234.132 dev eth1
route add -net 10.164.234.96 netmask 255.255.255.252 gw 10.164.234.132
dev eth1
route add -net 10.164.234.112 netmask 255.255.255.240 gw 10.164.234.132
dev eth1*


-- 
shrek-m

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to