2 .\" This man page is Copyright (C) 1999 Matthew Wilcox <willy@bofh.ai>.
3 .\" Permission is granted to distribute possibly modified copies
4 .\" of this page provided the header is included verbatim,
5 .\" and in case of nontrivial modification author and date
6 .\" of the modification is added to the header.
7 .\" Modified June 1999 Andi Kleen
8 .\" $Id: arp.7,v 1.9 2001/03/12 08:45:27 nakano Exp $
10 .\" Japanese Version Copyright (c) 1999-2001 NAKANO Takeo all rights reserved.
11 .\" Translated 1999-12-06, NAKANO Takeo <nakano@apm.seikei.ac.jp>
12 .\" Updated & Modified 2001-02-16, NAKANO Takeo
13 .\" Updated 2008-12-26, Akihiro MOTOKI, LDP v3.14
15 .\"WORD permanent Êݸ
16 .\"WORD neighbor cache entry ¶á˵¥¥ã¥Ã¥·¥å¥¨¥ó¥È¥ê
17 .\"WORD stale ¸Å¤¯¤Ê¤Ã¤¿
18 .\"WORD proxy arp ÂåÍý arp
19 .\"WORD garbage collect (-or) ¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥È(¥³¥ì¥¯¥¿)
20 .\"WORD capability ¸¢¸Â
21 .\"WORD neighbor soliciation message ¶á˵Í×ÀÁ¥á¥Ã¥»¡¼¥¸
22 .\"WORD network flooding ¥Í¥Ã¥È¥ï¡¼¥¯¡¦¥Õ¥é¥Ã¥Ç¥£¥ó¥°
23 .\"WORD thrashing ¥¹¥é¥Ã¥·¥ó¥°
24 .\"WORD connection oriented Àܳ»Ø¸þ
25 .\"WORD forward progress ¥Õ¥©¥ï¡¼¥É¥×¥í¥°¥ì¥¹
27 .TH ARP 7 2008-11-25 "Linux" "Linux Programmer's Manual"
29 .\"O arp \- Linux ARP kernel module.
31 arp \- Linux ARP ¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë
34 .\"O This kernel protocol module implements the Address Resolution
35 .\"O Protocol defined in RFC\ 826.
36 .\"O It is used to convert between Layer2 hardware addresses
37 .\"O and IPv4 protocol addresses on directly connected networks.
38 .\"O The user normally doesn't interact directly with this module except to
40 .\"O instead it provides a service for other protocols in the kernel.
41 ¤³¤Î¥«¡¼¥Í¥ë¥×¥í¥È¥³¥ë¥â¥¸¥å¡¼¥ë¤Ï¡¢
42 RFC\ 826 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë Address Resolution Protocol ¤ò
43 ¼ÂÁõ¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£ ARP ¤Ï¡¢¥À¥¤¥ì¥¯¥È¤ËÀܳ¤µ¤ì¤¿¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ç¡¢
44 Âè 2 ÁؤΥϡ¼¥É¥¦¥§¥¢¥¢¥É¥ì¥¹¤òIPv4 ¥×¥í¥È¥³¥ë¥¢¥É¥ì¥¹¤Ë
45 ÊÑ´¹¤¹¤ë¤¿¤á¤ËÍѤ¤¤é¤ì¤ë¡£¥æ¡¼¥¶¡¼¤ÏÀßÄê¤Î¾ì¹ç¤ò½ü¤¤¤Æ
46 Ä̾ïľÀܤ³¤Î¥â¥¸¥å¡¼¥ë¤Ë´Ø¤ë¤³¤È¤Ï¤Ê¤¤¡£
47 ¤³¤ì¤Ï¥«¡¼¥Í¥ëÆâÉô¤Î¾¤Î¥×¥í¥È¥³¥ë¤Ë¥µ¡¼¥Ó¥¹¤òÄ󶡤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
49 .\"O A user process can receive ARP packets by using
52 .\"O There is also a mechanism for managing the ARP cache
53 .\"O in user-space by using
56 .\"O The ARP table can also be controlled via
63 ¥½¥±¥Ã¥È¤òÍѤ¤¤ì¤Ð ARP ¥Ñ¥±¥Ã¥È¤ò¼õ¿®¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£
64 ARP ¥¥ã¥Ã¥·¥å¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤Ç´ÉÍý¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
67 ¤òÍѤ¤¤ë¡£ ARP ¥Æ¡¼¥Ö¥ë¤âÀ©¸æ²Äǽ¤Ç¡¢¤³¤ì¤Ë¤ÏǤ°Õ¤Î
73 .\"O The ARP module maintains a cache of mappings between hardware addresses
74 .\"O and protocol addresses.
75 .\"O The cache has a limited size so old and less
76 .\"O frequently used entries are garbage-collected.
77 .\"O Entries which are marked
78 .\"O as permanent are never deleted by the garbage-collector.
80 .\"O be directly manipulated by the use of ioctls and its behavior can be
83 .\"O interfaces described below.
84 ARP ¥â¥¸¥å¡¼¥ë¤Ï¥Ï¡¼¥É¥¦¥§¥¢¥¢¥É¥ì¥¹¤«¤é¥×¥í¥È¥³¥ë¥¢¥É¥ì¥¹¤Ø¤Î
85 ¥Þ¥Ã¥Ô¥ó¥°¤Î¥¥ã¥Ã¥·¥å¤ò´ÉÍý¤¹¤ë¡£¥¥ã¥Ã¥·¥å¤ÎÂ礤µ¤Ë¤ÏÀ©¸Â¤¬
86 ¤¢¤ë¤Î¤Ç¡¢¸Å¤¤¥¨¥ó¥È¥ê¤äÍøÍѤµ¤ì¤Ê¤¤¥¨¥ó¥È¥ê¤Ï¥¬¥Ù¡¼¥¸¥³¥ì¥¯¥È
87 ¤µ¤ì¤ë¡£ permanent (Êݸ) ¥Þ¡¼¥¯¤¬¤Ä¤±¤é¤ì¤¿¥¨¥ó¥È¥ê¤Ï¡¢
88 ·è¤·¤Æ¥¬¥Ù¡¼¥¸¥³¥ì¥¯¥¿¤Ë¤è¤Ã¤Æ¾Ãµî¤µ¤ì¤Ê¤¤¡£
89 ioctl ¤òÍѤ¤¤ì¤Ð¥¥ã¥Ã¥·¥å¤òľÀÜÁàºî¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
92 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë¤è¤ê¥¥ã¥Ã¥·¥å¤Î¿¶¤ëÉñ¤¤¤òÄ´À°¤Ç¤¤ë¡£
94 .\"O When there is no positive feedback for an existing mapping after some
97 .\"O interfaces below), a neighbor cache entry is considered stale.
98 .\"O Positive feedback can be gotten from a higher layer; for example from
99 .\"O a successful TCP ACK.
100 .\"O Other protocols can signal forward progress
104 .\"O .BR sendmsg (2).
105 .\"O When there is no forward progress, ARP tries to reprobe.
106 .\"O It first tries to ask a local arp daemon
108 .\"O times for an updated MAC address.
109 .\"O If that fails and an old MAC address is known, an unicast probe is send
110 .\"O .B ucast_solicit
112 .\"O If that fails too, it will broadcast a new ARP
113 .\"O request to the network.
114 .\"O Requests are only sent when there is data queued
116 ¸ºß¤·¤Æ¤¤¤ë¥Þ¥Ã¥Ô¥ó¥°¤ËÂФ·¤Æ¡¢
117 Àµ¤Î¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤¬°ìÄê»þ´Ö¤Ê¤¤ (¸å½Ò¤Î
119 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò¸«¤è) ¤È¡¢
120 ¶á˵¥¥ã¥Ã¥·¥å¥¨¥ó¥È¥ê (neighbor cache entry) ¤Ï
121 ¸Å¤¯¤Ê¤Ã¤¿ (stale) ¤È¤ß¤Ê¤µ¤ì¤ë¡£
122 Àµ¤Î¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤Ï¹â°Ì¤Î¥ì¥¤¥ä¡¼¤«¤é¤â¼èÆÀ¤Ç¤¤ë
123 (Î㤨¤Ð TCP ACK ¤¬À®¸ù¤·¤¿¾ì¹ç¤Ê¤É)¡£
128 ¥Õ¥é¥°¤òÍѤ¤¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢
129 ¥Õ¥©¥ï¡¼¥É¥×¥í¥°¥ì¥¹ (forward progress) ¤ò¥·¥°¥Ê¥ë¤Ç¤¤ë¡£
130 ¥Õ¥©¥ï¡¼¥É¥×¥í¥°¥ì¥¹¤¬¤Ê¤±¤ì¤Ð¡¢
131 ARP ¤ÏºÆ¤Ó¥×¥í¡¼¥Ö¤ò»î¤ß¤ë¡£
132 ¤Þ¤º¥í¡¼¥«¥ë¤Ê arp ¥Ç¡¼¥â¥ó¤ËÌä¹ç¤ï¤»¤ò¹Ô¤¤¡¢
133 ¹¹¿·¤µ¤ì¤¿ MAC ¥¢¥É¥ì¥¹¤ò¼èÆÀ¤·¤è¤¦¤È¤¹¤ë¡£
136 ²ó¼ºÇÔ¤¹¤ë¤È¡¢¸Å¤¤ MAC ¥¢¥É¥ì¥¹¤¬¤ï¤«¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
139 ²óÁ÷¤é¤ì¤ë¡£¤³¤ì¤Ë¤â¼ºÇÔ¤¹¤ë¤È¡¢¿·¤·¤¤ ARP ¥ê¥¯¥¨¥¹¥È
140 ¤ò¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤¹¤ë¡£
141 ¥ê¥¯¥¨¥¹¥È¤Ï¡¢¥Ç¡¼¥¿¤¬Á÷¿®¥¥å¡¼¤Ë¤Ê¤±¤ì¤ÐÁ÷¤é¤ì¤Ê¤¤¡£
143 .\"O Linux will automatically add a nonpermanent proxy arp entry when it
144 .\"O receives a request for an address it forwards to and proxy arp is
145 .\"O enabled on the receiving interface.
146 .\"O When there is a reject route for the target, no proxy arp entry is added.
147 Linux ¤Ï¡¢¤¢¤ë¥¢¥É¥ì¥¹¤Ø¤Î¥ê¥¯¥¨¥¹¥È¤ò¼õ¿®¡¦¥Õ¥©¥ï¡¼¥É¤·¡¢
148 ¼õ¿®¤·¤¿¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ÇÂåÍý arp ¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
149 ¼«Æ°Åª¤Ë¤½¤Î¥¢¥É¥ì¥¹¤ò nonpermanent ¤ÊÂåÍý arp ¥¨¥ó¥È¥ê¤ËÄɲ乤롣
150 ¤½¤Î¥¿¡¼¥²¥Ã¥È¤Ë reject route ¤¬¤¢¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
151 ÂåÍý arp ¥¨¥ó¥È¥ê¤Ï°ìÀÚÄɲ䵤ì¤Ê¤¤¡£
154 .\"O Three ioctls are available on all
157 .\"O They take a pointer to a
158 .\"O .I struct arpreq
159 .\"O as their argument.
162 ¥½¥±¥Ã¥È¤Ç¤Ï¡¢ 3 ¤Ä¤Î ioctl ¤¬»ÈÍѤǤ¤ë¡£
165 ¤Ø¤Î¥Ý¥¤¥ó¥¿¤ò°ú¿ô¤Ë¼è¤ë¡£
170 struct sockaddr arp_pa; /* protocol address */
171 struct sockaddr arp_ha; /* hardware address */
172 int arp_flags; /* flags */
173 struct sockaddr arp_netmask; /* netmask of protocol address */
179 .\"O .BR SIOCSARP ", " SIOCDARP " and " SIOCGARP
180 .\"O respectively set, delete and get an ARP mapping.
181 .\"O Setting and deleting ARP maps are privileged operations and may
182 .\"O only be performed by a process with the
183 .\"O .B CAP_NET_ADMIN
184 .\"O capability or an effective UID of 0.
185 .BR SIOCSARP ", " SIOCDARP ", " SIOCGARP
186 ¤Ï¡¢¤½¤ì¤¾¤ì ARP ¥Þ¥Ã¥Ô¥ó¥°¤òÀßÄꡦºï½ü¡¦¼èÆÀ¤¹¤ë¡£
187 ARP ¥Þ¥Ã¥×¤ÎÀßÄê¤Èºï½ü¤ÏÆø¢¤¬É¬ÍפÊÁàºî¤Ç¤¢¤ê¡¢
189 ¸¢¸Â¤ò»ý¤Ä¥×¥í¥»¥¹¤«¡¢¼Â¹Ô¥æ¡¼¥¶¡¼ ID ¤¬ 0 ¤Î¥×¥í¥»¥¹
190 ¤Ç¤Ê¤±¤ì¤Ð¼Â¹Ô¤Ç¤¤Ê¤¤¡£
197 .\"O must have the same type as the device which is specified in
200 .\"O is a zero-terminated string which names a device.
204 ¥½¥±¥Ã¥È¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢
208 ¤ÇÀßÄꤵ¤ì¤¿¥Ç¥Ð¥¤¥¹¤ÈƱ¤¸¥¿¥¤¥×¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
210 ¤Ï¥Ç¥Ð¥¤¥¹¤Î̾Á°¤ò¼¨¤¹¡¢¥¼¥í¤Ç½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤Ç¤¢¤ë¡£
218 .\"O ATF_COM:Lookup complete
219 .\"O ATF_PERM:Permanent entry
220 .\"O ATF_PUBL:Publish entry
221 .\"O ATF_USETRAILERS:Trailers requested
222 .\"O ATF_NETMASK:Use a netmask
223 .\"O ATF_DONTPUB:Don't answer
226 ATF_PERM:¥¨¥ó¥È¥ê¤ò peramanent ¤Ë¤¹¤ë
227 ATF_PUBL:¥¨¥ó¥È¥ê¤ò publish ¤¹¤ë
228 ATF_USETRAILERS:trailer ¤¬É¬Í×
229 ATF_NETMASK:netmask ¤òÍѤ¤¤ë
230 ATF_DONTPUB:²óÅú¤·¤Ê¤¤
237 .\"O flag is set, then
239 .\"O should be valid.
240 .\"O Linux 2.2 does not support proxy network ARP entries, so this
241 .\"O should be set to 0xffffffff, or 0 to remove an existing proxy arp entry.
242 .\"O .B ATF_USETRAILERS
243 .\"O is obsolete and should not be used.
245 ¥Õ¥é¥°¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤È¤¤Ë¤Ï¡¢
247 ¤¬Í¸ú¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
248 Linux 2.2 ¤ÏÂåÍý¥Í¥Ã¥È¥ï¡¼¥¯ ARP ¥¨¥ó¥È¥ê¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢
249 ¤³¤ì¤Ï 0xffffffff ¤Ë¥»¥Ã¥È¤·¤Æ¤ª¤¯¤«¡¢¤¢¤ë¤¤¤Ï
250 ¸½Â¸¤ÎÂåÍý arp ¥¨¥ó¥È¥ê¤òºï½ü¤·¤¿¤¤¾ì¹ç¤Ë¤Ï 0 ¤Ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¡£
252 ¤Ï obsolete ¤Ê¤Î¤Ç¡¢ÍѤ¤¤ë¤Ù¤¤Ç¤Ê¤¤¡£
253 .\"O .SS /proc interfaces
254 .SS /proc ¥¤¥ó¥¿¥Õ¥§¡¼¥¹
255 .\"O ARP supports a range of
257 .\"O interfaces to configure parameters on a global or per-interface basis.
258 .\"O The interfaces can be accessed by reading or writing the
259 .\"O .I /proc/sys/net/ipv4/neigh/*/*
261 .\"O Each interface in the system has its own directory in
262 .\"O .IR /proc/sys/net/ipv4/neigh/ .
263 .\"O The setting in the "default" directory is used for all newly created
265 .\"O Unless otherwise specified, time-related sysctls are specified
267 ARP ¤Ç¤Ï¡¢¥°¥í¡¼¥Ð¥ë¤Ê¥Ñ¥é¥á¡¼¥¿¤ä¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤´¤È¤Î¥Ñ¥é¥á¡¼¥¿¤ò
269 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ̤·¤ÆÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
270 ¤³¤ì¤é¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë¤Ï¡¢
271 .I proc/sys/net/ipv4/neigh/*/*
272 ¥Õ¥¡¥¤¥ë¤ÎÆɤ߽ñ¤¤Ë¤è¤ê¥¢¥¯¥»¥¹¤Ç¤¤ë¡£
273 ¥·¥¹¥Æ¥à¤Ë¤¢¤ë¤½¤ì¤¾¤ì¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ë¤Ï¡¢
274 ¤½¤ì¤¾¤ìÂбþ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤¬
275 .I /proc/sys/net/ipv4/neigh/
277 "default" ¥Ç¥£¥ì¥¯¥È¥ê¤ËÂФ·¤ÆÀßÄê¤ò¤¹¤ë¤È¡¢
278 ¤½¤ì°Ê¹ßÀ¸À®¤µ¤ì¤ë¥Ç¥Ð¥¤¥¹Á´¤Æ¤ËÂФ·¤Æ¤½¤ÎÀßÄ꤬ÍѤ¤¤é¤ì¤ë¡£
279 Æä˻ØÄ꤬¤Ê¤±¤ì¤Ð¡¢»þ´Ö¤Ë´Ø¤ë sysctl ¤Îñ°Ì¤ÏÉäǤ¢¤ë¡£
281 .\"O .IR anycast_delay " (since Linux 2.2)"
282 .IR anycast_delay " (Linux 2.2 °Ê¹ß)"
283 .\" Precisely: 2.1.79
284 .\"O The maximum number of jiffies to delay before replying to a
285 .\"O IPv6 neighbor solicitation message.
286 .\"O Anycast support is not yet implemented.
287 .\"O Defaults to 1 second.
288 IPv6 ¤Î¶á˵Í×ÀÁ¥á¥Ã¥»¡¼¥¸ (neighbor soliciation message)
289 ¤Ë±þÅú¤¹¤ë¤Þ¤Ç¤ÎºÇÂçÃÙ±ä»þ´Ö (jiffy ñ°Ì)¡£
290 anycast ¤Î¥µ¥Ý¡¼¥È¤Ï¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
293 .\"O .IR app_solicit " (since Linux 2.2)"
294 .IR app_solicit " (Linux 2.2 °Ê¹ß)"
295 .\" Precisely: 2.1.79
296 .\"O The maximum number of probes to send to the user space ARP daemon via
297 .\"O netlink before dropping back to multicast probes (see
298 .\"O .IR mcast_solicit ).
300 ¥æ¡¼¥¶¡¼¶õ´Ö¤Î ARP ¥Ç¡¼¥â¥ó¤Ë netlink ¤òÍѤ¤¤Æõº÷¤µ¤»¤ëºÇÂç²ó¿ô¡£
301 ¤³¤ì¤ò±Û¤¨¤ë¤È¥Þ¥ë¥Á¥¥ã¥¹¥È¤Ë¤è¤ëõº÷¤Ë°Ü¹Ô¤¹¤ë
305 .\"O .IR base_reachable_time " (since Linux 2.2)"
306 .IR base_reachable_time " (Linux 2.2 °Ê¹ß)"
307 .\" Precisely: 2.1.79
308 .\"O Once a neighbor has been found, the entry is considered to be valid
309 .\"O for at least a random value between
310 .\"O .IR base_reachable_time "/2 and 3*" base_reachable_time /2.
311 .\"O An entry's validity will be extended if it receives positive feedback
312 .\"O from higher level protocols.
313 .\"O Defaults to 30 seconds.
314 ¶á˵¤Î¥Û¥¹¥È¤¬¤ß¤Ä¤«¤ë¤È¡¢¤½¤Î¥¨¥ó¥È¥ê¤Ï
315 .IR base_reachable_time "/2 ¤«¤é 3*" base_reachable_time /2
316 ¤Î´Ö¤Î¥é¥ó¥À¥à¤ÊÃͤλþ´Ö¡¢Í¸ú¤Ç¤¢¤ë¤È¤ß¤Ê¤µ¤ì¤ë¡£
317 ¥¨¥ó¥È¥ê¤Î͸úÀ¤Ï¡¢¹â°Ì¤Î¥×¥í¥È¥³¥ë¤«¤é¥Ý¥¸¥Æ¥£¥Ö¤Ê¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤ò
318 ¼õ¤±¼è¤ë¤È±äŤµ¤ì¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï 30 Éá£
319 .\"O This file is now obsolete in favor of
320 .\"O .IR base_reachable_time_ms .
321 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¸½ºß¤ÏÈó¿ä¾©¤Ç¤¢¤ê¡¢Âå¤ï¤ê¤Ë
322 .I base_reachable_time_ms
325 .\"O .IR base_reachable_time_ms " (since Linux 2.6.12)"
326 .IR base_reachable_time_ms " (Linux 2.6.12 °Ê¹ß)"
328 .\"O .IR base_reachable_time ,
329 .\"O but measures time in milliseconds.
330 .\"O Defaults to 30000 milliseconds.
331 .I base_reachable_time
332 ¤ÈƱ¤¸¤À¤¬¡¢»þ´Ö¤ò¥ß¥êÉÃñ°Ì¤Ç¬¤ë¡£
333 ¥Ç¥Õ¥©¥ë¥È¤Ï 30000 ¥ß¥êÉäǤ¢¤ë¡£
335 .\"O .IR delay_first_probe_time " (since Linux 2.2)"
336 .IR delay_first_probe_time " (Linux 2.2 °Ê¹ß)"
337 .\" Precisely: 2.1.79
338 .\"O Delay before first probe after it has been decided that a neighbor
340 .\"O Defaults to 5 seconds.
341 ¶á˵¥Û¥¹¥È¤Î¥¨¥ó¥È¥ê¤¬¸Å¤¯¤Ê¤Ã¤¿¤ÈȽÃǤµ¤ì¤¿¸å¤Ë
342 ºÇ½é¤Ëõº÷¤ò¹Ô¤¦¤Þ¤Ç¤ÎÃÙ±ä»þ´Ö¡£¥Ç¥Õ¥©¥ë¥È¤Ï 5 Éá£
344 .\"O .IR gc_interval " (since Linux 2.2)"
345 .IR gc_interval " (Linux 2.2 °Ê¹ß)"
346 .\" Precisely: 2.1.79
347 .\"O How frequently the garbage collector for neighbor entries
348 .\"O should attempt to run.
349 .\"O Defaults to 30 seconds.
350 ¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥¿¤ò¶á˵¥Û¥¹¥È¥¨¥ó¥È¥ê¤ËÂФ·¤Æ¼Â¹Ô¤µ¤»¤ëÉÑÅÙ¡£
353 .\"O .IR gc_stale_time " (since Linux 2.2)"
354 .IR gc_stale_time " (Linux 2.2 °Ê¹ß)"
355 .\" Precisely: 2.1.79
356 .\"O Determines how often to check for stale neighbor entries.
357 .\"O When a neighbor entry is considered stale, it is resolved again before
358 .\"O sending data to it.
359 .\"O Defaults to 60 seconds.
360 ¸Å¤¯¤Ê¤Ã¤¿¶á˵¥Û¥¹¥È¥¨¥ó¥È¥ê¤ËÂФ·¤Æ¥Á¥§¥Ã¥¯¤ò¹Ô¤¦ÉÑÅÙ¡£
361 ¶á˵¥Û¥¹¥È¥¨¥ó¥È¥ê¤¬¸Å¤¯¤Ê¤Ã¤¿¤È¤ß¤Ê¤µ¤ì¤ë¤È¡¢¤½¤Î¥¨¥ó¥È¥ê¤Ë
362 ¥Ç¡¼¥¿¤òÁ÷¤ëÁ°¤Ë¤ÏºÆÅÙ²ò·è¤¬¹Ô¤ï¤ì¤ë¡£
365 .\"O .IR gc_thresh1 " (since Linux 2.2)"
366 .IR gc_thresh1 " (Linux 2.2 °Ê¹ß)"
367 .\" Precisely: 2.1.79
368 .\"O The minimum number of entries to keep in the ARP cache.
369 .\"O The garbage collector will not run if there are fewer than
370 .\"O this number of entries in the cache.
371 .\"O Defaults to 128.
372 ARP ¥¥ã¥Ã¥·¥å¤ËÊݸ¤¹¤ë¥¨¥ó¥È¥ê¿ô¤ÎºÇ¾®ÃÍ¡£
373 ¤³¤Î¿ô¤è¤ê¾¯¤Ê¤¤¥¨¥ó¥È¥ê¤·¤«¥¥ã¥Ã¥·¥å¤Ë¤Ê¤±¤ì¤Ð¡¢
374 ¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥¿¤Ï¼Â¹Ô¤µ¤ì¤Ê¤¤¡£
377 .\"O .IR gc_thresh2 " (since Linux 2.2)"
378 .IR gc_thresh2 " (Linux 2.2 °Ê¹ß)"
379 .\" Precisely: 2.1.79
380 .\"O The soft maximum number of entries to keep in the ARP cache.
381 .\"O The garbage collector will allow the number of entries to exceed
382 .\"O this for 5 seconds before collection will be performed.
383 .\"O Defaults to 512.
384 ARP ¥¥ã¥Ã¥·¥å¤ËÊݸ¤µ¤ì¤ë¥¨¥ó¥È¥ê¿ô¤Î¥½¥Õ¥È¤ÊºÇÂçÃÍ¡£
385 ¥¥ã¥Ã¥·¥å¤Î¥¨¥ó¥È¥ê¤¬¤³¤Î¿ô¤ò 5 Éôֱۤ¨¤Ä¤Å¤±¤ë¤È¡¢
386 ¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥¿¤¬¼Â¹Ô¤µ¤ì¤ë¡£
389 .\"O .IR gc_thresh3 " (since Linux 2.2)"
390 .IR gc_thresh3 " (Linux 2.2 °Ê¹ß)"
391 .\" Precisely: 2.1.79
392 .\"O The hard maximum number of entries to keep in the ARP cache.
393 .\"O The garbage collector will always run if there are more than
394 .\"O this number of entries in the cache.
395 .\"O Defaults to 1024.
396 ARP ¥¥ã¥Ã¥·¥å¤ËÊݸ¤µ¤ì¤ë¥¨¥ó¥È¥ê¿ô¤Î¥Ï¡¼¥É¤ÊºÇÂçÃÍ¡£
397 ¥¥ã¥Ã¥·¥å¤Î¥¨¥ó¥È¥ê¤¬¤³¤Î¿ô¤ò±Û¤¨¤ë¤È¡¢
398 ¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥¿¤Ï¤¿¤À¤Á¤Ë¼Â¹Ô¤µ¤ì¤ë¡£
401 .\"O .IR locktime " (since Linux 2.2)"
402 .IR locktime " (Linux 2.2 °Ê¹ß)"
403 .\" Precisely: 2.1.79
404 .\"O The minimum number of jiffies to keep an ARP entry in the cache.
405 .\"O This prevents ARP cache thrashing if there is more than one potential
406 .\"O mapping (generally due to network misconfiguration).
407 .\"O Defaults to 1 second.
408 ARP ¥¨¥ó¥È¥ê¤ò¥¥ã¥Ã¥·¥å¤ËÊݸ¤¹¤ë»þ´Ö¤ÎºÇ¾®ÃÍ (jiffy ñ°Ì)¡£
409 ²ÄǽÀ¤Î¤¢¤ë¥Þ¥Ã¥Ô¥ó¥°¤¬°ì¤Ä°Ê¾å¤¢¤ë (¤¿¤¤¤Æ¤¤¤Ï¥Í¥Ã¥È¥ï¡¼¥¯ÀßÄê¤Î¥ß¥¹)
410 ¾ì¹ç¤Ë¡¢ ARP ¥¥ã¥Ã¥·¥å¤Î¥¹¥é¥Ã¥·¥ó¥°¤¬µ¯¤¤ë¤³¤È¤òËɤ°¡£
413 .\"O .IR mcast_solicit " (since Linux 2.2)"
414 .IR mcast_solicit " (Linux 2.2 °Ê¹ß)"
415 .\" Precisely: 2.1.79
416 .\"O The maximum number of attempts to resolve an address by
417 .\"O multicast/broadcast before marking the entry as unreachable.
419 ¥¨¥ó¥È¥ê¤ò unreachable ¥Þ¡¼¥¯¤¹¤ëÁ°¤Ë¡¢
420 ¥¢¥É¥ì¥¹¤ò¥Þ¥ë¥Á¥¥ã¥¹¥È/¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤Ç²ò·è¤·¤è¤¦¤È¤¹¤ë
424 .\"O .IR proxy_delay " (since Linux 2.2)"
425 .IR proxy_delay " (Linux 2.2 °Ê¹ß)"
426 .\" Precisely: 2.1.79
427 .\"O When an ARP request for a known proxy-ARP address is received, delay up to
429 .\"O jiffies before replying.
430 .\"O This is used to prevent network flooding in some cases.
431 .\"O Defaults to 0.8 seconds.
432 ´ûÃΤÎÂåÍý ARP ¥¢¥É¥ì¥¹¤ËÂФ·¤Æ ARP ¥ê¥¯¥¨¥¹¥È¤ò¼õ¿®¤·¤¿¾ì¹ç¤Ë¡¢
435 jiffy ¤Þ¤ÇÃٱ䤹¤ë¡£¤³¤ì¤Ï¾ì¹ç¤Ë¤è¤Ã¤ÆÀ¸¤¸¤ë
436 ¥Í¥Ã¥È¥ï¡¼¥¯¡¦¥Õ¥é¥Ã¥Ç¥£¥ó¥° (network flooding) ¤òÈò¤±¤ë¤¿¤á¤ËÍѤ¤¤ë¡£
437 ¥Ç¥Õ¥©¥ë¥È¤Ï 0.8 Éá£
439 .\"O .IR proxy_qlen " (since Linux 2.2)"
440 .IR proxy_qlen " (Linux 2.2 °Ê¹ß)"
441 .\" Precisely: 2.1.79
442 .\"O The maximum number of packets which may be queued to proxy-ARP addresses.
444 ÂåÍý ARP ¥¢¥É¥ì¥¹¤ËÂФ·¤Æ¥¥å¡¼¥¤¥ó¥°¤Ç¤¤ëºÇÂç¤Î¥Ñ¥±¥Ã¥È¿ô¡£
447 .\"O .IR retrans_time " (since Linux 2.2)"
448 .IR retrans_time " (Linux 2.2 °Ê¹ß)"
449 .\" Precisely: 2.1.79
450 .\"O The number of jiffies to delay before retransmitting a request.
451 .\"O Defaults to 1 second.
452 .\"O This file is now obsolete in favor of
453 .\"O .IR retrans_time_ms .
454 ¥ê¥¯¥¨¥¹¥È¤òºÆÅÙÁ÷¤ë¤Þ¤Ç¤ÎÃÙ±ä»þ´Ö (jiffy ñ°Ì)¡£
456 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¸½ºß¤ÏÈó¿ä¾©¤Ç¤¢¤ê¡¢Âå¤ï¤ê¤Ë
460 .\"O .IR retrans_time_ms " (since Linux 2.6.12)"
461 .IR retrans_time_ms " (Linux 2.6.12 °Ê¹ß)"
462 .\"O The number of milliseconds to delay before retransmitting a request.
463 .\"O Defaults to 1000 milliseconds.
464 ¥ê¥¯¥¨¥¹¥È¤òºÆÅÙÁ÷¤ë¤Þ¤Ç¤ÎÃÙ±ä»þ´Ö (¥ß¥êÉÃñ°Ì)¡£
465 ¥Ç¥Õ¥©¥ë¥È¤Ï 1000 ¥ß¥êÉá£
467 .\"O .IR ucast_solicit " (since Linux 2.2)"
468 .IR ucast_solicit " (Linux 2.2 °Ê¹ß)"
469 .\" Precisely: 2.1.79
470 .\"O The maximum number of attempts to send unicast probes before asking
471 .\"O the ARP daemon (see
472 .\"O .IR app_solicit ).
474 ARP ¥Ç¡¼¥â¥ó¤Ø¤ÎÌ䤤¹ç¤ï¤»¤ò¹Ô¤¦Á°¤Ë¹Ô¤¦ unicast õº÷¤ÎºÇÂç»î¹Ô¿ô
476 ¤ò¸«¤è)¡£¥Ç¥Õ¥©¥ë¥È¤Ï 3¡£
478 .\"O .IR unres_qlen " (since Linux 2.2)"
479 .IR unres_qlen " (Linux 2.2 °Ê¹ß)"
480 .\" Precisely: 2.1.79
481 .\"O The maximum number of packets which may be queued for each unresolved
482 .\"O address by other network layers.
484 ²ò·è¤µ¤ì¤Æ¤¤¤Ê¤¤¥¢¥É¥ì¥¹¤ËÂФ·¤Æ¡¢
485 ¾¤Î¥Í¥Ã¥È¥ï¡¼¥¯Áؤ«¤é¥¥å¡¼¥¤¥ó¥°¤Ç¤¤ëºÇÂç¥Ñ¥±¥Ã¥È¿ô¡£
490 .\"O .I struct arpreq
491 .\"O changed in Linux 2.0 to include the
493 .\"O member and the ioctl numbers changed at the same time.
494 .\"O Support for the old ioctls was dropped in Linux 2.2.
499 ¥á¥ó¥Ð¡¼¤¬´Þ¤Þ¤ì¤ë¤è¤¦¤ËÊѹ¹¤¬¤¢¤Ã¤¿¡£¤Þ¤¿Æ±»þ¤Ë
500 ioctl ÈÖ¹æ¤âÊѹ¹¤µ¤ì¤¿¡£¸Å¤¤ ioctl ¤Ï
501 Linux 2.2 ¤ÇÍѤ¤¤ë¤³¤È¤¬¤Ç¤¤Ê¤¯¤Ê¤Ã¤¿¡£
503 .\"O Support for proxy arp entries for networks (netmask not equal 0xffffffff)
504 .\"O was dropped in Linux 2.2.
505 .\"O It is replaced by automatic proxy arp setup by
506 .\"O the kernel for all reachable hosts on other interfaces (when
507 .\"O forwarding and proxy arp is enabled for the interface).
508 ¥Í¥Ã¥È¥ï¡¼¥¯¤ËÂФ¹¤ëÂåÍý arp ¥¨¥ó¥È¥ê (netmask ¤¬ 0xffffffff ¤Ç¤Ê¤¤)
509 ¤Ï¡¢ Linux 2.2 ¤ÇÍѤ¤¤ë¤³¤È¤¬¤Ç¤¤Ê¤¯¤Ê¤Ã¤¿¡£
510 ¤³¤ì¤Ï¥«¡¼¥Í¥ë¤Ë¤è¤Ã¤ÆÀßÄꤵ¤ì¤ë¡¢Ê̤Υ¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ë¤ª¤±¤ë
511 Åþã²Äǽ¤Ê¤¹¤Ù¤Æ¤Î¥Û¥¹¥È¤ËÂФ¹¤ë¼«Æ°ÂåÍý arp ¤Ë¤è¤Ã¤ÆÃÖ¤´¹¤¨¤é¤ì¤¿
512 (¤½¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç¥Õ¥©¥ï¡¼¥Ç¥£¥ó¥°¤ÈÂåÍý arp ¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç)¡£
516 .\"O interfaces did not exist before Linux 2.2.
518 ¤Î³Æ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï Linux 2.2 °ÊÁ°¤Ë¤Ï¸ºß¤·¤Ê¤¤¡£
521 .\"O Some timer settings are specified in jiffies, which is architecture-
522 .\"O and kernel version-dependent; see
524 ¤¤¤¯¤Ä¤«¤Î¥¿¥¤¥Þ¡¼ÀßÄê¤Ï jiffy ¤Ç»ØÄꤵ¤ì¤ë¤¬¡¢
525 jiffy ¤Ï¥¢¡¼¥¥Æ¥¯¥Á¥ã¤ä¥«¡¼¥Í¥ë¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë°Í¸¤¹¤ë¡£
529 .\"O There is no way to signal positive feedback from user space.
530 .\"O This means connection-oriented protocols implemented in user space
531 .\"O will generate excessive ARP traffic, because ndisc will regularly
532 .\"O reprobe the MAC address.
533 .\"O The same problem applies for some kernel protocols (e.g., NFS over UDP).
534 ¥æ¡¼¥¶¡¼¶õ´Ö¤«¤é¥Ý¥¸¥Æ¥£¥Ö¤Ê¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤òÁ÷¤ëÊýË¡¤¬Â¸ºß¤·¤Ê¤¤¡£
535 ¤Ä¤Þ¤êÀܳ»Ø¸þ (connection-oriented) ¤Î¥×¥í¥È¥³¥ë¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤Ç
536 ¼ÂÁõ¤¹¤ë¤È¡¢Í¾·×¤Ê ARP ¥È¥é¥Õ¥£¥Ã¥¯¤Î¸¶°ø¤È¤Ê¤ë¡£
537 ¤Ê¤¼¤Ê¤é ndisc ¤ÏÄê´üŪ¤Ë MAC ¥¢¥É¥ì¥¹¤òºÆõº÷¤¹¤ë¤«¤é¤Ç¤¢¤ë¡£
538 ƱÍͤÎÌäÂê¤Ï¤¤¤¯¤Ä¤«¤Î¥«¡¼¥Í¥ë¥×¥í¥È¥³¥ë (NFS over UDP ¤Ê¤É) ¤Ë¤â¸ºß¤¹¤ë¡£
540 .\"O This man page mashes IPv4 specific and shared between IPv4 and IPv6
541 .\"O functionality together.
542 ¤³¤Î man ¥Ú¡¼¥¸¤Ç¤Ï IPv4 ÆÃͤε¡Ç½¤È
543 IPv4¡¦IPv6 ¤Ç¶¦Í¤µ¤ì¤ëµ¡Ç½¤È¤¬¤´¤Ã¤Á¤ã¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
546 .BR capabilities (7),
549 .\"O RFC\ 826 for a description of ARP.
553 .\"O RFC\ 2461 for a description of IPv6 neighbor discovery and the base
554 .\"O algorithms used.
556 IPv6 neighbor discovery ¤Ë´Ø¤¹¤ëÀâÌÀ¤È¡¢
557 ÍøÍѤµ¤ì¤Æ¤¤¤ë´ðÁÃ¥¢¥ë¥´¥ê¥º¥à
559 .\"O Linux 2.2+ IPv4 ARP uses the IPv6 algorithms when applicable.
560 Linux 2.2 °Ê¹ß¤Î IPv4 ARP ¤Ï¡¢
561 ²Äǽ¤Ê¾ì¹ç¤Ï IPv6 ¤Î¥¢¥ë¥´¥ê¥º¥à¤òÍѤ¤¤ë¡£