- 论坛徽章:
- 2
|
我有一台服务器有三张网卡eth0 eth1 eth2分半对应电信联通和移动
eth0 电信
eth1 联通
eth2 移动
也建了三张路由表
ip route add default via 1.1.1.1 table dx
ip rule add from 124.193.234.58 table dx
ip route add default via 2.2.2.2 table lt
ip rule add from 101.36.76.210 table lt
ip route add default via 3.3.3.3 table yd
ip rule add from 3.3.3.3 table yd
在
/etc/sysconfig/network-script/route-eth0
/etc/sysconfig/network-script/route-eth1
/etc/sysconfig/network-script/route-eth2
用来保存永久路由。
后来我在路由表里面删除了某些路由 但是即时添加回去生效不了是什么回事。
例如
[root@123]# route -n
59.47.8.23 1.1.1.2 255.255.255.255 UH 0 0 0 eth0
可以正常走eth0出去,我想让它走eth1 出去 先删了该路由然后添加到eth1出口发觉无法ping出去。添加回去也无法ping出去
网关变成0.0.0.0
为何?
|
|