Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2008 16:39:31 +0100
From:      Robert Jesacher <jessy@sicha.net>
To:        daniel@dgnetwork.com.br
Cc:        freebsd-net@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Understanding Flags, Refs, Use, Expire in Routing Table
Message-ID:  <B56F28A5-D4FB-4238-9EA2-9A7127F10488@sicha.net>
In-Reply-To: <47EC303B.1040201@dgnetwork.com.br>
References:  <47EC303B.1040201@dgnetwork.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> "




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B56F28A5-D4FB-4238-9EA2-9A7127F10488>