From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P4GVx-0001mP-83 for garchives@archives.gentoo.org; Fri, 08 Oct 2010 17:13:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B506E0B1A; Fri, 8 Oct 2010 17:13:18 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 60B13E0B1A for ; Fri, 8 Oct 2010 17:13:18 +0000 (UTC) Received: by ewy3 with SMTP id 3so865298ewy.40 for ; Fri, 08 Oct 2010 10:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=equ0hLttHldYW+Ov4BmGo8yLbTUfnMcfNWRIcxrtogM=; b=lnKdZdJVntug+Z5hgvHuWxrTzkwyn/e/thd24nhZ0lkKgamnwZpNCzZhCyYSpxk/i5 e538zvbSrn7ZBQn0Xr6QuBhMsJTbSZxTsY6iwAfrdhwjpnGcgYwCGSQa4Lh3gYJK96Hv HDz28ZnmtVfNEzEf8sKxd65BA4hFcixCYdSlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=C/2atghq+r/Tbzc4Vhv2RdHTwPbg72vbG+YQtBujDk8nAUBueiG6ZsXfQW2E3p1Shy v9WbTR0xiX6MF62NGlhcpSZBD4laQVKNoXDhWGYAGQCi6VeZDc4xRGptCCbsiSYlzTXL KEaJSWywfIlxA1V0zYVjY2oGNy+jOh9P9qMOc= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.213.28.205 with SMTP id n13mr191567ebc.5.1286557997783; Fri, 08 Oct 2010 10:13:17 -0700 (PDT) Received: by 10.42.6.130 with HTTP; Fri, 8 Oct 2010 10:13:17 -0700 (PDT) In-Reply-To: <6618B87A-60A7-493B-BD8D-83C45B9305BA@stellar.eclipse.co.uk> References: <83278B16-B7CE-4C16-8695-08F4E4051690@stellar.eclipse.co.uk> <3F408658-08E1-4D30-A7DA-4663CFEEC9B3@stellar.eclipse.co.uk> <810692.43662.qm@web51906.mail.re2.yahoo.com> <6618B87A-60A7-493B-BD8D-83C45B9305BA@stellar.eclipse.co.uk> Date: Fri, 8 Oct 2010 10:13:17 -0700 Message-ID: Subject: Re: [gentoo-user] IP aliasing problem From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 5f50b028-7ccd-4dcd-a4ae-e7e467052f3e X-Archives-Hash: 5148ab5ab667c568ccbd8e3ebda7d6c2 >>> ServerName differently for =A0each VirtualHost. =A0Strangely though, I >>> still don't get stats for RX/TX =A0from ifconfig: >>> >>> eth0 =A0 =A0 =A0Link encap:Ethernet =A0HWaddr =A0[removed] >>> =A0 =A0 =A0 =A0 =A0inet addr:1.2.3.1 =A0 Bcast:[removed] =A0Mask:255.25= 5.255.248 >>> =A0 =A0 =A0 =A0 =A0 UP BROADCAST RUNNING MULTICAST =A0MTU:1500 =A0Metri= c:1 >>> =A0 =A0 =A0 =A0 =A0 RX packets:923677 errors:0 dropped:0 overruns:0 =A0= frame:0 >>> =A0 =A0 =A0 =A0 =A0TX packets:1444212 errors:0 =A0dropped:0 overruns:0 = carrier:0 >>> =A0 =A0 =A0 =A0 =A0 collisions:0 txqueuelen:1000 >>> =A0 =A0 =A0 =A0 =A0RX =A0bytes:124904402 (119.1 MiB) =A0TX bytes:188008= 7116 (1.7 GiB) >>> =A0 =A0 =A0 =A0 =A0 Interrupt:40 >>> >>> eth0:1 =A0 =A0Link =A0encap:Ethernet =A0HWaddr [removed] >>> =A0 =A0 =A0 =A0 =A0inet =A0addr:1.2.3.2 =A0Bcast:[removed] =A0Mask:255.= 255.255.248 >>> =A0 =A0 =A0 =A0 =A0 UP BROADCAST RUNNING MULTICAST =A0MTU:1500 =A0 Metr= ic:1 >>> =A0 =A0 =A0 =A0 =A0Interrupt:40 >> >> Remember eth0:1 is an alias for eth0. >> >> Your above info is slightly wrong in that eth0 should be listed as eth0:= 0; where >> instead ifconfig is showing eth0 generic information and eth0:0 informat= ion >> combined. >> That's probably the source of your confusion. > > On a system running 2.4.25 here I have: > > $ ifconfig > eth0 =A0 =A0 =A0Link encap:Ethernet =A0HWaddr 00:02:A5:1B:01:59 > =A0 =A0 =A0 =A0 =A0inet addr:213.x.y.91 =A0Bcast:213.x.y.95 =A0Mask:255.2= 55.255.248 > =A0 =A0 =A0 =A0 =A0UP BROADCAST RUNNING MULTICAST =A0MTU:1500 =A0Metric:1 > =A0 =A0 =A0 =A0 =A0RX packets:211366804 errors:0 dropped:0 overruns:0 fra= me:0 > =A0 =A0 =A0 =A0 =A0TX packets:306200382 errors:0 dropped:0 overruns:0 car= rier:0 > =A0 =A0 =A0 =A0 =A0collisions:0 txqueuelen:1000 > =A0 =A0 =A0 =A0 =A0RX bytes:1542358934 (1470.9 Mb) =A0TX bytes:1547826181= (1476.1 Mb) > =A0 =A0 =A0 =A0 =A0Interrupt:20 Base address:0xd000 > > eth0:1 =A0 =A0Link encap:Ethernet =A0HWaddr 00:02:A5:1B:01:59 > =A0 =A0 =A0 =A0 =A0inet addr:192.168.1.43 =A0Bcast:192.168.255.255 =A0Mas= k:255.255.255.0 > =A0 =A0 =A0 =A0 =A0UP BROADCAST RUNNING MULTICAST =A0MTU:1500 =A0Metric:1 > =A0 =A0 =A0 =A0 =A0RX packets:211366804 errors:0 dropped:0 overruns:0 fra= me:0 > =A0 =A0 =A0 =A0 =A0TX packets:306200384 errors:0 dropped:0 overruns:0 car= rier:0 > =A0 =A0 =A0 =A0 =A0collisions:0 txqueuelen:1000 > =A0 =A0 =A0 =A0 =A0RX bytes:1542358934 (1470.9 Mb) =A0TX bytes:1547826521= (1476.1 Mb) > =A0 =A0 =A0 =A0 =A0Interrupt:20 Base address:0xd000 > > lo =A0 =A0 =A0 =A0Link encap:Local Loopback > ... > > > The same TX & RX are shown for both interfaces. > > I don't know whether the tools have changed much since those I'm using on= this box, but the difference *might* be that Grant's IPs are on the same s= ubnet. I *think* it's possible for the route (as in: `man route`) to config= ure packets that come in on 1.2.3.2 to be replied to via 1.2.3.1. > > You might set up a spare test box to see how current ifconfig displays pa= ckets, comparing aliased addresses on the same and separate subnets. > > Stroller. OK, thanks guys. - Grant