免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3821 | 回复: 5
打印 上一主题 下一主题

请教各位大佬:在更换F5时,路由表丢失的问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-26 12:27 |只看该作者 |倒序浏览
在更换F5时,用netstat -rn发现,defaultrouter 路由丢失,从而导致业务中断。\r\n请问各位大佬,defaultrouter 路由丢失的原因是什么呀??

论坛徽章:
0
2 [报告]
发表于 2007-10-26 12:37 |只看该作者
难道你没在solaris的/etc/defaultrouter文件中指定网关的IP地址?而是用RC脚本加的网关,比如/etc/rc2.d/S99addroute之类的脚本?

论坛徽章:
0
3 [报告]
发表于 2007-10-26 13:12 |只看该作者

回复 #2 yuhuohu 的帖子

/etc/defaultrouter 里面一直都有地址。\r\n本来运行正常,但是在更换F5时,在netstat -rn里面查,发现default 一项突然没有了,网络不通了。\r\n不知道是怎么回事?

论坛徽章:
0
4 [报告]
发表于 2007-10-26 14:06 |只看该作者

具体一点

root@portal-1 # netstat -rn\r\n\r\nRouting Table: IPv4\r\n  Destination           Gateway           Flags  Ref   Use   Interface\r\n-------------------- -------------------- ----- ----- ------ ---------\r\n10.243.1.0           10.243.1.208         U         1 155688  ce2\r\n10.243.1.0           10.243.1.209         U         1      0  ce3\r\n224.0.0.0            10.243.1.208         U         1      0  ce2\r\ndefault              10.243.1.146         UG        1     37  \r\n127.0.0.1            127.0.0.1            UH       25 434469  lo0\r\n\r\n更换F5\r\n\r\nroot@portal-1 # netstat -nr\r\n\r\nRouting Table: IPv4\r\n  Destination           Gateway           Flags  Ref   Use   Interface\r\n-------------------- -------------------- ----- ----- ------ ---------\r\n10.243.1.0           10.243.1.208         U         1 155656  ce2\r\n10.243.1.0           10.243.1.209         U         1      0  ce3\r\n224.0.0.0            10.243.1.208         U         1      0  ce2\r\n127.0.0.1            127.0.0.1            UH       25 434172  lo0\r\n\r\n\r\n添加路由\r\nroot@portal-1 # route add default 10.243.1.254\r\nadd net default: gateway 10.243.1.254\r\n\r\n\r\nRouting Table: IPv4\r\n  Destination           Gateway           Flags  Ref   Use   Interface\r\n-------------------- -------------------- ----- ----- ------ ---------\r\n10.243.1.0           10.243.1.208         U         1 155688  ce2\r\n10.243.1.0           10.243.1.209         U         1      0  ce3\r\n224.0.0.0            10.243.1.208         U         1      0  ce2\r\ndefault              10.243.1.254        UG        1     37  \r\n127.0.0.1            127.0.0.1            UH       25 434469  lo0

论坛徽章:
0
5 [报告]
发表于 2007-10-26 14:28 |只看该作者
临时解决的办法是:# route add default 10.243.1.146\r\n\r\n若可以重启的话就重启看看

论坛徽章:
0
6 [报告]
发表于 2007-10-26 14:33 |只看该作者

回复 #7 yuhuohu 的帖子

问题已经解决了,但是不知道为什么会丢失静态路由?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP