LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1041|回复: 4

这条命令到底哪里错了?????

[复制链接]
发表于 2007-7-23 14:16:07 | 显示全部楼层 |阅读模式
[root@linux ~]# route add -host 192.168.1.1 netmask 255.255.255.255  dev eth0
route: netmask 00000000 doesn't make sense with host route
Usage: route [-nNvee] [-FC] [<AF>]           List kernel routing tables
       route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.

       route {-h|--help} [<AF>]              Detailed usage syntax for specified AF.
       route {-V|--version}                  Display version/author and exit.

        -v, --verbose            be verbose
        -n, --numeric            don't resolve names
        -e, --extend             display other/more information
        -F, --fib                display Forwarding Information Base (default)
        -C, --cache              display routing cache instead of FIB

  <AF>=Use '-A <af>' or '--<af>'; default: inet
  List of possible address families (which support routing):
    inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
    netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
    x25 (CCITT X.25)
发表于 2007-7-23 15:17:15 | 显示全部楼层
先是 netmask 错了,

还有....

怕把你累坏以后再来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-23 22:28:53 | 显示全部楼层
呵呵, 我不怕累, 就怕你讲不了那麽多!!!
回复 支持 反对

使用道具 举报

发表于 2007-8-10 22:55:19 | 显示全部楼层
route add default gw 192.168.1.1
回复 支持 反对

使用道具 举报

发表于 2007-8-11 19:11:58 | 显示全部楼层
楼上是正解,楼主要多可能man!
回复 支持 反对

使用道具 举报

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

本版积分规则

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