Chinaunix首页 | 论坛 | 博客
  • 博客访问: 321483
  • 博文数量: 41
  • 博客积分: 1606
  • 博客等级: 上尉
  • 技术积分: 535
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-28 18:20
文章分类

全部博文(41)

文章存档

2013年(1)

2012年(8)

2011年(4)

2010年(8)

2009年(2)

2008年(18)

我的朋友

分类: 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.

  • /etc/sysconfig/network-scripts/route-eth0
  • /etc/sysconfig/static-routes

Redhat's KB articles on this topic

Note only route-eth0 works with XEN on RHEL5!

Retrieved from ""
阅读(1355) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

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出去.