专注EITM CA展开“隐形翅膀”
2. Linux支持的三种路由类型
主机路由
主机路由的Fiags字段为H ,下面的例子中,本机通过ip地址192.168.1.1的路由器到达ip地址为10.0.0.10的主机。
网络路由
网络路由的Fiags字段为N ,下面的例子中,本机将发送到网络192.19.12的数据包转发到ip地址为192.168.1.1的路由器。
默认路由的Fiags字段为G ,下面的例子中,默认路由的ip地址为192.168.1.1。
主机路由
主机路由的Fiags字段为H ,下面的例子中,本机通过ip地址192.168.1.1的路由器到达ip地址为10.0.0.10的主机。
Destination Gateway Genmask Flags Metric Ref Use Iface
-----------------------------------------------------------------
10.0.0.10 192.168.1.1 255.255.255.255 UH 0 0 0 eth0
网络路由
网络路由的Fiags字段为N ,下面的例子中,本机将发送到网络192.19.12的数据包转发到ip地址为192.168.1.1的路由器。
默认路由Destination Gateway Genmask Flags Metric Ref Use Iface
-------------------------------------------------------------------
192.19.12 192.168.1.1 255.255.255.0 UN 0 0 0 eth0
默认路由的Fiags字段为G ,下面的例子中,默认路由的ip地址为192.168.1.1。
Destination Gateway Genmask Flags Metric Ref Use Iface
-------------------------------------------------------------
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0
相关文章
