国产精品电影_久久视频免费_欧美日韩国产激情_成年人视频免费在线播放_日本久久亚洲电影_久久都是精品_66av99_九色精品美女在线_蜜臀a∨国产成人精品_冲田杏梨av在线_欧美精品在线一区二区三区_麻豆mv在线看

route 中文man頁面

系統
route程序對內核的IP選路表進行操作。它主要用于通過已用ifconfig(8)程序配置好的接口來指定的主機或網絡設置靜態路由。

NAME

route - 顯示 / 操作IP選路表

總覽 SYNOPSIS

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程序對內核的IP選路表進行操作。它主要用于通過已用ifconfig(8)程序配置好的接口來指定的主機或網絡設置靜態路由。

選項 OPTIONS

-v
選用細節操作模式
-A family
用指定的地址族(如`inet',`inet6')。
-n
以數字形式代替解釋主機名形式來顯示地址。此項對試圖檢測對域名服務器進行路由發生故障的原因非常有用。
-e
用netstat(8)的格式來顯示選路表。-ee將產生包括選路表所有參數在內的大量信息。
-net
路由目標為網絡。
-host
路由目標為主機。
-F
顯示內核的FIB選路表。其格式可以用-e 和 -ee選項改變。
-C
顯示內核的路由緩存。
del
刪除一條路由。
add
添加一條路由。
target
指定目標網絡或主機。可以用點分十進制形式的IP地址或主機/網絡名。
netmask Nm
為添加的路由指定網絡掩碼。
gw Gw
為發往目標網絡/主機的任何分組指定網關。注意:指定的網關首先必須是可達的。也就是說必須為該網關預先指定一條靜態路由。如果你為本地接口之一指定這個網關地址的話,那么此網關地址將用于決定此接口上的分組將如何進行路由。這是BSD風格所兼容的。
metric M
把選路表中的路由值字段(由選路進程使用)設為M。
mss M
把基于此路由之上的連接的TCP***報文段長度設為M字節。這通常只用于優化選路設置。默認值為536。
window W
把基于此路由之上的連接的TCP窗口長度設為W字節。這通常只用于AX.25網絡和不能處理背對背形式的幀的設備。
irtt I
把基于此路由之上的TCP連接的初始往返時間設為I毫秒(1-12000)。這通常也只用于AX.25網絡。如果省略此選項,則使用RFC1122的缺省值300ms。
reject
設置一條阻塞路由以使一條路由查找失敗。這用于在使用缺省路由前先屏蔽掉一些網絡。但這并不起到防火墻的作用。
mod, dyn, reinstate
設置一條動態的或更改過的路由。這些標志通常只由選路進程來設置。這只用于診斷目的,
dev If
強制使路由與指定的設備關聯,因為否則內核會自己來試圖檢測相應的設備(通常檢查已存在的路由和加入路由的設備的規格)。在多數正常的網絡上無需使用。

如果dev If是命令行上***一個指定的選項,那么可以省略關鍵字dev,因為它是缺省值。否則路由修改對象(metric - netmask- gw - dev)無關緊要。

范例 EXAMPLES

route add -net 127.0.0.0
加入正常的環回接口項,它使用掩碼255.0.0.0(由目標地址決定了它是A類網絡)并與設備"lo"相關聯(假定該設備先前已由ifconfig(8)正確設置)。
route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
向"eth0"添加一條指向網絡192.56.76.x的路由。其中的C類子網掩碼并不必須,因為192.*是個C類的IP地址。在此關鍵字"dev"可省略。
route add default gw mango-gw
加入一條缺省路由(如果無法匹配其它路由則用它)。使用此路由的所有分組將通過網關"mango-gw"進行傳輸。實際使用此路由的設備取決于如何到達"mango-gw" - 先前必須設好到"mango-gw"的靜態路由。
route add ipx4 sl0
向SLIP接口添加一條指向"ipx4"的路由(假定"ipx4"是使用SLIP的主機)。
route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4
此命令為先前SLIP接口的網關ipx4添加到網絡"192.57.66.x"的路由。
route add 224.0.0.0 netmask 240.0.0.0 dev eth0
此命令為"eth0"設定所有D類地址(用于組播)的路由。這是用于組播內核的正確配置行。
route add 10.0.0.0 netmask 255.0.0.0 reject
此命令為私有網絡"10.x.x.x."設置一條阻塞路由。

輸出信息 OUTPUT

內核選路表的輸出信息由以下欄目組成:

Destination
目標網絡或目標主機。
Gateway
網關地址或'*'(如未設)。
Genmask
目標網絡的子網掩碼;'255.255.255.255'為主機,'0.0.0.0'為缺省路由。
Flags
可能出現的標志有:
U (route is up) 路由正常
H (target is a host) 主機路由
G (use gateway) 使用網關的間接路由
R (reinstate route for dynamic routing) 為動態選路恢復路由
D (dynamically installed by daemon or redirect) 該路由由選路進程或重定向動態創建
M (modified from routing daemon or rederict) 該路由已由選路進程或重定向修改
! (reject route) 阻塞路由
Metric
通向目標的距離(通常以跳來計算)。新內核不使用此概念,而選路進程可能會用。
Ref
使用此路由的活動進程個數(Linux內核并不使用)。
Use
查找此路由的次數。根據-F 和 -C的使用,此數值是路由緩存的損失數或采樣數。
Iface
使用此路由發送分組的接口。
MSS
基于此路由的TCP連接的缺省***報文段長度。
Window
基于此路由的TCP連接的缺省窗口長度。
irtt
初始往返時間。內核用它來猜測***TCP協議參數而無須等待(可能很慢的)應答。
HH (cached only)
為緩存過的路由而訪問硬件報頭緩存的ARP記錄和緩存路由的數量。如果緩存過路由的接口(如lo)無須硬件地址則值為-1。
Arp (cached only)
無論緩存路由所用的硬件地址情況如何都進行更新。

文件 FILES

/proc/net/ipv6_route
/proc/net/route
/proc/net/rt_cache
 

參見SEE ALSO

ifconfig(8), netstat(8), arp(8), rarp(8)

#p#

NAME

route - show / manipulate the IP routing table  

SYNOPSIS

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's 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.

OPTIONS

-A family
use the specified address family (eg `inet'; use `route --help' for a full list).
-F
operate on the kernel's FIB (Forwarding Information Base) routing table. This is the default.
-C
operate on the kernel's routing cache.
-v
select verbose operation.
-n
show numerical addresses instead of trying to determine symbolic host names. This is useful if you are trying to determine why the route to your nameserver has vanished.
-e
use netstat(8)-format for displaying the routing table. -ee will generate a very long line with all parameters from the routing table.
del
delete a route.
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 daemons) 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)
window W
set the TCP window size for connections over this route to W bytes. This is typically only used on AX.25 networks and with drivers unable to handle back to back frames.
irtt I
set the initial round trip time (irtt) for TCP connections over this route to I milliseconds (1-12000). This is typically only used on AX.25 networks. If omitted the RFC 1122 default of 300ms is used.
reject
install a blocking route, which will force a route lookup to fail. This is for example used to mask out networks before using the default route. This is NOT for firewalling.
mod, dyn, reinstate
install a dynamic or modified route. These flags are for diagnostic purposes, and are generally only set by routing daemons.
dev If
force the route to be associated with the specified device, as the kernel will otherwise try to determine the device on its own (by checking already existing routes and device specifications, and where the route is added to). In most normal networks you won't need this.

If dev If is the last option on the command line, the word dev may be omitted, as it's the default. Otherwise the order of the route modifiers (metric - netmask - gw - dev) doesn't matter.

EXAMPLES

route add -net 127.0.0.0
adds the normal loopback entry, using netmask 255.0.0.0 (class A net, determined from the destination address) and associated with the "lo" device (assuming this device was prviously set up correctly with ifconfig(8)).
route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
adds a route to the network 192.56.76.x via "eth0". The Class C netmask modifier is not really necessary here because 192.* is a Class C IP address. The word "dev" can be omitted here.
route add default gw mango-gw
adds a default route (which will be used if no other route matches). All packets using this route will be gatewayed through "mango-gw". The device which will actually be used for that route depends on how we can reach "mango-gw" - the static route to "mango-gw" will have to be set up before.
route add ipx4 sl0
Adds the route to the "ipx4" host via the SLIP interface (assuming that "ipx4" is the SLIP host).
route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4
This command adds the net "192.57.66.x" to be gatewayed through the former route to the SLIP interface.
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
This is an obscure one documented so people know how to do it. This sets all of the class D (multicast) IP routes to go via "eth0". This is the correct normal configuration line with a multicasting kernel.
route add -net 10.0.0.0 netmask 255.0.0.0 reject
This installs a rejecting route for the private network "10.x.x.x."

OUTPUT

The output of the kernel routing table is organized in the following columns

Destination
The destination network or destination host.
Gateway
The gateway address or '*' if none set.
Genmask
The netmask for the destination net; '255.255.255.255' for a host destination and '0.0.0.0' for the default route.
Flags
Possible flags include
U (route is up)
H (target is a host)
G (use gateway)
R (reinstate route for dynamic routing)
D (dynamically installed by daemon or redirect)
M (modified from routing daemon or redirect)
A (installed by addrconf)
C (cache entry)
! (reject route)
Metric
The 'distance' to the target (usually counted in hops). It is not used by recent kernels, but may be needed by routing daemons.
Ref
Number of references to this route. (Not used in the Linux kernel.)
Use
Count of lookups for the route. Depending on the use of -F and -C this will be either route cache misses (-F) or hits (-C).
Iface
Interface to which packets for this route will be sent.
MSS
Default maximum segement size for TCP connections over this route.
Window
Default window size for TCP connections over this route.
irtt
Initial RTT (Round Trip Time). The kernel uses this to guess about the best TCP protocol parameters without waiting on (possibly slow) answers.
HH (cached only)
The number of ARP entries and cached routes that refer to the hardware header cache for the cached route. This will be -1 if a hardware address is not needed for the interface of the cached route (e.g. lo).
Arp (cached only)
Whether or not the hardware address for the cached route is up to date.

FILES

/proc/net/ipv6_route
/proc/net/route
/proc/net/rt_cache

SEE ALSO

ifconfig(8), netstat(8), arp(8), rarp(8)

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-16 10:21:13

setconsole中文man

2011-08-24 17:06:42

NOTIFY中文man

2011-08-16 09:32:01

quotaoff中文man

2011-08-23 18:05:21

ABORT中文man

2011-08-25 18:14:26

tcflow中文man

2011-08-25 16:55:26

gets中文man

2011-08-12 11:07:19

git中文man

2011-08-25 17:30:26

setbuf中文man

2011-08-15 13:14:44

rmdir中文man

2011-08-15 09:55:01

ls中文man

2011-08-25 15:47:06

fopen中文man

2011-08-25 11:44:36

wtmp中文man

2011-08-12 13:18:19

head中文man

2011-08-23 14:24:42

ping中文man

2011-08-15 13:42:37

smbtar中文man

2011-08-15 14:58:01

uptime中文man
點贊
收藏

51CTO技術棧公眾號

国产一区二区在线视频你懂的| 青青草视频一区| 粉嫩av一区二区三区在线播放| 欧美猛少妇色xxxxx| aa视频在线观看| 激情亚洲影院在线观看| 午夜精品av| 国产777精品精品热热热一区二区| 国产真人做爰毛片视频直播 | 国产传媒欧美日韩| 一区二区国产在线| 日韩久久一级片| 日韩欧美在线看| 国产高清不卡| 99久久综合狠狠综合久久止 | 国产一级在线观看| 91国产一区在线| 91网站在线播放| 亚洲国产资源| 国产欧美日韩中文字幕在线| 国产一区二区三区日韩| 大片免费在线观看| 国产欧美欧洲| 在线播放视频一区| 午夜国产精品视频| 国产一级网站视频在线| 国产精品一区免费观看| 久久国产三级精品| 一级在线观看| 精品国产一区二区三区久久| 亚洲韩日在线| 四色成人av永久网址| 国产va免费精品高清在线观看| 国产成人亚洲精品青草天美| 久久久久久国产精品免费无遮挡| 热久久这里只有精品| 国产精品久久久久久久久免费丝袜| 一区二区三区短视频| 日本xxx免费| 亚洲福利视频专区| 成人18精品视频| 国产精品2区| 在线观看免费黄网站| 欧美专区日韩视频| 亚洲在线一区二区三区| 欧美视频导航| 欧美男女交配| 综合国产精品久久久| 国产成人在线视频免费播放| 大陆av在线播放| 亚洲黄色性网站| 涩涩视频在线观看免费| 亚洲第一av网站| 四虎永久精品在线| 国产美女直播视频一区| 高清不卡在线观看av| 精品99又大又爽又硬少妇毛片| 精品国产乱码久久久久久久久 | 色一区二区三区四区| 99re在线视频| 手机在线视频你懂的| 国产精品久久久久久久7电影| 日韩欧美国产视频| 婷婷五月色综合香五月| 色偷偷福利视频| 欧美制服第一页| 色婷婷综合久色| 黄色日韩网站视频| 成人免费看视频网站| 电影天堂最新网址| 亚洲永久一区二区三区在线| 136fldh精品导航福利| 亚洲欧美精品一区二区| 国产精品成人网| 日韩av在线播放中文字幕| 亚洲精品3区| 成人福利在线| 成人黄色一区二区| 亚洲xxxx做受欧美| 欧美精品性视频| 亚洲综合成人在线视频| 天天综合网91| 国产一线二线在线观看| 一色桃子在线| 亚洲精品午夜在线观看| 精品一区二区中文字幕| 日韩欧美精品久久| 国产精品天天狠天天看| 亚洲成人激情视频| 亚洲第五色综合网| 午夜伊人狠狠久久| 亚洲一级二级三级| 丝袜美腿亚洲一区二区图片| 欧美色一级片| 一本久道综合久久精品| 国产一区二区三区成人欧美日韩在线观看| 久久国产精品网| 国产精品久久久久久久久电影网| 91av在线看| 日本韩国欧美精品大片卡二| 91av在线看| 亚洲综合一区二区不卡| 亚洲国产精品久久久久婷婷老年 | 亚洲国产精品二十页| 不卡的av中国片| 成熟亚洲日本毛茸茸凸凹| 国产色婷婷亚洲99精品小说| 成人小视频免费在线观看| 欧美日一区二区三区在线观看国产免| 亚洲一卡久久| 91丨porny丨国产入口| 国产精品三级在线观看| 色乱码一区二区三区88| 亚洲免费一级电影| 国产精品久久99久久| 欧美日韩无遮挡| 中文字幕成人在线视频| 日本中文字幕视频在线| 欧美美女福利视频| av在线一区不卡| 久久精品亚洲欧美日韩精品中文字幕| 一本久久综合| 91片在线免费观看| 在线一区二区视频| 亚洲精品91美女久久久久久久| 日本一区二区视频在线| 欧美日韩亚州综合| 欧美性高潮床叫视频| 亚洲欧美国产一本综合首页| 成人中文字幕+乱码+中文字幕| 欧美黄色一级片视频| 99只有精品| 国产在线播放一区二区三区| 欧美二区在线观看| 91精品免费视频| 在线观看h视频| 999精品一区| 色婷婷综合久久久久中文一区二区 | 欧美激情在线看| 久久九九精品99国产精品| 99精品在线免费视频| 中文字幕免费国产精品| 欧美freesex黑人又粗又大| 欧美精品综合| 精品视频一区三区九区| 欧美性xxxx69| 精品欧美日韩精品| 久久精品一区二区三区四区| 91国产视频在线| 免费一级特黄毛片| 成人香蕉视频| 成人丝袜视频网| 久久精品这里热有精品| 999久久久| 免费一级在线观看播放网址| 久久综合成人| 欧美日韩国产色视频| 日本午夜在线亚洲.国产| 国模私拍视频| 成人性生交大片免费看96| av不卡免费在线观看| 久久久久久免费精品| 欧美影院久久久| 青青草成人激情在线| 成人精品视频在线观看| 久久精品卡一| 疯狂蹂躏欧美一区二区精品| 超碰97在线人人| 狼人综合视频| 亚洲欧美在线观看| 国产三区二区一区久久| av资源一区| 亚洲免费色视频| 欧美国产一二三区| 国产成人精品福利| 国产精品天美传媒| 精品视频在线免费观看| 九色精品免费永久在线| 亚洲人成网在线播放| 91精品国产高清久久久久久91裸体| 日韩av三级在线| 国产调教视频在线观看| 欧美电影《睫毛膏》| 欧美一级理论片| 9191在线观看| 欧美日韩不卡在线| 成人高清免费在线| 亚洲国产一区二区三区| 午夜dv内射一区二区| 国产午夜亚洲精品理论片色戒| 日本在线视频www色| avtt综合网| 色综合久久久久久久久| 欧美一区二区福利| 亚洲丁香日韩| 一区二区三区 在线观看视| 美女视频免费观看网站在线| 国产成人av网站| 91一区二区三区| 成年人在线视频免费观看|