分类: LINUX
2008-05-25 20:58:39
There are 2 methods to add persistent routes to a Red Hat Enterprise Linux 3 machine. I've been able to get one or the other of these to work on varying systems.
Redhat's KB articles on this topic
Note only route-eth0 works with XEN on RHEL5!
chasfer2008-12-18 10:28:27
以上redhat的两个参考链接已经打不开了,这里简单介绍一下: RHEL4或者RHEL5都可以通过修改/etc/sysconfig/network-scripts/route-eth(n)来添加静态路由(n为网卡编号).格式如下: # cat /etc/sysconfig/network-scripts/route-eth0 //以eth0为例 192.168.2.0/24 via 192.168.0.1 dev eth0 192.168.3.0/24 via 192.168.0.1 dev eth0 以上即表示到192.168.2.0/24及192.168.3.0/24的网段的数据通过eth0出去.