QUOTE:原帖由 "platinum" 发表:
在设置完两个 default GW 后,能否贴一下 ip route 的内容看一下?
我还不确定这样做的效果是什么
QUOTE:[root@gateway root]# ip route
192.168.1.0/24 dev eth0 scope link
219.137.*.0/24 dev eth1 scope link
169.254.0.0/16 dev eth1 scope link
127.0.0.0/8 dev lo scope link
default via 219.137.*.1 dev eth1
QUOTE:[root@gateway root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
219.137.*.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 219.137.*.1 0.0.0.0 UG 0 0 0 eth1
如果 只在 eth0 上加192.168.1.1 网关 ,eth1 不加网关就会在最后一条里 变成
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
在 eth1 上加了外网网关后就边成 引用栏里的结果了
我不知道为什么会变