免费注册 查看新帖 |

Chinaunix

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

[网络管理] linux 双线遇到的奇怪问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-01-17 16:16 |只看该作者 |倒序浏览
本帖最后由 zhxyz 于 2011-01-17 16:17 编辑

Centos 5.5 dell R710 机器 4个网卡,只用了两个 eth1 (联通)eth2(网通)  eth0和eth3没启用
eth1的IP为60.xxx.xxx.94 (网关93) eth2的IP为222.xxx.240.4(网关222.xxx.240.1)

route -n
60.xxx.xxx.92   0.0.0.0         255.255.255.252 U     0      0        0 eth1    (联通)
222.xxx.240.0   0.0.0.0         255.255.255.248 U     0      0        0 eth2     (网通)
0.0.0.0         60.xxx.xxx.93   0.0.0.0         UG    0      0        0 eth1

我从本机上ping 网通网关
PING 60.xxx.xxx.93 (60.xxx.xxx.93) 56(84) bytes of data.
64 bytes from 60.xxx.xxx.93: icmp_seq=1 ttl=255 time=2.45 ms
64 bytes from 60.xxx.xxx.93: icmp_seq=2 ttl=255 time=1.46 ms
64 bytes from 60.xxx.xxx.93: icmp_seq=3 ttl=255 time=2.20 ms

ping电信网关
PING 222.xxx.240.1 (222.xxx.240.1) 56(84) bytes of data.
64 bytes from 222.xxx.240.1: icmp_seq=1 ttl=244 time=139 ms
64 bytes from 222.xxx.240.1: icmp_seq=2 ttl=244 time=137 ms
64 bytes from 222.xxx.240.1: icmp_seq=3 ttl=244 time=137 ms
64 bytes from 222.xxx.240.1: icmp_seq=4 ttl=244 time=137 ms

单设一个电信IP正常,把default gw 设为电信IP正常
后来我做了如下操作
ip route flush table tel
ip route add default via 222.xxx.240.1 dev eth2 src 222.xxx.240.4 table tel
ip rule add from 222.xxx.240.4 table tel
ip route flush table cnc
ip route add default via 60.xxx.xxx.93 dev eth1 src 60.xxx.xxx.94 table cnc
ip rule add from 60.xxx.xxx.94 table cnc

不起作用,还是那样,我又增加了部分路由
route add -net 222.xxx.240.0/24 gw 222.xxx.240.1
不管用,又换成
route add -net 222.xxx.240.0/24 dev eth2 也不管用

没办法了,请大家帮帮忙吧!

论坛徽章:
0
2 [报告]
发表于 2011-01-17 16:34 |只看该作者
你到底想实现什么目的?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
3 [报告]
发表于 2011-01-17 16:50 |只看该作者
http://lartc.org,楼主下文档研究下吧

论坛徽章:
0
4 [报告]
发表于 2011-01-19 22:39 |只看该作者
你到底想实现什么目的?
版主杀手 发表于 2011-01-17 16:34



    主要问题是现在ping电信网关延迟太大,
ping电信网关
PING 222.xxx.240.1 (222.xxx.240.1) 56(84) bytes of data.
64 bytes from 222.xxx.240.1: icmp_seq=1 ttl=244 time=139 ms
64 bytes from 222.xxx.240.1: icmp_seq=2 ttl=244 time=137 ms
64 bytes from 222.xxx.240.1: icmp_seq=3 ttl=244 time=137 ms
64 bytes from 222.xxx.240.1: icmp_seq=4 ttl=244 time=137 ms
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP