- 论坛徽章:
- 0
|
我想用一台linux机带3块网卡,做个策略路由,其中eth0接内网,eth1接路由器1(接网通的线路),eth2接路由器2(接edu线路),我在linux下使用ip rule和ip route添加,在本机上测试一切正常,但连入网络使用traceroute测试时路由情况是:
211.82.8.62
211.82.8.12
跳到211.82.8.12时就走不下去了,请您帮我分析一下.全校的IP范围是211.82.8.0/21.
我们有个3604路由器,但加上策略路由后负荷太重,工作不过来,只好使用linux做.请您帮我分析一下.
- -
- linux系统(7.3) -
eth2:211.82.8.130/30 -------------------------eth1:211.82.8.134/30
gw:211.82.8.129 | gw:211.82.8.133
|
eth0:211.82.8.12/18
规则和路由策略如下:
ip rule add to 162.105.0.0/16 table edu
ip rule add to 166.111.0.0/16 table edu
ip rule add to 202.4.128.0/19 table edu
ip rule add to 202.38.64.0/19 table edu
ip rule add to 202.38.96.0/19 table edu
ip rule add to 202.38.192.0/18 table edu
ip rule add to 202.112.0.0/13 table edu
ip rule add to 202.120.0.0/15 table edu
ip rule add to 202.192.0.0/12 table edu
ip rule add to 210.25.0.0/16 table edu
ip rule add to 210.26.0.0/15 table edu
ip rule add to 210.28.0.0/14 table edu
ip rule add to 210.32.0.0/12 table edu
ip rule add to 211.64.0.0/14 table edu
ip rule add to 211.68.0.0/15 table edu
ip route add 211.82.8.0/21 dev eth0 table edu
ip route add 211.82.8.0/21 dev eth0 table default
ip route add default dev eth2 table edu
ip route add default dev eth1 table default
ip rule del prio 32766 |
|