redhat linux 6.8怎么添加多网卡的永久静态路由?

现在有个问题,想咨询各位大牛:
需求背景:现有一台redhat 6.8物理机,安装有三块网卡,第一块网卡eth0设置走业务流量,第二块eth1走oracle的心跳流量,第三块eth2走带内管理流量。想在redhat 6.8上面添加永久静态路由(重启,service network restart 都不能影响添加的静态路由),使用route add 重启机器会清除。查看网络上写的创建/etc/sysconfig/static-routes,里面写了路由,发现service network restart 后,里面的路由貌似仍然未生效。哪位高手、专家能给个方法吗?谢谢

参与15

4同行回答

yifu1024yifu1024系统工程师上海天玑
rhel6参考:11.5. CONFIGURING STATIC ROUTES IN IFCFG FILEShttps://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_static_routes_in_ifcfg_files显示全部
互联网服务 · 2019-03-09
浏览3954
dw289042702dw289042702系统运维工程师tskj
可以试试把route add语句添加到rc.local中,让它每次重启都自动执行。显示全部

可以试试把route add语句添加到rc.local中,让它每次重启都自动执行。

收起
IT咨询服务 · 2019-03-09
浏览4155
hedanhedan联盟成员系统架构师南证期货
Redhat6  配置永久静态路由方法有三种,推荐使用通过 /etc/sysconfig/static-routes 配置永久静态路由在“ /etc/sysconfig/static-routes “中分别添加 3 条静态路由( 1 条网段路由、 2 条主机路由), /etc/sysconfig/static-routes 默认没有,可直接创建。vi /etc/sysconfig/s...显示全部

Redhat6  配置永久静态路由方法有三种,推荐使用
通过 /etc/sysconfig/static-routes 配置永久静态路由
在“ /etc/sysconfig/static-routes “中分别添加 3 条静态路由( 1 条网段路由、 2 条主机路由), /etc/sysconfig/static-routes 默认没有,可直接创建。
vi /etc/sysconfig/static-routes any net 192.168.1.0/24 dev eth0 gw 10.148.19.1
any host 192.168.2.100 dev eth0 gw 10.148.19.1
any host 192.168.3.200/32 dev eth0 gw 10.148.19.1

收起
金融其它 · 2019-09-18
浏览3879
bryanbryan软件架构设计师金融研发
https://my.esecuredata.com/index.php?/knowledgebase/article/2/add-a-static-route-on-centos显示全部
银行 · 2019-03-15
浏览3854

相关问题

问题状态

  • 发布时间:2019-03-09
  • 关注会员:5 人
  • 问题浏览:6007
  • 最近回答:2019-09-18
  • X社区推广