From owner-freebsd-questions Tue Feb 25 12:49:10 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E4DD37B401 for ; Tue, 25 Feb 2003 12:49:09 -0800 (PST) Received: from cypress.adhesivemedia.com (cypress.adhesivemedia.com [207.202.159.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37D1E43F93 for ; Tue, 25 Feb 2003 12:49:08 -0800 (PST) (envelope-from philip@adhesivemedia.com) Received: from cypress.adhesivemedia.com (localhost [127.0.0.1]) by cypress.adhesivemedia.com (8.12.3/8.12.3) with ESMTP id h1PKn7lA035274; Tue, 25 Feb 2003 12:49:07 -0800 (PST) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by cypress.adhesivemedia.com (8.12.3/8.12.3/Submit) with ESMTP id h1PKn7q8035271; Tue, 25 Feb 2003 12:49:07 -0800 (PST) (envelope-from philip@adhesivemedia.com) X-Authentication-Warning: cypress.adhesivemedia.com: philip owned process doing -bs Date: Tue, 25 Feb 2003 12:49:07 -0800 (PST) From: Philip Hallstrom To: Adam Lofstedt Cc: freebsd-questions@FreeBSD.ORG Subject: Re: MRTG and aliased IP's In-Reply-To: <000b01c2dd03$f14f9480$6401a8c0@5adam5> Message-ID: <20030225124814.C31998-100000@cypress.adhesivemedia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You could run ipfw (firewall) on that box and setup some "count" rules that count the packets to and from individual ip addresses... then setup a script to do an "ipfw show ..." and extract the pieces of information you want. Feed that into mrtg using it's external command stuff... -philip On Tue, 25 Feb 2003, Adam Lofstedt wrote: > Hi all. I'm running FreeBSD 4.7 with net-snmp-5.0.3_2. > > I have two NICs, and one of them has several IP's bound to it through > ifconfig alias. When I try to run MRTG, it only gives me the statistics > for one of the aliased IPs (I think). > > System: my.domain.com in > Maintainer: nobody@no.where > Description: xl0 > ifType: ethernetCsmacd (6) > ifName: > Max Speed: 1250.0 kBytes/s > Ip: xxx.xxx.xxx.xxx (xxx-xxx-xxx-xxx.domain.com) > > xxx.xxx.xxx.xxx is the first aliased IP in /etc/rc.conf. Does anyone > know of a way to get statistics for each individual aliased IP? > > With the above output, does anyone know if I am actually getting > statistics for all bound IP's combined, or for just that one single > aliased IP? > > Thanks, > > Adam > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message