332b359851
Submitted by: Norihiro Kumagai <kuma@nk.rim.or.jp> Reviewed by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>, kano@na.rim.or.jp
426 lines
12 KiB
Groff
426 lines
12 KiB
Groff
.\" Copyright (c) 1983, 1990, 1992, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)netstat.1 8.8 (Berkeley) 4/18/94
|
|
.\" %FreeBSD: src/usr.bin/netstat/netstat.1,v 1.50 2004/05/31 21:46:06 bmilekic Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.\" WORD: symbolically ¥·¥ó¥Ü¥ëɽµ
|
|
.\"
|
|
.Dd March 25, 2004
|
|
.Dt NETSTAT 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm netstat
|
|
.Nd ¥Í¥Ã¥È¥ï¡¼¥¯¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¤Ë´ØÏ¢¤·¤¿¤µ¤Þ¤¶¤Þ¤Ê¥Ç¡¼¥¿¹½Â¤¤Î¾ðÊó¤ò¡¢
|
|
¥·¥ó¥Ü¥ëɽµ¤ò¸ò¤¨¤Æɽ¼¨¤·¤Þ¤¹¡£
|
|
½ÐÎϤηÁ¼°¤ÏÍÍ¡¹¤¢¤ê¡¢»ØÄꤷ¤¿¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£
|
|
.Bl -tag -width indent
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Op Fl AaLnSW
|
|
.Op Fl f Ar protocol_family | Fl p Ar protocol
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
³Æ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥È¥³¥ë¡¢¤Þ¤¿¤Ï
|
|
ÆÃÄê¤Î
|
|
.Ar protocol_family
|
|
¤¢¤ë¤¤¤Ïñ°ì¤Î
|
|
.Ar protocol
|
|
¤Ë¤Ä¤¤¤Æ¥¢¥¯¥Æ¥£¥Ö¤Ê¥½¥±¥Ã¥È (¥×¥í¥È¥³¥ëÀ©¸æ¥Ö¥í¥Ã¥¯) ¤Î°ìÍ÷¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl A
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥½¥±¥Ã¥È¤Ë·ë¤ÓÉÕ¤±¤é¤ì¤¿
|
|
¥×¥í¥È¥³¥ëÀ©¸æ¥Ö¥í¥Ã¥¯ (PCB) ¤Î¥¢¥É¥ì¥¹¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¥Ç¥Ð¥Ã¥°ÍѤ˻ÈÍѤ·¤Þ¤¹¡£
|
|
.Fl a
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¤¹¤Ù¤Æ¤Î¥½¥±¥Ã¥È¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
Ä̾ï¤Ï¥µ¡¼¥Ð¥×¥í¥»¥¹¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤ë¥½¥±¥Ã¥È¤Ïɽ¼¨¤·¤Þ¤»¤ó¡£
|
|
.Fl L
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
|
|
ÍÍ¡¹¤Ê listen ÂÔ¤Á¹ÔÎó¤ÎÂ礤µ¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
1 ÈÖÌܤοô¤Ï¡¢¼õ¤±ÉÕ¤±¤é¤ì¤Ê¤«¤Ã¤¿Àܳ¿ô¤Ç¤¹¡£
|
|
2 ÈÖÌܤοô¤Ï¡¢¼õ¤±ÉÕ¤±¤é¤ì¤Ê¤«¤Ã¤¿ÉÔ´°Á´¤ÊÀܳ¿ô¤Î¹ç·×¤Ç¤¹¡£
|
|
3 ÈÖÌܤοô¤Ï¡¢ÂÔ¤Á¹ÔÎó¤Ë·Ò¤¬¤ì¤¿Àܳ¤ÎºÇÂç¿ô¤Ç¤¹¡£
|
|
.Fl S
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
|
|
.Pf ( Fl n
|
|
¤ÈƱ¤¸¤è¤¦¤Ë) ¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤ò¿ô»ú¤Çɽ¼¨¤·¤Þ¤¹¤¬¡¢
|
|
¥Ý¡¼¥È¤Ï¥·¥ó¥Ü¥ëɽµ¤Çɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl i | I Ar interface
|
|
.Op Fl abdnt
|
|
.Op Fl f Ar address_family
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
¼«Æ°ÀßÄꤵ¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Þ¤¿¤Ïñ°ì¤Î
|
|
.Ar interface
|
|
¤Î¾õÂÖ¤òɽ¼¨¤·¤Þ¤¹
|
|
(¥·¥¹¥Æ¥à¤ËÀÅŪ¤ËÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Æ¤â
|
|
¥Ö¡¼¥È»þ¤Ë¸ºß¤·¤Æ¤¤¤Ê¤¤¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ïɽ¼¨¤µ¤ì¤Þ¤»¤ó)¡£
|
|
¥¤¥ó¥¿¥Õ¥§¡¼¥¹Ì¾¤Î¸å¤Î
|
|
.Pq Dq Li *
|
|
¤Ï¡¢¤½¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬
|
|
.Dq down
|
|
¤·¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
|
|
.Fl a
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢³Æ¥¤¡¼¥µ¥Í¥Ã¥È¥¤¥ó¥¿¥Õ¥§¡¼¥¹
|
|
¤ª¤è¤Ó³Æ IP ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥¢¥É¥ì¥¹
|
|
¤Ë¤Ä¤¤¤Æ¡¢¸½ºß»ÈÍѤµ¤ì¤Æ¤¤¤ë¥Þ¥ë¥Á¥¥ã¥¹¥È¥¢¥É¥ì¥¹¤¬É½¼¨
|
|
¤µ¤ì¤Þ¤¹¡£
|
|
¥Þ¥ë¥Á¥¥ã¥¹¥È¥¢¥É¥ì¥¹¤Ï¡¢
|
|
³Æ¡¹Âбþ¤¹¤ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥¢¥É¥ì¥¹¤Ë³¤¤¤ÆÊ̸ĤιԤËɽ¼¨
|
|
¤µ¤ì¤Þ¤¹¡£
|
|
.Fl b
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢Æþ½ÐÎϤ·¤¿¥Ð¥¤¥È¿ô¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl d
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¼è¤ê¤³¤Ü¤·¤¿¥Ñ¥±¥Ã¥È¿ô¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl t
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢watchdog ¥¿¥¤¥Þ¤ÎÆâÍƤòɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl W
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥Õ¥£¡¼¥ë¥ÉÉý¤ò¹¤¯¤·¤Æ¥¤¥ó¥¿¥Õ¥§¡¼¥¹Ì¾¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl w Ar wait
|
|
.Op Fl I Ar interface
|
|
.Op Fl d
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
¤¹¤Ù¤Æ¤ÎÀßÄêºÑ¤ß¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Þ¤¿¤Ïñ°ì¤Î
|
|
.Ar interface
|
|
¾å¤Î¥Ñ¥±¥Ã¥È¥È¥é¥Õ¥£¥Ã¥¯¤Ë´Ø¤¹¤ë¾ðÊó¤ò
|
|
.Ar wait
|
|
Éôֳ֤Çɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl d
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¼è¤ê¤³¤Ü¤·¤¿¥Ñ¥±¥Ã¥È¿ô¤âɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl s Op Fl s
|
|
.Op Fl z
|
|
.Op Fl f Ar protocol_family | Fl p Ar protocol
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
³Æ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥È¥³¥ë¡¢¤Þ¤¿¤ÏÆÃÄê¤Î
|
|
.Ar protocol_family
|
|
¤¢¤ë¤¤¤Ïñ°ì¤Î
|
|
.Ar protocol
|
|
¤ËÂФ·¤Æ¡¢¥·¥¹¥Æ¥àÁ´ÂΤÎÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl s
|
|
¤¬·«¤êÊÖ¤µ¤ì¤¿¾ì¹ç¡¢Ãͤ¬ 0 ¤Î¥«¥¦¥ó¥¿¤Ï¾Êά¤µ¤ì¤Þ¤¹¡£
|
|
.Fl z
|
|
¤â»ØÄꤵ¤ì¤¿¾ì¹ç¡¢Åý·×¾ðÊó¤òɽ¼¨¤·¤¿¸å¥ê¥»¥Ã¥È¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl i | I Ar interface Fl s
|
|
.Op Fl f Ar protocol_family | Fl p Ar protocol
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
³Æ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥È¥³¥ë¡¢¤Þ¤¿¤ÏÆÃÄê¤Î
|
|
.Ar protocol_family
|
|
¤¢¤ë¤¤¤Ïñ°ì¤Î
|
|
.Ar protocol
|
|
¤ËÂФ·¤Æ¡¢¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤´¤È¤ÎÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl m
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
¥á¥â¥ê´ÉÍý¥ë¡¼¥Á¥ó
|
|
.Pq Xr mbuf 9
|
|
¤Ë¤è¤Ã¤ÆµÏ¿¤µ¤ì¤Æ¤¤¤ëÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¤Ï¡¢Æȼ«¤Ë¥á¥â¥ê¥Ð¥Ã¥Õ¥¡¤ò³ÎÊݤ·¤Æ¤¤¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl r
|
|
.Op Fl AanW
|
|
.Op Fl f Ar address_family
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
Á´¤Æ¡¢¤Þ¤¿¤Ï»ØÄꤷ¤¿
|
|
.Ar address_family
|
|
¤Ë´Ø¤¹¤ë¥ë¡¼¥Æ¥£¥ó¥°¥Æ¡¼¥Ö¥ë¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl A
|
|
¤â»ØÄꤵ¤ì¤Æ¤¤¤¿¾ì¹ç¡¢
|
|
ÆâÉô Patricia ÌÚ¹½Â¤¤ÎÆâÍƤòɽ¼¨¤·¤Þ¤¹¡£
|
|
¥Ç¥Ð¥Ã¥°ÍѤ˻ÈÍѤ·¤Þ¤¹¡£
|
|
.Fl a
|
|
¤â»ØÄꤵ¤ì¤Æ¤¤¤¿¾ì¹ç¡¢
|
|
¥×¥í¥È¥³¥ëÊ£À½¤µ¤ì¤¿¥ë¡¼¥È (¿Æ¥ë¡¼¥È¤ò
|
|
.Dv RTF_PRCLONING
|
|
¤¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¥ë¡¼¥È) ¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
Ä̾盧¤ì¤é¤Î¥ë¡¼¥È¤Ïɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£
|
|
.Fl W
|
|
¤â»ØÄꤵ¤ì¤Æ¤¤¤¿ºÝ¤Ë¤Ï¡¢
|
|
³Æ¥ë¡¼¥È¤Î path MTU ¤È¡¢¹¤¤¥Õ¥£¡¼¥ë¥ÉÉý¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹Ì¾¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl rs
|
|
.Op Fl s
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
¥ë¡¼¥Æ¥£¥ó¥°¤ÎÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl s
|
|
¤¬·«¤êÊÖ¤µ¤ì¤¿¾ì¹ç¡¢Ãͤ¬ 0 ¤Î¥«¥¦¥ó¥¿¤Ï¾Êά¤µ¤ì¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl g
|
|
.Op Fl W
|
|
.Op Fl f Ar address_family
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
¥Þ¥ë¥Á¥¥ã¥¹¥È (¥°¥ë¡¼¥×¥¢¥É¥ì¥¹) ¥ë¡¼¥Æ¥£¥ó¥°¤Ë´ØÏ¢¤·¤¿¾ðÊó¤ò
|
|
ɽ¼¨¤·¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢IP ¥Þ¥ë¥Á¥¥ã¥¹¥È²¾ÁÛ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ª¤è¤Ó
|
|
¥ë¡¼¥Æ¥£¥ó¥°¥Æ¡¼¥Ö¥ë¡¢¥Þ¥ë¥Á¥¥ã¥¹¥È¥°¥ë¡¼¥×¥á¥ó¥Ð¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.It Xo
|
|
.Bk -words
|
|
.Nm
|
|
.Fl gs
|
|
.Op Fl s
|
|
.Op Fl f Ar address_family
|
|
.Op Fl M Ar core
|
|
.Op Fl N Ar system
|
|
.Ek
|
|
.Xc
|
|
¥Þ¥ë¥Á¥¥ã¥¹¥È¥ë¡¼¥Æ¥£¥ó¥°¤ÎÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Fl s
|
|
¤¬·«¤êÊÖ¤µ¤ì¤¿¾ì¹ç¡¢Ãͤ¬ 0 ¤Î¥«¥¦¥ó¥¿¤Ï¾Êά¤µ¤ì¤Þ¤¹¡£
|
|
.El
|
|
.Pp
|
|
¤¤¤¯¤Ä¤«¤Î¥ª¥×¥·¥ç¥ó¤Ï¶¦Ä̤ΰÕÌ£¤Ç»È¤¨¤Þ¤¹¡£
|
|
.Bl -tag -width flag
|
|
.It Fl f Ar address_family , Fl p Ar protocol
|
|
»ØÄꤵ¤ì¤¿
|
|
.Ar address_family
|
|
¤Þ¤¿¤Ïñ°ì¤Î
|
|
.Ar protocol
|
|
¤Ë´Ø¤¹¤ë¥ì¥³¡¼¥É¤Î¤ß¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
°Ê²¼¤Î¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¤Þ¤¿¤Ï¥×¥í¥È¥³¥ë¤¬»ØÄê¤Ç¤¤Þ¤¹¡£
|
|
.Pp
|
|
.Bl -tag -width ".Cm netgraph , ng Pq Dv AF_NETGRAPH" -compact
|
|
.It Em ¥Õ¥¡¥ß¥ê
|
|
.Em ¥×¥í¥È¥³¥ë
|
|
.It Cm inet Pq Dv AF_INET
|
|
.Cm bdg , divert , icmp , igmp , ip , ipsec , pim, tcp , udp
|
|
.It Cm inet6 Pq Dv AF_INET6
|
|
.Cm bdg , icmp6 , ip6 , ipsec6 , rip6 , tcp , udp
|
|
.It Cm pfkey Pq Dv PF_KEY
|
|
.Cm pfkey
|
|
.It Cm atalk Pq Dv AF_APPLETALK
|
|
.Cm ddp
|
|
.It Cm netgraph , ng Pq Dv AF_NETGRAPH
|
|
.Cm ctrl , data
|
|
.It Cm ipx Pq Dv AF_IPX
|
|
.Cm ipx , spx
|
|
.\".It Cm ns Pq Dv AF_NS
|
|
.\".Cm idp , ns_err , spp
|
|
.\".It Cm iso Pq Dv AF_ISO
|
|
.\".Cm clnp , cltp , esis , tp
|
|
.It Cm unix Pq Dv AF_UNIX
|
|
.It Cm link Pq Dv AF_LINK
|
|
.El
|
|
.Pp
|
|
¤³¤Î¥×¥í¥°¥é¥à¤Ï
|
|
.Ar protocol
|
|
¤¬ÉÔÌÀ¤Ç¤¢¤Ã¤¿¤êÂбþ¤¹¤ëÅý·×¥ë¡¼¥Á¥ó¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤ê¤·¤¿¾ì¹ç¤Ë¤Ï
|
|
ʸ¶ç¤ò¸À¤¤¤Þ¤¹¡£
|
|
.It Fl M
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç»ÈÍѤµ¤ì¤ë
|
|
.Pa /dev/kmem
|
|
¤ÎÂå¤ï¤ê¤Ë»ØÄꤷ¤¿ core ¤«¤é¡¢¥Í¡¼¥à¥ê¥¹¥È¤Ë´ØÏ¢¤¹¤ë³ÆÃͤò
|
|
¼è¤ê½Ð¤·¤Þ¤¹¡£
|
|
.It Fl N
|
|
¥·¥¹¥Æ¥à¤¬µ¯Æ°¤µ¤ì¤¿¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸
|
|
¤Î¤«¤ï¤ê¤Ë¡¢»ØÄꤷ¤¿¥·¥¹¥Æ¥à¤«¤é¥Í¡¼¥à¥ê¥¹¥È¤ò¼è¤ê½Ð¤·¤Þ¤¹¡£
|
|
.It Fl n
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤ò¿ô»ú¤Çɽ¼¨¤·¤Þ¤¹¡£
|
|
Ä̾
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤È¥Ý¡¼¥È¤ò²Äǽ¤Ê¸Â¤ê²ò·è¤·¤Æ
|
|
¥·¥ó¥Ü¥ëɽµ¤Çɽ¼¨¤·¤è¤¦¤È¤·¤Þ¤¹¡£
|
|
.It Fl W
|
|
¤¢¤ëɽ¼¨¤Ë¤ª¤¤¤Æ¡¢Í󤬰î¤ì¤ë¾ì¹ç¤Ç¤â¡¢¥¢¥É¥ì¥¹¤ò½Ì¤á¤Þ¤»¤ó¡£
|
|
.El
|
|
.Pp
|
|
¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥¯¥Æ¥£¥Ö¥½¥±¥Ã¥Èɽ¼¨¤Ç¤Ï¡¢¥í¡¼¥«¥ë¤ª¤è¤Ó¥ê¥â¡¼¥È¥¢¥É¥ì¥¹¡¢
|
|
Á÷¼õ¿®¥¥å¡¼¤Î¥µ¥¤¥º(¥Ð¥¤¥Èñ°Ì)¡¢¥×¥í¥È¥³¥ë¡¢¤½¤·¤Æ¥×¥í¥È¥³¥ë¤ÎÆâÉô¾õÂÖ¤¬
|
|
¤½¤ì¤¾¤ìɽ¼¨¤µ¤ì¤Þ¤¹¡£
|
|
¥¢¥É¥ì¥¹·Á¼°¤Ë¤Ä¤¤¤Æ¤Ï¡¢
|
|
.Dq host.port
|
|
¤â¤·¤¯¤Ï¡¢¥½¥±¥Ã¥È¤Î¥¢¥É¥ì¥¹¤¬
|
|
¥Í¥Ã¥È¥ï¡¼¥¯Ã±°Ì¤Ç¤·¤«ÆÃÄê¤Ç¤¤Ê¤¤¾ì¹ç¤Ë¤Ï
|
|
.Dq network.port
|
|
¤È¤¤¤¦·Á¼°¤¬ºÎÍѤµ¤ì¤Þ¤¹¡£
|
|
¥Û¥¹¥È¤â¤·¤¯¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤¬¥Ç¡¼¥¿¥Ù¡¼¥¹
|
|
.Xr hosts 5
|
|
¤ä
|
|
.Xr networks 5
|
|
¤ÎÆâÍƤˤ·¤¿¤¬¤Ã¤ÆÊÑ´¹²Äǽ¤Ç¤¢¤ë¾ì¹ç¡¢³Æ¥¢¥É¥ì¥¹¤Ï¥·¥ó¥Ü¥ëɽµ¤Ç
|
|
ɽ¼¨¤µ¤ì¤Þ¤¹¡£
|
|
¤³¤Î¤è¤¦¤ÊÊÑ´¹¤¬ÉÔ²Äǽ¤Ê¾ì¹ç¡¢¤â¤·¤¯¤Ï
|
|
.Fl n
|
|
¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢¥¢¥É¥ì¥¹¤Ï¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¤Ë½¾¤Ã¤Æ
|
|
¿ôÃͤÇɽ¼¨¤µ¤ì¤Þ¤¹¡£
|
|
¥¤¥ó¥¿¡¼¥Í¥Ã¥È IPv4 ¤Î
|
|
.Dq ¥É¥Ã¥È·Á¼°
|
|
¤Ë¤Ä¤¤¤Æ¤µ¤é¤ËÃΤꤿ¤¤¾ì¹ç¤Ë¤Ï¡¢
|
|
.Xr inet 3
|
|
¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£
|
|
Æä˥¢¥É¥ì¥¹¤¬»ØÄꤵ¤ì¤Æ¤Ê¤¤¾ì¹ç¤ä¡¢¥¢¥É¥ì¥¹¤¬
|
|
.Dq ¥ï¥¤¥ë¥É¥«¡¼¥É
|
|
»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤ÎÉôʬ¤Î¥¢¥É¥ì¥¹¤ä¥Ý¡¼¥ÈÈÖ¹æ¤Î¤È¤³¤í¤Ë¤Ï
|
|
.Dq Li *
|
|
¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
¥¤¥ó¥¿¥Õ¥§¡¼¥¹É½¼¨¤Ç¤Ï¡¢¥Ñ¥±¥Ã¥ÈžÁ÷¡¢¥¨¥é¡¼¡¢¥³¥ê¥¸¥ç¥ó¤Ë´Ø¤¹¤ë
|
|
ÎßÀÑÅý·×¾ðÊó¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
¤Þ¤¿¡¢¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤ª¤è¤ÓºÇÂçžÁ÷²Äǽ¥æ¥Ë¥Ã¥È¥µ¥¤¥º
|
|
.Pq Dq mtu
|
|
¤â¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
.Pp
|
|
¥ë¡¼¥Æ¥£¥ó¥°¥Æ¡¼¥Ö¥ëɽ¼¨¤Ç¤Ï¡¢ÍøÍѲÄǽ¤Ê¥ë¡¼¥È¤È¤½¤Î¾õÂÖ¤¬É½¼¨
|
|
¤µ¤ì¤Þ¤¹¡£
|
|
³Æ¥ë¡¼¥È¤Ï¡¢ÅþãÀè¥Û¥¹¥È¤â¤·¤¯¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¤È¡¢
|
|
¥Ñ¥±¥Ã¥È¤ÎžÁ÷ (forward) ¤Ë»ÈÍѤµ¤ì¤ë¥²¡¼¥È¥¦¥§¥¤¤«¤éÀ®¤ê¤Þ¤¹¡£
|
|
¥Õ¥é¥°¥Õ¥£¡¼¥ë¥É¤Ï¡¢
|
|
¥ë¡¼¥È¤Ë´Ø¤¹¤ë¾ðÊó¤Î½¸¹ç¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
|
|
¥Õ¥é¥°¥Õ¥£¡¼¥ë¥É¤Î
|
|
¸ÄÊ̤Υե饰¤Ë´Ø¤¹¤ëÆâÍƤϡ¢
|
|
.Xr route 8
|
|
¤ª¤è¤Ó
|
|
.Xr route 4
|
|
¤Ç¤è¤ê¾ÜºÙ¤ËÏÀ¤¶¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
ɽ¼¨¤µ¤ì¤ëʸ»ú¤È¥Õ¥é¥°¤Î´Ö¤ÎÂбþ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
|
|
.Bl -column ".Li W" ".Dv RTF_WASCLONED"
|
|
.It Li 1 Ta Dv RTF_PROTO1 Ta "¥×¥í¥È¥³¥ëÆÃͤΥ롼¥Æ¥£¥ó¥°¥Õ¥é¥° #1"
|
|
.It Li 2 Ta Dv RTF_PROTO2 Ta "¥×¥í¥È¥³¥ëÆÃͤΥ롼¥Æ¥£¥ó¥°¥Õ¥é¥° #2"
|
|
.It Li 3 Ta Dv RTF_PROTO3 Ta "¥×¥í¥È¥³¥ëÆÃͤΥ롼¥Æ¥£¥ó¥°¥Õ¥é¥° #3"
|
|
.It Li B Ta Dv RTF_BLACKHOLE Ta "¥Ñ¥±¥Ã¥È¤òÇË´þ (¹¹¿·Ãæ)"
|
|
.It Li b Ta Dv RTF_BROADCAST Ta "¥Ö¥í¡¼¥É¥¥ã¥¹¥È¥¢¥É¥ì¥¹¤òɽ¸½¤¹¤ë¥ë¡¼¥È"
|
|
.It Li C Ta Dv RTF_CLONING Ta "»ÈÍÑ»þ¤Ë¥ë¡¼¥È¤ò¿·¤¿¤ËÀ¸À®¤¹¤ë"
|
|
.It Li c Ta Dv RTF_PRCLONING Ta "»ÈÍÑ»þ¤Ë¥×¥í¥È¥³¥ëÆÃͤΥ롼¥È¤ò¿·¤¿¤ËÀ¸À®¤¹¤ë"
|
|
.It Li D Ta Dv RTF_DYNAMIC Ta "(¥ê¥À¥¤¥ì¥¯¥È¤Ë¤è¤Ã¤Æ) ưŪ¤ËÀ¸À®¤µ¤ì¤ë"
|
|
.It Li G Ta Dv RTF_GATEWAY Ta "¥²¡¼¥È¥¦¥§¥¤Åù¤Ë¤è¤ëÃæ·Ñ¤òɬÍפȤ·¤Æ¤¤¤ëÅþãÀè"
|
|
.It Li H Ta Dv RTF_HOST Ta "¥Û¥¹¥È¥¨¥ó¥È¥ê (¤³¤ì°Ê³°¤Ï¥Í¥Ã¥È¥ï¡¼¥¯)"
|
|
.It Li L Ta Dv RTF_LLINFO Ta "¥ê¥ó¥¯¥¢¥É¥ì¥¹¤ØÊÑ´¹¤Ç¤¤ë¥×¥í¥È¥³¥ë"
|
|
.It Li M Ta Dv RTF_MODIFIED Ta "(¥ê¥À¥¤¥ì¥¯¥È¤Ë¤è¤Ã¤Æ) ưŪ¤ËÊѹ¹¤µ¤ì¤ë"
|
|
.It Li R Ta Dv RTF_REJECT Ta "ÅþãÉÔ²Äǽ¤Ê¥Û¥¹¥È¤â¤·¤¯¤Ï¥Í¥Ã¥È¥ï¡¼¥¯"
|
|
.It Li S Ta Dv RTF_STATIC Ta "¼êÆ°¤ÇÄɲ䵤줿"
|
|
.It Li U Ta Dv RTF_UP Ta "»ÈÍѲÄǽ¥ë¡¼¥È"
|
|
.It Li W Ta Dv RTF_WASCLONED Ta "¥¯¥í¡¼¥ó¤·¤¿·ë²Ì¤È¤·¤ÆºîÀ®¤µ¤ì¤¿¥ë¡¼¥È"
|
|
.It Li X Ta Dv RTF_XRESOLVE Ta "³°Éô¤Î daemon ¤¬¥×¥í¥È¥³¥ë¤«¤é¥ê¥ó¥¯¥¢¥É¥ì¥¹ÊÑ´¹¤ò¹Ô¤Ê¤¦"
|
|
.El
|
|
.Pp
|
|
ľÀÜÅþã²Äǽ¤Ê¥ë¡¼¥È¤Ï¡¢¥í¡¼¥«¥ë¥Û¥¹¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤¿³Æ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤´¤È¤Ë
|
|
À¸À®¤µ¤ì¤Þ¤¹¡£
|
|
¤³¤Î¤è¤¦¤Ê¥¨¥ó¥È¥ê¤Î¥²¡¼¥È¥¦¥§¥¤¥Õ¥£¡¼¥ë¥É¤Ï¡¢
|
|
Âг°¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¥¢¥É¥ì¥¹¤òɽ¤·¤Þ¤¹¡£
|
|
refcnt ¥Õ¥£¡¼¥ë¥É¤Ï¡¢»ÈÍѤµ¤ì¤Æ¤¤¤ë¥ë¡¼¥È¤Î¸½ºß¿ô¤ò¼¨¤·¤Þ¤¹¡£
|
|
¥³¥Í¥¯¥·¥ç¥ó»Ø¸þ¤Î¥×¥í¥È¥³¥ë¤Ï¡¢Ä̾¥³¥Í¥¯¥·¥ç¥ó¤Î´ÖÃæ
|
|
ñ°ì¤Î¥ë¡¼¥È¤òÊÝ»ý¤·¤Þ¤¹¡£
|
|
¾Êý¤Ç¡¢¥³¥Í¥¯¥·¥ç¥ó¥ì¥¹·¿¤Î¥×¥í¥È¥³¥ë¤Ï¡¢Æ±¤¸ÅþãÀè¤ËÂФ·¤Æ
|
|
¥Ñ¥±¥Ã¥È¤òÁ÷¤ë¾ì¹ç¤Ë¤â¡¢¿·¤¿¤Ë¥ë¡¼¥È¤ò³ÎÊݤ·¤Þ¤¹¡£
|
|
use ¥Õ¥£¡¼¥ë¥É¤Ï¡¢¤½¤Î¥ë¡¼¥È¤òÄ̤äÆÁ÷¤é¤ì¤¿¥Ñ¥±¥Ã¥È¿ô¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥¨¥ó¥È¥ê¤Ï¡¢¤½¤Î¥ë¡¼¥ÈÍѤËÍѤ¤¤é¤ì¤ë
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Nm
|
|
¤¬
|
|
.Fl w
|
|
¥ª¥×¥·¥ç¥ó¤È
|
|
.Ar wait
|
|
¥¤¥ó¥¿¡¼¥Ð¥ë°ú¿ô¤òÍ¿¤¨¤é¤ì¤Æµ¯Æ°¤µ¤ì¤¿¾ì¹ç¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë
|
|
´ØÏ¢¤·¤¿Åý·×¾ðÊó¤òÄê´üŪ¤Ëɽ¼¨¤·¤Þ¤¹¡£
|
|
¤Û¤È¤ó¤É»È¤ï¤ì¤Þ¤»¤ó¤¬¡¢¥ª¥×¥·¥ç¥ó»ØÄê¤Ê¤·¤Ç¿ô»ú¤À¤±¤ò netstat ¤Î°ú¿ô¤È
|
|
¤·¤Æ»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¡¢ËÜ¥ª¥×¥·¥ç¥ó¤ÈƱÍͤÎÆ°ºî¤ò¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
¤·¤«¤·¡¢¤³¤Î»È¤¤Êý¤Ï°ÊÁ°¤È¤Î¸ß´¹À¤Î¤¿¤á¤Ë¤Î¤ß¸ºß¤·¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ËÜɽ¼¨¤Ï
|
|
¤¹¤Ù¤Æ¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë¤Ä¤¤¤Æ¤Î¥µ¥Þ¥ê¾ðÊ󤫤é¤Ê¤ê¤Þ¤¹¡£
|
|
.Fl I
|
|
¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤³¤È¤Ç¡¢ÆÃÄê¤Î
|
|
¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¾ðÊó¤òɽ¼¨¤µ¤»¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr fstat 1 ,
|
|
.Xr nfsstat 1 ,
|
|
.Xr ps 1 ,
|
|
.Xr sockstat 1 ,
|
|
.Xr inet 4 ,
|
|
.Xr route 4 ,
|
|
.Xr unix 4 ,
|
|
.Xr hosts 5 ,
|
|
.Xr networks 5 ,
|
|
.Xr protocols 5 ,
|
|
.Xr services 5 ,
|
|
.Xr iostat 8 ,
|
|
.Xr route 8 ,
|
|
.Xr trpt 8 ,
|
|
.Xr vmstat 8 ,
|
|
.Xr mbuf 9
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï¡¢
|
|
.Bx 4.2
|
|
¤Ë¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
|
|
.Pp
|
|
IPv6 ¥µ¥Ý¡¼¥È¤Ï WIDE/KAME ¥×¥í¥¸¥§¥¯¥È¤¬Äɲä·¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
¥¨¥é¡¼¤Î³µÇ°¤Ë¤Ä¤¤¤Æ¤Ï¡¢ÄêµÁ¤¬´Ö°ã¤Ã¤Æ¤¤¤Þ¤¹¡£
|