路由命令输出:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.10 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
$
从上面的输出中,我有以下疑问:
- 目标和网关列中的0.0.0.0是什么意思?
- 如果数据包从192.168.2.36 IP发送,那么它的网关是什么。它使用192.168.2.10还是0.0.0.0?
- 假设我有另一个IP为192.168.1.0的网络。如果数据包从该网络中的任何主机发送,那么该IP的网关是什么。
- 默认网关是什么?