如何为具有两个接口的多个子网设置路由?

如何为具有两个接口的多个子网设置路由?

我有安装有 Zabbix 的 Ubuntu Server。2 个接口:

eth0 (main network for apache, ssh etc)
adress: 10.0.10.11/24
gateway4: 10.0.10.254

eth1:
adress: 10.0.2.10/24
gateway: 10.0.2.1

network 10.0.2.0 got subnets:
10.0.0.0
192.168.7.0
192.168.15.0
192.168.0.0
192.168.30.0
192.168.40.0

network 10.0.10.0 got subnets:
192.168.7.0
192.168.20.0
192.168.25.0
192.168.50.0
192.168.60.0
192.168.70.0

如何在不选择特定接口的情况下使路由(或其他东西)可以 ping ?

$ ip route
default via 10.0.10.254 dev eth0 proto static
default via 10.0.2.1 dev eth1 proto static
10.0.2.0/24 dev eth1 proto kernel scope link src 10.0.2.254
10.0.10.0/24 dev eth0 proto kernel scope link src 10.0.10.11

相关内容