From owner-freebsd-questions Mon Aug 31 01:22:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11559 for freebsd-questions-outgoing; Mon, 31 Aug 1998 01:22:06 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA11552 for ; Mon, 31 Aug 1998 01:22:03 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA22167; Mon, 31 Aug 1998 17:45:39 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id RAA05057; Mon, 31 Aug 1998 17:45:39 +0930 (CST) Message-ID: <19980831174539.I606@freebie.lemis.com> Date: Mon, 31 Aug 1998 17:45:39 +0930 From: Greg Lehey To: yuantuo@263.net, freebsd-questions@FreeBSD.ORG Subject: Re: How can I statistics IP discharge ? References: <199808310724.AAA06271@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199808310724.AAA06271@hub.freebsd.org>; from Yuan Tuo on Mon, Aug 31, 1998 at 03:24:39PM +0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format autorecovered at freebie.lemis.com] On Monday, 31 August 1998 at 15:24:39 +0800, Yuan Tuo wrote: > Hi > I have a machine with FreeBSD 2.2.5 , it is installed a Inter > Express pro 10/100M network card (fxp0), I want to statistics IP > discharge that via fxp0, > > Hoew can I do? I'm not sure I understand the question. Do you want to display the statistics, or reset the counters? To display the statistics, try: $ netstat -biI fxp0 Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll fxp0 1500 00.a0.24.37.0d.2b 704035 0 374742757 1077124 4 789014368 3 fxp0 1500 widecast freebie 704035 0 374742757 1077124 4 789014368 3 I don't know a way to reset the counters. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message