了解主机路由表 [英] Understanding of host route table

查看:114
本文介绍了了解主机路由表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有通过以下方式配置的带有以太网适配器的主机:IP地址192.170.100.10,子网掩码255.255.255.0.还有像IP服务器一样工作的硬件设备,配置为:192.170.100.20、255.255.255.0.当我将此设备连接到主机以太网适配器时,以下信息将添加到route print命令输出(Windows):

I have the host computer with Ethernet adapter configured by this way: IP address 192.170.100.10, subnet mask 255.255.255.0. There is also hardware device which works like IP server, configured as: 192.170.100.20, 255.255.255.0. When I connect this device to the host Ethernet adapter, the following information is added to route print command output (Windows):


Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
    192.170.100.0    255.255.255.0   192.170.100.10  192.170.100.10       20
   192.170.100.10  255.255.255.255        127.0.0.1       127.0.0.1       20
  192.170.100.255  255.255.255.255   192.170.100.10  192.170.100.10       20

我需要对此输出进行一些解释:如何添加这些条目,如何将它们用于将网络数据包192.170.100.*路由到此适配器.

I need some explanation of this output: how these entries are added, how they are used to route network packets 192.170.100.* to this adapter.

推荐答案

192.170.100.0    255.255.255.0   192.170.100.10  192.170.100.10       20

意味着192.170.100.0网络上的任何内容都将使用192.170.100.10作为网关

Means that anything on the 192.170.100.0 network will use 192.170.100.10 as it's gateway

192.170.100.10  255.255.255.255        127.0.0.1       127.0.0.1       20

意味着寻找192.170.100.10的任何内容实际上都会发送到环回(本地)地址.

Means that anything looking for 192.170.100.10 will actually get sent to the loopback (local) address.

192.170.100.255  255.255.255.255   192.170.100.10  192.170.100.10       20

是192.170.100.0网络的广播地址.

Is the broadcast address for the 192.170.100.0 network.

这篇关于了解主机路由表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆