Question 1: 0.0.0.0 represents matching all target addresses, but pay attention to the description of the default gateway and the network card in the the one used when there is not any more specific route available to a destination address,一般路由匹配要符合掩码最长匹配原则,而默认路由的掩码是最短的,它只有在没有其他匹配条目的时候才会被选择。 问题二:这两条记录中的gateway并没有意义,Flags那一列中有G时才会使用Gateway。这两条路由并没有这样的标志,由于它们是本地的,匹配这些条目的数据包会直接通过Iface column is sent out.
Question 1: 0.0.0.0 represents matching all target addresses, but pay attention to the description of the default gateway and the network card in the
the one used when there is not any more specific route available to a destination address
,一般路由匹配要符合掩码最长匹配
原则,而默认路由的掩码是最短的,它只有在没有其他匹配条目的时候才会被选择。问题二:这两条记录中的gateway并没有意义,
Flags
那一列中有G
时才会使用Gateway
。这两条路由并没有这样的标志,由于它们是本地的,匹配这些条目的数据包会直接通过Iface
column is sent out.