From owner-freebsd-questions@freebsd.org Sat Feb 25 04:43:22 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6835CEC1AC for ; Sat, 25 Feb 2017 04:43:22 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 402841E77 for ; Sat, 25 Feb 2017 04:43:22 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-wr0-x22e.google.com with SMTP id g10so22581650wrg.2 for ; Fri, 24 Feb 2017 20:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EAnZ+2zv8EW9YTGwTYkfboyxn0ovrM/lG0LHYTK/om8=; b=PToQq+Hg2WhC6SqvjqcCzgpqbbiS826crlguWo/NwA+eQ4MTpHAx7lSETHqZZfJjd3 oo0B3oCRTe2AsnWFj/aXS+09d2uOwD00cKznl0fm/EYMdiz3LWmphoMTKrNfMH/qOjcp ZsGAq6HgupknMlqUDINTFFhkvsFg099b35PrXWejORWZbB65LmEw+fnzverVZFjpiLa1 LKnpbLXOKc5VKBarWHuBJh4laTKyYQ1I9vzEvi0rW4VDFYNUjFJGhrwGGFQs6u/nyf+0 BEgkLa3caBKTqLJnwBh6khaf4QYGqZ9cse8xop7qMMBGBwlQ2qHKql9AJVpfDOLlTBMf TUPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EAnZ+2zv8EW9YTGwTYkfboyxn0ovrM/lG0LHYTK/om8=; b=YYm/ddvLSQZBykCQkMxWbhk/SMWReMo8mtF9sVZxVMakOpjoCfe4yGP2t9u1BAqlkg puG7ru+qLhpL6egEkCMniZxubINPuaF8rTSAIjacJS1vofcjlK3TcctIqap+ItJx6g6N vDl0Xjn6tKE6EdKniQBf6XPkJtHOeUllYEf8AWDGV4UtcjEo2X+cdpZOii/HY21c4obI +uh0IzyTrpXduo8UZ22gEZhZqEWFk4EhzWRmjOZ6EXtCS4JTbHBTq+PVhhg9OzDp/t1U rujD4ns36K1ekvSCTeDUq48ZPAin11U73aT/KTWych5J7Qt8bq29g4d/s6OQ7+JyBCQ7 5Vsg== X-Gm-Message-State: AMke39nTPpGUtacvpXAFWwl2koG/1cTWU1ea9/cVdbGSWIHUBG34wO4+DE3uxao1THoN4bp27EjWUP5doKvd/g== X-Received: by 10.223.128.5 with SMTP id 5mr5287047wrk.163.1487997799762; Fri, 24 Feb 2017 20:43:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.164.65 with HTTP; Fri, 24 Feb 2017 20:43:19 -0800 (PST) In-Reply-To: References: From: Adam Vande More Date: Fri, 24 Feb 2017 22:43:19 -0600 Message-ID: Subject: Re: netstat interface output To: Doug Hardie Cc: "freebsd-questions@freebsd.org Questions" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2017 04:43:22 -0000 On Wed, Feb 22, 2017 at 5:38 PM, Doug Hardie wrote: > I am starting to develop a nagios check for errors on interfaces. > However, there are some issues with the entries in netstat that I don't > understand. Each interface has multiple entries: one for each address and > one for the link. It would seem to me that the link counts would be the > sum of the other address entries, but it is not. Often it is way off. At > first I thought it was possibly caused by overflows of the counters since > most systems have been running for months. However, checking one system > that was only up for one day, the ip4 count was considerably larger than > the link count. This is shown in one of the examples below. > This is layer 2 vs layer 3 info. To set static IP info see: https://www.freebsd.org/doc/handbook/config-network-setup.html -- Adam