route配置问题,期待解惑
我的 eth0 ip是192.168.19.15
eth1 ip是192.168.0.1
路由表配置如下:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.19.0 192.168.19.15 255.255.255.0 UG 0 0 0 eth0
192.168.19.0 * 255.255.255.0 U 0 0 0 eth0
192.168.19.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
环境如下图:
---------------------------
| Linux Tcp/Ip协议栈 |
---------------------------
| |
————-- --------
|eth0 |192.168.19.15 | eth1 |192.168.0.1
--------- ---------
| &