请教各位专家,我的设备现在有两块网卡,eth0参数为IP:37.134.6.1,MAK:255.255.255.128,GW37.134.6.126;eth1参数为IP:37.134.6.129,MAK:255.255.255.128,GW37.134.6.254;对方服务器的IP地址为37.134.0.150。
我现在两个网卡都添加默认路由,或者都添加静态路由,总是只有一个网卡能通,另外一个无法通讯。
请问我该如何配置路由才能实现双网卡同时通讯。以下是两种情况下的路由表信息,请问各位,该如何配置才能好用??
//两个网卡都使用默认路由
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
37.134.6.128 * 255.255.255.128 U 0 0 0 eth1
37.134.6.0 * 255.255.255.128 U 0 0 0 eth0
default 37.134.6.254 0.0.0.0 UG 0 0 0 eth1
default 37.134.6.126 0.0.0.0 UG 0 0 0 eth0
//两个网卡都添加静态路由
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
37.134.6.128 * 255.255.255.128 U 0 0 0 eth1
37.134.6.0 * 255.255.255.128 U 0 0 0 eth0
37.134.0.0 37.134.6.254 255.255.255.0 UG 0 0 0 eth1
37.134.0.0 37.134.6.126 255.255.255.0 UG 0 0 0 eth0
default 172.21.25.1 0.0.0.0 UG 0 0 0 eth2