三度网教程:是一个免费提供流行视频软件教程、在线学习分享的学习平台!

多个IP选择线路的处理方法 route

时间:2023-1-13作者:未知来源:三度网教程人气:


随着网络的普及,我们的生活越来越方便,但是网络安全也成了很多人面临的一个问题。特别是那些有着商业数据的企业电脑,更要注意上网安全常识,不然病毒会对我们造成严重的威胁。

  DOS命令我们都可以在 Cmd 下用 route /? 来查看他的帮助信息

  先看一下他的帮助

  Manipulates network routing tables.

  ROUTE [-f] [-p] [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 divserved

  when the system is restarted. Ignored for all other commands,

  which always affect the appropriate persistent routes. This

  option is not supported in Windows 95.

  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*.

  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 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 PRINT

  > route PRINT 157* .... Only prints those matching 157*

  > 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 PRINT

  > route DELETE 157.0.0.0

  > route PRINT

  route - 显示 / 操作IP选路表

  总览 SYNOPSIS

  route [-CFvnee]

  route [-v] [-A family] add [-net

关键词:  多个IP选择线路的处理办法  route





Copyright © 2012-2018 三度网教程(http://www.3du8.cn) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版