OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / net-tools / draft / man8 / route.8
1 .\" Japanese Version Copyright (c) 1998 Yoshiki Sugiura
2 .\"         all rights reserved.
3 .\" Translated  at Thu Jan 15 22:01:14 JST 1998
4 .\"         by Yoshiki Sugiura <yoy@mb.kcome.ne.jp>
5 .\" Updated  at Sat Jan 24 13:41:18 JST 1998
6 .\"         by Yoshiki Sugiura <yoy@mb.kcome.ne.jp>
7 .\" Updated Sun Jan 14 22:02:13 JST 2001
8 .\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
9 .\"
10 .TH ROUTE 8 "2 January 2000" "net-tools" "Linux Programmer's Manual"
11 .\"O .SH NAME
12 .SH Ì¾Á°
13 .\"O route \- show / manipulate the IP routing table
14 route \- IP ·ÐÏ©¥Æ¡¼¥Ö¥ë¤Îɽ¼¨/ÀßÄê
15 .\"O .SH SYNOPSIS
16 .SH ½ñ¼°
17 .B route
18 .RB [ \-CFvnee ]
19 .TP
20 .B route 
21 .RB [ \-v ]
22 .RB [ \-A
23 family] 
24 .B add 
25 .RB [ \-net | \-host ] 
26 target 
27 .RB [ netmask 
28 Nm] 
29 .RB [ gw 
30 Gw] 
31 .RB [ metric 
32 N] 
33 .RB [ mss 
34 M] 
35 .RB [ window 
36 W] 
37 .RB [ irtt 
38 I]
39 .RB [ reject ]
40 .RB [ mod ]
41 .RB [ dyn ] 
42 .RB [ reinstate ] 
43 .RB [[ dev ] 
44 If]
45 .TP
46 .B route 
47 .RB [ \-v ] 
48 .RB [ \-A
49 family]
50 .B del 
51 .RB [ \-net | \-host ] 
52 target 
53 .RB [ gw 
54 Gw] 
55 .RB [ netmask 
56 Nm] 
57 .RB [ metric 
58 N] 
59 .RB [[ dev ]
60 If]
61 .TP
62 .B route 
63 .RB [ \-V ] 
64 .RB [ \-\-version ]
65 .RB [ \-h ]
66 .RB [ \--help ]
67 .\"O .SH DESCRIPTION
68 .SH ÀâÌÀ
69 .\"O .B Route
70 .\"O manipulates the kernel's IP routing tables.  Its primary use is to set
71 .\"O up static routes to specific hosts or networks via an interface after
72 .\"O it has been configured with the
73 .\"O .BR ifconfig (8)
74 .\"O program.
75 .B route
76 ¤Ï¥«¡¼¥Í¥ë¤Î IP ·ÐÏ©¥Æ¡¼¥Ö¥ë¤òÁàºî¤¹¤ë¡£
77 ¤½¤Î¼ç¤ÊÌÜŪ¤Ï¡¢ÆÃÄê¤Î¥Û¥¹¥È¤ä¥Í¥Ã¥È¥ï¡¼¥¯¤Ø¤ÎÀÅŪ¤Ê·ÐÏ©¤òÀßÄꤹ¤ë¤³¤È¤Ç¤¢¤ë¡£
78 ·ÐÏ©¤ËÍѤ¤¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÎÁ°¤Ë
79 .BR ifconfig (8)
80 ¤ÇÀßÄꤷ¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¡£
81
82 .\"O When the
83 .\"O .B add
84 .\"O or
85 .\"O .B del
86 .\"O options are used,
87 .\"O .B route
88 .\"O modifies the routing tables.  Without these options,
89 .\"O .B route
90 .\"O displays the current contents of the routing tables.
91 .B add
92 ¤Þ¤¿¤Ï
93 .B del
94 ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢
95 .B route
96 ¤Ï·ÐÏ©¥Æ¡¼¥Ö¥ë¤òÊѹ¹¤Ç¤­¤ë¡£
97 ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢
98 .B route
99 ¤Ï¸½ºß¤Î·ÐÏ©¥Æ¡¼¥Ö¥ë¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
100
101 .\"O .SH OPTIONS
102 .SH ¥ª¥×¥·¥ç¥ó
103 .TP
104 .B \-A family
105 .\"O use the specified address family (eg `inet'; use `route --help' for a full 
106 .\"O list).
107 »ØÄꤷ¤¿¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¡¼¤ò»È¤¦
108 (Î㤨¤Ð `inet' ¤ò»ØÄꤹ¤ë¡£
109 Á´¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¤Ë¤Ï `route --help' ¤ò»È¤¦¤³¤È)¡£
110
111 .TP 
112 .B -F
113 .\"O operate on the kernel's FIB (Forwarding Information Base) routing
114 .\"O table. 
115 .\"O This is the default.
116 ¥«¡¼¥Í¥ë¤Î FIB (Forwarding Information Base) ·ÐÏ©¥Æ¡¼¥Ö¥ë¤òÁàºî¤¹¤ë¡£
117 ¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
118 .TP 
119 .B -C
120 .\"O operate on the kernel's routing cache.
121 ¥«¡¼¥Í¥ë¤Î·ÐÏ©¥Æ¡¼¥Ö¥ë¤òÁàºî¤¹¤ë¡£
122
123 .TP
124 .B \-v
125 .\"O select verbose operation.
126 Áàºî¤ÎºÝ¤Ë¾ÜºÙɽ¼¨¤¹¤ë¥â¡¼¥É¤òÁªÂò¤¹¤ë¡£
127 .TP
128 .B \-n
129 .\"O show numerical addresses instead of trying to determine symbolic host
130 .\"O names. This is useful if you are trying to determine why the route to your
131 .\"O nameserver has vanished.
132 ¥Û¥¹¥È̾¤ò²ò·è¤»¤º¡¢¥¢¥É¥ì¥¹¤ò¿ôÃͤÇɽ¼¨¤¹¤ë¡£
133 ¤³¤ì¤Ï¥Í¡¼¥à¥µ¡¼¥Ð¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ê¤É¡¢
134 ¥Û¥¹¥È̾¤Î²ò·è¤¬¤Ç¤­¤Ê¤¤¾ì¹ç¤ËÍ­ÍѤǤ¢¤ë¡£
135 .TP
136 .B \-e
137 .\"O use
138 .\"O .BR netstat (8)-format
139 .\"O for displaying the routing table.
140 .\"O .B \-ee 
141 .\"O will generate a very long line with all parameters from the routing table.
142 ·ÐÏ©¥Æ¡¼¥Ö¥ë¤Îɽ¼¨¤Ë 
143 .BR netstat (8) 
144 ¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ÈÍѤ¹¤ë¡£
145 .B \-ee 
146 ¤Ï·ÐÏ©¾ðÊó¤Î¤¹¤Ù¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ò 1 ¹Ô¤Çɽ¼¨¤¹¤ë¡£
147
148 .TP
149 .B del
150 .\"O delete a route.
151 ·ÐÏ©¤òºï½ü¤¹¤ë¡£
152 .TP 
153 .B add 
154 .\"O add a new route.
155 ¿·¤·¤¤·ÐÏ©¤òÄɲ乤롣
156 .TP
157 .B target
158 .\"O the destination network or host. You can provide IP addresses in dotted
159 .\"O decimal or host/network names.
160 ÂоݤȤ¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯¤Þ¤¿¤Ï¥Û¥¹¥È¤ò»ØÄꤹ¤ë¡£
161 10 ¿Ê¥É¥Ã¥Èɽµ­¤Î IP ¥¢¥É¥ì¥¹¤«¡¢
162 ¥Û¥¹¥È̾¤â¤·¤¯¤Ï¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¤ò»ØÄê²Äǽ¤Ç¤¢¤ë¡£
163 .TP
164 .B \-net
165 .\"O the
166 .\"O .B target
167 .\"O is a network.
168 .B target
169 ¤ò¥Í¥Ã¥È¥ï¡¼¥¯¤È¤¹¤ë¡£
170 .TP
171 .B -host
172 .\"O the
173 .\"O .B target 
174 .\"O is a host.
175 .B target
176 ¤ò¥Û¥¹¥È¤È¤¹¤ë¡£
177 .TP
178 .B netmask NM
179 .\"O when adding a network route, the netmask to be used.
180 ¥Í¥Ã¥È¥ï¡¼¥¯·ÐÏ©¤òÄɲ乤ë¾ì¹ç¡¢¤½¤³¤Ç»ÈÍѤµ¤ì¤ë¥Í¥Ã¥È¥Þ¥¹¥¯¡£
181 .TP
182 .B gw GW
183 .\"O route packets via a gateway.
184 ¥²¡¼¥È¥¦¥§¥¤¤ò·Ðͳ¤·¤¿·ÐÏ©¥Ñ¥±¥Ã¥È¡£
185 .\"O .B NOTE:
186 .\"O The specified gateway must be reachable first. This usually means that
187 .\"O you have to set up a static route to the gateway beforehand. If you specify
188 .\"O the address of one of your local interfaces, it will be used to decide about
189 .\"O the interface to which the packets should be routed to. This is a BSDism
190 .\"O compatibility hack.
191 .B Ãí°Õ:
192 µ­½Ò¤µ¤ì¤¿¥²¡¼¥È¥¦¥§¥¤¤Ï¡¢¤Þ¤ºÅþã²Äǽ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
193 ¤³¤ì¤ÏÄ̾Á°¤â¤Ã¤Æ¥²¡¼¥È¥¦¥§¥¤¤ËÀÅŪ·ÐÏ©¤ò
194 ÀßÄꤷ¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¤¢¤ë¡£
195 ¤â¤·¡¢¥í¡¼¥«¥ë¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¥¢¥É¥ì¥¹¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢
196 ¤½¤ì¤Ï¥Ñ¥±¥Ã¥È¤¬Ä̲᤹¤Ù¤­¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î·èÄê¤Ë»ÈÍѤµ¤ì¤ë¡£
197 ¤³¤ì¤Ï BSD ¤Î¼êË¡¤Ë¤Î¤Ã¤È¤Ã¤¿¤ä¤êÊý¤Ç¤¢¤ë¡£
198 .TP
199 .B metric M
200 .\"O set the metric field in the routing table (used by routing daemons) to M.
201 ·ÐÏ©¥Æ¡¼¥Ö¥ë¤Î¥á¥È¥ê¥Ã¥¯ (·ÐÏ©À©¸æ¥Ç¡¼¥â¥ó¤¬»ÈÍѤ¹¤ë) ¤ò M ¤ËÀßÄꤹ¤ë¡£
202 .TP 
203 .B mss M
204 .\"O set the TCP Maximum Segment Size (MSS) for connections over this route
205 .\"O to M bytes. 
206 .\"O The default is the device MTU minus headers, or a lower MTU when path mtu 
207 .\"O discovery occured. This setting can be used to force smaller TCP packets on the
208 .\"O other end when path mtu discovery does not work (usually because of
209 .\"O misconfigured firewalls that block ICMP Fragmentation Needed)
210 »ØÄê¤Î·ÐÏ©¤Ç¤ÎÀܳ¤Î TCP ºÇÂ祻¥°¥á¥ó¥È¥µ¥¤¥º (MSS) ¤ò M ¥Ð¥¤¥È¤ËÀßÄꤹ¤ë¡£
211 ¥Ç¥Õ¥©¥ë¥È¤Ï¥Ç¥Ð¥¤¥¹¤Î MTU (Maximum Transmission Unit, ºÇÂçÁ÷¿®Ã±°Ì) ¤«¤é
212 ¥Ø¥Ã¥À¡¼¤ò°ú¤¤¤¿¥µ¥¤¥º¤Ç¤¢¤ë¡£
213 ¤Þ¤¿¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥Ñ¥¹¤Î MTU ¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢
214 ¾®¤µ¤¤Êý¤Î MTU ¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ë¡£
215 ¤³¤ÎÀßÄê¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥Ñ¥¹¤Î MTU ¤ò¸«ÉÕ¤±¤ë¤³¤È¤¬¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç
216 (¤³¤ì¤Ï ICMP Fragmentation Needed ¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤·¤Þ¤¦¡¢
217 ´Ö°ã¤Ã¤ÆÀßÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ä¡¼¥¦¥©¡¼¥ë¤Ê¤É¤Î¤¿¤á¤Ëµ¯¤³¤ë)¡¢
218 Áê¼ê¦ TCP ¥Ñ¥±¥Ã¥È¤ò¶¯À©Åª¤Ë¾®¤µ¤¯¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
219 .TP 
220 .B window W 
221 .\"O set the TCP window size for connections over this route to W
222 .\"O bytes. This is typically only used on AX.25 networks and with drivers
223 .\"O unable to handle back to back frames.
224 »ØÄê¤Î·ÐÏ©¤Ç¤ÎÀܳ¤Î TCP ¥¦¥£¥ó¥É¥¦¥µ¥¤¥º¤ò W ¥Ð¥¤¥È¤ËÀßÄꤹ¤ë¡£
225 ¤³¤ì¤Ï°ìÈ̤ˠAX.25 ¥Í¥Ã¥È¥ï¡¼¥¯¤ä¡¢
226 Ϣ³Ū¤ËÁ÷¤é¤ì¤ë¥Õ¥ì¡¼¥à¤ò¼è¤ê¤³¤Ü¤·¤Æ¤·¤Þ¤¦¤è¤¦¤Ê¥É¥é¥¤¥Ð¡¼¤Ç¤Î¤ß»ÈÍѤµ¤ì¤ë¡£
227 .TP
228 .B irtt I
229 .\"O set the initial round trip time (irtt) for TCP connections over this
230 .\"O route to I milliseconds (1-12000). This is typically only used on
231 .\"O AX.25 networks. If omitted the RFC 1122 default of 300ms is used.
232 »ØÄê¤Î·ÐÏ©¤Ç¤Î TCP Àܳ¤Î½é´ü¥é¥¦¥ó¥É¥È¥ê¥Ã¥×»þ´Ö (irtt) ¤ò
233 I (1-12000) ¥ß¥êÉäÎÈϰϤÇÀßÄꤹ¤ë¡£
234 ¤³¤ì¤Ï°ìÈÌŪ¤Ë AX.25 ¥Í¥Ã¥È¥ï¡¼¥¯¤Ç¤Î¤ß»ÈÍѤµ¤ì¤ë¡£
235 ¾Êά¤·¤¿¾ì¹ç¡¢RFC 1122 ¤Ç¥Ç¥Õ¥©¥ë¥È¤È¤µ¤ì¤Æ¤¤¤ë 300 ¥ß¥êÉ䬻ÈÍѤµ¤ì¤ë¡£
236 .TP
237 .B reject
238 .\"O install a blocking route, which will force a route lookup to fail.
239 .\"O This is for example used to mask out networks before using the default
240 .\"O route.  This is NOT for firewalling.
241 ¥Ö¥í¥Ã¥¯¤¹¤ë·ÐÏ©¤òÀßÄꤹ¤ë¡£
242 ¤³¤ì¤Ï·ÐÏ©»²¾È¤Î¼ºÇÔ¤ò¶¯À©¤·¡¢Î㤨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î·ÐÏ©¤ò»ÈÍѤ»¤º¤Ë¡¢
243 ¥Í¥Ã¥È¥ï¡¼¥¯¤ò»È¤ï¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤·¤Þ¤¦¾ì¹ç¤Ê¤É¤ËÍѤ¤¤ë¡£
244 ¤³¤ì¤Ï¡¢¥Õ¥¡¥¤¥¢¡¼¥¦¥©¡¼¥ë¤ÎÀßÄê¤Ç¤Ï"¤Ê¤¤"¡£
245 .TP
246 .B mod, dyn, reinstate
247 .\"O install a dynamic or modified route. These flags are for diagnostic
248 .\"O purposes, and are generally only set by routing daemons.
249 ưŪ¤Ê·ÐÏ©¤äÊѹ¹·ÐÏ©¤òÀßÄꤹ¤ë¡£
250 ¤³¤ì¤é¤Î¥Õ¥é¥°¤Ï¿ÇÃǤÎÍÑÅӤ˻Ȥï¤ì¡¢
251 °ìÈÌŪ¤Ë¤Ï·ÐÏ©À©¸æ¥Ç¡¼¥â¥ó¤Ë¤è¤Ã¤Æ¤Î¤ßÀßÄꤵ¤ì¤ë¡£
252 .TP
253 .B dev If
254 .\"O force the route to be associated with the specified device, as the
255 .\"O kernel will otherwise try to determine the device on its own (by
256 .\"O checking already existing routes and device specifications, and where
257 .\"O the route is added to). In most normal networks you won't need this.
258 µ­½Ò¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Ë¡¢·ÐÏ©¤ò´ØÏ¢¤Å¤±¤ë¤³¤È¤ò¶¯À©¤¹¤ë¡£
259 Ä̾參¡¼¥Í¥ë¤Ï¼«Ê¬¼«¿È¤Ç¥Ç¥Ð¥¤¥¹¤ò·èÄꤷ¤è¤¦¤È¤¹¤ë
260 (¤¹¤Ç¤Ë¤¢¤ë·ÐÏ©¤È¥Ç¥Ð¥¤¥¹¤Îµ­½Ò¡¢·ÐÏ©¤¬¤É¤³¤ËÄɲ䵤ì¤Æ¤¤¤ë¤«¤Ë¤è¤ë)¡£
261 °ìÈÌŪ¤Ê¥Í¥Ã¥È¥ï¡¼¥¯¤Ç¤Ï¡¢¤³¤ì¤ò»ØÄꤹ¤ëɬÍפϤʤ¤¡£
262
263 .\"O If 
264 .\"O .B dev If
265 .\"O is the last option on the command line, the word 
266 .\"O .B dev
267 .\"O may be omitted, as it's the default. Otherwise the order of the route
268 .\"O modifiers (metric - netmask - gw - dev) doesn't matter.
269 ¤â¤·
270 .B dev If
271 ¤¬¥³¥Þ¥ó¥É¡¦¥é¥¤¥ó¤ÎºÇ¸å¤Î¥ª¥×¥·¥ç¥ó¤Î¾ì¹ç¤Ë¤Ï¡¢
272 .B dev
273 ¤È¤¤¤¦¸ì¤Ï¾Êά¤·¤Æ¤âÎɤ¤¡£
274 ¾¤Î¾ì¹ç¤Ç¤Ï¡¢·ÐÏ©½¤¾þ»Ò¤Î½çÈÖ (metric -netmask - gw - dev) ¤Ï½ÅÍפǤϤʤ¤¡£
275
276 .\"O .SH EXAMPLES
277 .SH Îã
278 .TP
279 .B route add -net 127.0.0.0
280 .\"O adds the normal loopback entry, using netmask 255.0.0.0 (class A net,
281 .\"O determined from the destination address) and associated with the 
282 .\"O "lo" device (assuming this device was prviously set up correctly with
283 .\"O .BR ifconfig (8)). 
284 ¥Í¥Ã¥È¥Þ¥¹¥¯ 255.0.0.0 ¤Ç
285 (¥¯¥é¥¹ A ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤¬¡¢Âоݥ¢¥É¥ì¥¹¤«¤é·èÄꤵ¤ì¤ë)¡¢
286 Ä̾ï¤Î¥ë¡¼¥×¥Ð¥Ã¥¯¤òÄɲ乤롣
287 ¤½¤ì¤Ï¡¢
288 .B lo
289 ¥Ç¥Ð¥¤¥¹¤Ë´ØÏ¢¤Å¤±¤ì¤é¤ì¤ë (¤³¤Î¥Ç¥Ð¥¤¥¹¤Ï
290 .B ifconfig(8)
291 ¤ËÁ°¤â¤Ã¤ÆÀßÄꤵ¤ì¤Æ¤¤¤ë¤È²¾Äꤷ¤Æ¤¤¤ë)¡£
292
293 .TP 
294 .B route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
295 .\"O adds a route to the network 192.56.76.x via 
296 .\"O "eth0". The Class C netmask modifier is not really necessary here because
297 .\"O 192.* is a Class C IP address. The word "dev" can be omitted here. 
298 .B eth0
299 ·Ðͳ¤Î¥Í¥Ã¥È¥ï¡¼¥¯ 192.56.76.x ¤òÄɲ乤롣
300 ¤³¤³¤Ç¤Î 192.* ¤Ï¥¯¥é¥¹ C ¤Î IP ¥¢¥É¥ì¥¹¤Ê¤Î¤Ç¡¢
301 ¥¯¥é¥¹ C ¤Î¤³¤Î¥Í¥Ã¥È¥Þ¥¹¥¯½¤¾þ»Ò¤Ïɬ¿Ü¤Ç¤Ï¤Ê¤¤¡£
302 ¤³¤Î¾ì¹ç
303 .B dev
304 ¤È¤¤¤¦¸ì¤Ï¾Êά²Äǽ¤Ç¤¢¤ë¡£
305
306 .TP
307 .B route add default gw mango-gw
308 .\"O adds a default route (which will be used if no other route matches).
309 .\"O All packets using this route will be gatewayed through "mango-gw". The
310 .\"O device which will actually be used for that route depends on how we
311 .\"O can reach "mango-gw" - the static route to "mango-gw" will have to be
312 .\"O set up before. 
313 ¥Ç¥Õ¥©¥ë¥È·ÐÏ© (ŬÀڤʷÐÏ©¤¬Â¾¤Ë¤Ê¤¤¾ì¹ç¤Ë»ÈÍѤµ¤ì¤ë¤â¤Î) ¤òÄɲ乤롣
314 ¤³¤Î·ÐÏ©¤ò»ÈÍѤ¹¤ë¤¹¤Ù¤Æ¤Î¥Ñ¥±¥Ã¥È¤Ï¡¢ "mango-gw" ¤ò·Ðͳ¤¹¤ë¡£
315 ¥Ç¥Ð¥¤¥¹¤Ï "mango-gw" ¤ËÅþ㤹¤ë¾å¤Ç¼ÂºÝ¤Ë»ÈÍѤ¹¤ë·ÐÏ©¤Ë°Í¸¤¹¤ë¡£
316 - "mango-gw" ¤ËÂФ¹¤ëÀÅŪ·ÐÏ©¤¬¤¢¤é¤«¤¸¤áÀßÄꤵ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ë¡£
317
318 .TP
319 .B route add ipx4 sl0
320 .\"O Adds the route to the "ipx4" host via the SLIP interface (assuming that
321 .\"O "ipx4" is the SLIP host).
322 "ipx4" ¤ËÂФ¹¤ë·ÐÏ©¤ò SLIP ¥¤¥ó¥¿¥Õ¥§¡¼¥¹·Ðͳ
323 ("ixp4" ¤Ï SLIP ¥Û¥¹¥È¤Ç¤¢¤ë¤È²¾Äꤹ¤ë) ¤ÇÄɲ乤롣
324
325 .TP
326 .B route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4
327 .\"O This command adds the net "192.57.66.x" to be gatewayed through the former
328 .\"O route to the SLIP interface.
329 Á°½Ò¤Î SLIP ¥¤¥ó¥¿¥Õ¥§¡¼¥¹·ÐÏ©¤ò¥²¡¼¥È¥¦¥§¥¤¤È¤·¤Æ¡¢
330 ¥Í¥Ã¥È¥ï¡¼¥¯ "192.57.66.x" ¤òÄɲ乤롣
331
332 .TP
333 .B route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
334 .\"O This is an obscure one documented so people know how to do it. This sets
335 .\"O all of the class D (multicast) IP routes to go via "eth0". This is the
336 .\"O correct normal configuration line with a multicasting kernel.
337 ¤³¤ÎÀßÄê¤Ï¤ï¤«¤ê¤Ë¤¯¤¤¤Î¤Ç¡¢¤¢¤¨¤Æµ­½Ò¤·¤¿¡£
338 ¤³¤ì¤ÏÁ´¤Æ¤Î¥¯¥é¥¹ D (¥Þ¥ë¥Á¥­¥ã¥¹¥È) IP ¤Î·ÐÏ©¤¬
339 "eth0" ¤òÄ̤äƹԤ¯¤è¤¦¤ËÀßÄꤹ¤ë¡£
340 ¤³¤ì¤Ï¥Þ¥ë¥Á¥­¥ã¥¹¥È¡¦¥«¡¼¥Í¥ë¤ÎÀµ¤·¤¤ÀßÄê¤Ç¤¢¤ë¡£ 
341
342 .TP
343 .B route add -net 10.0.0.0 netmask 255.0.0.0 reject
344 .\"O This installs a rejecting route for the private network "10.x.x.x."
345 ¥×¥é¥¤¥Ù¡¼¥È¥Í¥Ã¥È¥ï¡¼¥¯ "10.x.x.x" ¤Ø¤Î·ÐÏ©¤ò
346 µñÈÝ (reject) ¤¹¤ë¤è¤¦¤ËÀßÄꤹ¤ë¡£
347
348 .LP
349 .\"O .SH OUTPUT
350 .SH ½ÐÎÏ
351 .\"O The output of the kernel routing table is organized in the following columns
352 ¥«¡¼¥Í¥ë·ÐÏ©¥Æ¡¼¥Ö¥ë¤Î½ÐÎϤϡ¢°Ê²¼¤Î¹àÌܤǹ½À®¤µ¤ì¤ë¡£
353 .TP
354 .B Destination     
355 .\"O The destination network or destination host.
356 Âоݥͥåȥ¥¯¤â¤·¤¯¤Ï¥Û¥¹¥È¡£
357 .TP
358 .B Gateway
359 .\"O The gateway address or '*' if none set.
360 ¥²¡¼¥È¥¦¥§¥¤¤Î¥¢¥É¥ì¥¹¤«¡¢ ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤Ê¤é '*' ¤Ç¤¢¤ë¡£
361 .TP
362 .B Genmask         
363 .\"O The netmask for the destination net; '255.255.255.255' for a host destination
364 .\"O and '0.0.0.0' for the 
365 .\"O .B default
366 .\"O route.
367 .B Genmask        
368 ¤ÏÂоݥͥåȥ¥¯¤Î¥Í¥Ã¥È¥Þ¥¹¥¯¤Ç¤¢¤ë¡£
369 \&'255.255.255.255' ¤Ï¡¢¥Û¥¹¥È¤¬ÂоݤǤ¢¤ë¾ì¹ç¤Î¥Þ¥¹¥¯¤Ç¡¢
370 \&'0.0.0.0' ¤Ï¡¢
371 .B ¥Ç¥Õ¥©¥ë¥È
372 ·ÐÏ©¤Î¥Í¥Ã¥È¥Þ¥¹¥¯¤Ç¤¢¤ë¡£
373 .TP
374 .B Flags 
375 .\"O Possible flags include
376 »ØÄê²Äǽ¤Ê¥Õ¥é¥°¤È¤·¤Æ¤Ï¡¢°Ê²¼¤Î¤â¤Î¤¬¤¢¤ë¡£
377 .br
378 .B U
379 .\"O (route is
380 .\"O .BR up )
381 (·ÐÏ©¤Ï
382 .B Í­¸ú
383 ¤Ë¤Ê¤Ã¤Æ¤¤¤ë)
384 .br
385 .B H
386 .\"O (target is a
387 .\"O .BR host )
388 (¥¿¡¼¥²¥Ã¥È¤Ï
389 .B ¥Û¥¹¥È
390 ¤Ç¤¢¤ë)
391 .br
392 .B G
393 .\"O (use
394 .\"O .BR gateway )
395 .RB ( ¥²¡¼¥È¥¦¥§¥¤
396 ¤ò»ÈÍѤ¹¤ë)
397 .br
398 .B R
399 .\"O .RB ( reinstate
400 .\"O route for dynamic routing)
401 .RB ( ²óÉü
402 ¤µ¤ì¤ëưŪ·ÐÏ©)
403 .br
404 .B D
405 .\"O .RB ( dynamically
406 .\"O installed by daemon or redirect)
407 (¥Ç¡¼¥â¥ó¤â¤·¤¯¤ÏÃÖ¤­´¹¤¨¤Ë¤è¤ë
408 .B Æ°Åª¤Ê
409 ÀßÄê¤Ç¤¢¤ë)
410 .br
411 .B M
412 .\"O .RB ( modified
413 .\"O from routing daemon or redirect)
414 (·ÐÏ©À©¸æ¥Ç¡¼¥â¥ó¤â¤·¤¯¤ÏÃÖ¤­´¹¤¨¤Ë¤è¤ë
415 .B Êѹ¹
416 ¤Ç¤¢¤ë)
417 .br
418 .B A
419 .\"O (installed by
420 .\"O .BR addrconf )
421 .RB ( addrconf
422 ¤Ë¤è¤êÀßÄꤵ¤ì¤Æ¤¤¤ë)
423 .br
424 .B C
425 .\"O .RB ( cache
426 .\"O entry)
427 .RB ( ¥­¥ã¥Ã¥·¥å
428 ¤Î¥¨¥ó¥È¥ê¡¼¤Ç¤¢¤ë)
429 .br
430 .B !
431 .\"O .RB ( reject
432 .\"O route)
433 .RB ( µñÈÝ
434 (reject) ¤¹¤ë·ÐÏ©¤Ç¤¢¤ë)
435 .TP
436 .B Metric 
437 .\"O The 'distance' to the target (usually counted in hops). It is not used by
438 .\"O recent kernels, but may be needed by routing daemons.
439 ¥¿¡¼¥²¥Ã¥È¤Îµ÷Î¥ (Ä̾ï¤Ï¥Û¥Ã¥×¿ô) ¤Ç¤¢¤ë¡£
440 ºÇ¶á¤Î¥«¡¼¥Í¥ë¤Ç¤Ï̵»ë¤µ¤ì¤ë¤¬¡¢
441 ·ÐÏ©À©¸æ¥Ç¡¼¥â¥ó¤¬É¬ÍפȤ¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
442 .TP
443 .B Ref    
444 .\"O Number of references to this route. (Not used in the Linux kernel.)
445 »ØÄê¤Î¥ë¡¼¥È¤Î»²¾È¿ô (Linux ¥«¡¼¥Í¥ë¤Ç¤Ï»ÈÍѤ·¤Ê¤¤)¡£
446 .TP
447 .B Use
448 .\"O Count of lookups for the route.  Depending on the use of -F and -C this will
449 .\"O be either route cache misses (-F) or hits (-C).
450 ·ÐÏ©¤Î»²¾È²ó¿ô¤Ç¤¢¤ë¡£
451 -F ¤È -C ¥ª¥×¥·¥ç¥ó¤Î»ÈÍѤ˰͸¤¹¤ë¡£
452 ¤³¤ì¤Ï·ÐÏ©¥­¥ã¥Ã¥·¥å¤¬¼ºÇÔ (-F) ¤È¥Ò¥Ã¥È (-C) ¤·¤¿²ó¿ô¤Ç¤¢¤ë¡£
453 .TP
454 .B Iface
455 .\"O Interface to which packets for this route will be sent.
456 ¤³¤Î·ÐÏ©¤Ç»ÈÍѤ¹¤ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¤¢¤ë¡£
457 .TP
458 .B MSS 
459 .\"O Default maximum segement size for TCP connections over this route.
460 ¤³¤Î·ÐÏ©¤Ç¤Î TCP Àܳ¤Î¥Ç¥Õ¥©¥ë¥ÈºÇÂ祻¥°¥á¥ó¥È¤Ç¤¢¤ë¡£
461 .TP
462 .B Window  
463 .\"O Default window size for TCP connections over this route.
464 ¤³¤Î·ÐÏ©¤Ç¤Î TCP Àܳ¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥¦¥£¥ó¥É¥¦¡¦¥µ¥¤¥º¤Ç¤¢¤ë¡£
465 .TP
466 .B irtt
467 .\"O Initial RTT (Round Trip Time). The kernel uses this to guess about the best
468 .\"O TCP protocol parameters without waiting on (possibly slow) answers.
469 ½é´ü RTT (¥é¥¦¥ó¥É¥È¥ê¥Ã¥×»þ´Ö) ¤Ç¤¢¤ë¡£
470 ¥«¡¼¥Í¥ë¤Ï¡¢(ÃÙ¤¤¤È»×¤ï¤ì¤ë) ÊÖ¿®¤ÎÂÔ¤Á»þ´Ö¤ò´Þ¤Þ¤Ê¤¤
471 ºÇÎɤΠTCP ¥×¥í¥È¥³¥ë¥Ñ¥é¥á¡¼¥¿¡¼¤ò¿ä¬¤¹¤ë¤¿¤á¤Ë¡¢¤³¤ÎÃͤò»È¤¦¡£
472 .TP
473 .\"O .B HH (cached only)
474 .\"O The number of ARP entries and cached routes that refer to the hardware
475 .\"O header cache for the cached route. This will be \-1 if a hardware
476 .\"O address is not needed for the interface of the cached route (e.g. lo).
477 .B HH (¥­¥ã¥Ã¥·¥å¤Î¤ß)
478 ¥­¥ã¥Ã¥·¥å¤µ¤ì¤¿·ÐÏ©¤Î¤¦¤Á¥Ï¡¼¥É¥¦¥§¥¢¡¦¥Ø¥Ã¥À¡¼¡¦¥­¥ã¥Ã¥·¥å¤ò»²¾È¤¹¤ë¤â¤Î¤È
479 ARP ¥¨¥ó¥È¥ê¤Î¿ô¤Ç¤¢¤ë¡£
480 ¥­¥ã¥Ã¥·¥å¤µ¤ì¤¿·ÐÏ©¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬
481 ¥Ï¡¼¥É¥¦¥§¥¢¡¦¥¢¥É¥ì¥¹¤òɬÍפȤ·¤Ê¤¤¾ì¹ç (Î㤨¤Ð lo) ¤Ç¤Ï¡¢
482 ¤³¤ÎÃͤϠ\-1 ¤Ë¤Ê¤ë¡£
483 .TP
484 .\"O .B Arp (cached only)
485 .\"O Whether or not the hardware address for the cached route is up to date.
486 .B Arp (¥­¥ã¥Ã¥·¥å¤Î¤ß)
487 ¥­¥ã¥Ã¥·¥å¤µ¤ì¤¿·ÐÏ©¤ËÂФ¹¤ë¥Ï¡¼¥É¥¦¥§¥¢¥¢¥É¥ì¥¹¤Î¹¹¿·¾õ¶·¤Ç¤¢¤ë¡£
488 .LP
489 .\"O .SH FILES
490 .SH ¥Õ¥¡¥¤¥ë
491 .I /proc/net/ipv6_route
492 .br
493 .I /proc/net/route
494 .br
495 .I /proc/net/rt_cache
496 .LP
497 .\"O .SH SEE ALSO
498 .SH ´ØÏ¢¹àÌÜ
499 .I ifconfig(8), netstat(8), arp(8), rarp(8)
500 .LP
501 .\"O .SH HISTORY
502 .SH ÍúÎò
503 .\"O .B Route
504 .\"O for Linux was originally written by Fred N.  van Kempen,
505 .\"O <waltje@uwalt.nl.mugnet.org> and then modified by Johannes Stille and
506 .\"O Linus Torvalds for pl15. Alan Cox added the mss and window options for
507 .\"O Linux 1.1.22. irtt support and merged with netstat from Bernd Eckenfels.
508 Linux ÍѤÎ
509 .B route
510 ¥³¥Þ¥ó¥É¤Ï¡¢
511 ºÇ½é¤Ë Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¡¢
512 Johannes Stille ¤È Linus Torvalds ¤Ë¤è¤ê pl15 ¤Ë¹¹¿·¤µ¤ì¤¿¡£
513 Alan Cox ¤Ï mss ¤È window ¥ª¥×¥·¥ç¥ó¤ò Linux 1.1.22 ¤ÇÄɲä·¤¿¡£
514 irtt ¤Î¥µ¥Ý¡¼¥È¤È netstat ¤Ø¤ÎÊ»¹ç¤Ï Bernd Eckenfels ¤Ë¤è¤ë¤â¤Î¤Ç¤¢¤ë¡£
515 .\"O .SH AUTHOR
516 .SH Ãø¼Ô
517 .\"O Currently maintained by Phil Blundell <Philip.Blundell@pobox.com>.
518 ¸½ºß¤Ï Phil Blundell <Philip.Blundell@pobox.com> ¤¬¥á¥ó¥Æ¥Ê¥ó¥¹¤·¤Æ¤¤¤ë¡£