找回密码
 立即注册
搜索
查看: 231|回复: 3

请会的人教教我

[复制链接]

43

主题

346

回帖

527

积分

高级会员

积分
527
发表于 2003-3-14 15:58:24 | 显示全部楼层 |阅读模式
请问一下:
            谁有在windows或者linux下面的route的命令全集,包括所有的参数........
       因为本人的收集的不全,所有...想问问highot的兄弟们谁可以提供一下帮助.....谢了.

13

主题

224

回帖

319

积分

中级会员

积分
319
发表于 2003-3-14 20:18:14 | 显示全部楼层
Microsoft Windows [Version 5.2.3765]
(C) Copyright 1985-2003 Microsoft Corp.

D:\>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 preserved
               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*.

The PRINT command will show both IPv4 and IPv6 routes, but the ADD, DELETE,
and CHANGE commands work only for IPv4 routes.  For IPv6 routes, use
the 'interface ipv6' context in netsh.exe.

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

D:\>
回复

使用道具 举报

957

主题

2万

回帖

3万

积分

注册会员

积分
36136
发表于 2003-3-14 21:51:54 | 显示全部楼层
linux下用 man
回复

使用道具 举报

43

主题

346

回帖

527

积分

高级会员

积分
527
 楼主| 发表于 2003-3-15 00:07:57 | 显示全部楼层
这个我也知道,不过..我想要个中文的,有吗?>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|海浩社区

GMT+8, 2025-9-21 14:59 , Processed in 0.082701 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表