From owner-freebsd-net@FreeBSD.ORG Fri Mar 28 15:56:05 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D405E106566C; Fri, 28 Mar 2008 15:56:05 +0000 (UTC) (envelope-from jessy@sicha.net) Received: from viefep26-int.chello.at (viefep26-int.chello.at [62.179.121.46]) by mx1.freebsd.org (Postfix) with ESMTP id 0FCEF8FC2C; Fri, 28 Mar 2008 15:56:04 +0000 (UTC) (envelope-from jessy@sicha.net) Received: from du.sicha.net ([84.113.235.172]) by viefep19-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080328154028.JPUO5883.viefep19-int.chello.at@du.sicha.net>; Fri, 28 Mar 2008 16:40:28 +0100 X-Virus-Scanned: amavisd-new at sicha.net Message-Id: From: Robert Jesacher To: daniel@dgnetwork.com.br In-Reply-To: <47EC303B.1040201@dgnetwork.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v919.2) Date: Fri, 28 Mar 2008 16:39:31 +0100 References: <47EC303B.1040201@dgnetwork.com.br> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Understanding Flags, Refs, Use, Expire in Routing Table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2008 15:56:06 -0000 Hi Daniel, you find mostl of you questions answered in "man netstat" (the =20 relevant passage is posted below) The missing part is the expiry, which IMHO are the seconds, the ARP =20 entry is valid (after this time a new arp request would be issued) I hope this is the information you needed. br, Robert +++++++++++++++ The routing table display indicates the available routes and their sta- tus. Each route consists of a destination host or network, and =20= a gateway to use in forwarding packets. The flags field shows a =20 collection of information about the route stored as binary choices. The =20 individual flags are discussed in more detail in the route(8) and route(4) =20= manual pages. The mapping between letters and flags is: 1 RTF_PROTO1 Protocol specific routing flag #1 2 RTF_PROTO2 Protocol specific routing flag #2 3 RTF_PROTO3 Protocol specific routing flag #3 B RTF_BLACKHOLE Just discard pkts (during updates) b RTF_BROADCAST The route represents a broadcast address C RTF_CLONING Generate new routes on use c RTF_PRCLONING Protocol-specified generate new routes on =20= use D RTF_DYNAMIC Created dynamically (by redirect) G RTF_GATEWAY Destination requires forwarding by =20 intermediary H RTF_HOST Host entry (net otherwise) L RTF_LLINFO Valid protocol to link address translation M RTF_MODIFIED Modified dynamically (by redirect) R RTF_REJECT Host or net unreachable S RTF_STATIC Manually added U RTF_UP Route usable W RTF_WASCLONED Route was generated as a result of cloning X RTF_XRESOLVE External daemon translates proto to link =20 address Direct routes are created for each interface attached to the =20 local host; the gateway field for such entries shows the address of the =20 outgoing interface. The refcnt field gives the current number of active =20= uses of the route. Connection oriented protocols normally hold on to a =20= single route for the duration of a connection while connectionless =20 protocols obtain a route while sending to the same destination. The use =20 field pro- vides a count of the number of packets sent using that route. =20 The inter- face entry indicates the network interface utilized for the route. +++++++++++++++++++++ On 28.03.2008, at 00:39, Daniel Dias Gon=E7alves wrote: > I would like an explanation on each field it command "netstat - rn", =20= > example: > Flags,Refs,Use,Expire > In Flags: UGS, UC, UHLW, UH > Somebody can explain me ? > > Thanks, > Daniel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org=20 > "