注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临我的博客

 
 
 

日志

 
 

route 命令  

2013-10-08 09:45:59|  分类: linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

route [-CFvnee]

       route  [-v]  [-A  family]  add [-net|-host] target [netmask Nm] [gw Gw]
              [metric N] [mss M] [window W]  [irtt  I]  [reject]  [mod]  [dyn]
              [reinstate] [[dev] If]

       route  [-v]  [-A  family]  del [-net|-host] target [gw Gw] [netmask Nm]
              [metric N] [[dev] If]

       route  [-V] [--version] [-h] [--help]

DESCRIPTION
       Route manipulates the kernel?. IP routing tables.  Its primary  use  is
       to  set up static routes to specific hosts or networks via an interface
       after it has been configured with the ifconfig(8) program.

       When the add or del  options  are  used,  route  modifies  the  routing
       tables.   Without these options, route displays the current contents of
       the routing tables.

 add    add a new route.

       target the destination network or host. You can provide IP addresses in
              dotted decimal or host/network names.

       -net   the target is a network.

       -host  the target is a host.

       netmask NM
              when adding a network route, the netmask to be used.

       gw GW  route  packets  via a gateway.  NOTE: The specified gateway must
              be reachable first. This usually means that you have to set up a
              static  route  to  the  gateway  beforehand.  If you specify the
              address of one of your local interfaces,  it  will  be  used  to
              decide about the interface to which the packets should be routed
              to. This is a BSDism compatibility hack.

       metric M
              set the metric field in the routing table (used by routing  dae-
              mons) to M.

       mss M  set the TCP Maximum Segment Size (MSS) for connections over this
              route to M bytes.  The default is the device MTU minus  headers,
              or a lower MTU when path mtu discovery occured. This setting can
              be used to force smaller TCP packets on the other end when  path
              mtu  discovery  does  not work (usually because of misconfigured
              firewalls that block ICMP Fragmentation Needed)


 route add -net 10.0.0.0 netmask 255.255.240.0 gw 172.16.10.1

  评论这张
 
阅读(448)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017