我只是在测试一个小型 USB wifi 加密狗,看看它是否适用于 Raspberry PI。它在我的 Windows 机器上似乎没问题。由于我们家里有两个 wifi 网络,我使用加密狗连接到第二个网络,这意味着现在我连接到了两个提供互联网的网络。
上述这种情况引起我的思考并提出了一个问题。
问题是:这会对我的互联网速度产生影响吗?计算机是否会切换网络或为不同的连接分配不同的网络?我的网络都连接到同一个调制解调器,共享实际的最大速度 - 但是如果我使用完全不同的连接类型,例如 Android 蓝牙网络共享和我的家庭 WiFi,这会加快我的连接速度吗?
答案1
默认情况下,你的计算机将使用一条网络路径到达目的地;哪个网络连接的最低路由度量,在 Microsoft Windows 系统上您可以使用命令查看route print
。
您可以使用该命令添加到特定目的地的特定路由来修改该行为。在 Microsoft Windows 系统的命令提示符下route add
发出该命令可以查看 route add 命令的语法。route /?
C:\>route /?
Manipulates network routing tables.
ROUTE [-f] [-p] [-4|-6] command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across
boots of the system. By default, routes are not preserved
when the system is restarted. Ignored for all other commands,
which always affect the appropriate persistent routes.
-4 Force using IPv4.
-6 Force using IPv6.
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Pattern match is only allowed in PRINT command.
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.
Examples:
> route PRINT
> route PRINT -4
> route PRINT -6
> route PRINT 157* .... Only prints those matching 157*
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route ADD 3ffe::/32 3ffe::1
> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
> route DELETE 157.0.0.0
> route DELETE 3ffe::/32
例如,您可以使用命令并指定其他路径的网关地址来选择非默认网络路径以访问特定网站等route add
。 在您的例子中,整体网络路径几乎没有差别,因为两条路径都通向提供互联网访问的同一网络设备。