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 1P3wXM-0005m4-TH for garchives@archives.gentoo.org; Thu, 07 Oct 2010 19:53:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 072AFE0801; Thu, 7 Oct 2010 19:53:42 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id ABA8AE0801 for ; Thu, 7 Oct 2010 19:53:41 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.57,298,1283727600"; d="scan'208";a="222011609" Received: from 213-152-39-90.dsl.eclipse.net.uk (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 07 Oct 2010 20:53:40 +0100 Received: from [192.168.1.101] (unknown [192.168.1.101]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id EEE5A6C538 for ; Thu, 7 Oct 2010 20:53:37 +0100 (BST) Content-Type: text/plain; charset=us-ascii 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 (Apple Message framework v1078) Subject: Re: [gentoo-user] IP aliasing problem From: Stroller In-Reply-To: <810692.43662.qm@web51906.mail.re2.yahoo.com> Date: Thu, 7 Oct 2010 20:53:39 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <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> To: gentoo-user@lists.gentoo.org X-Mailer: Apple Mail (2.1078) X-Archives-Salt: ca89e3d8-4395-4165-9b0e-d81b07a9d465 X-Archives-Hash: 601d8b039701caf4ba3d7d03f71dcc40 On 7 Oct 2010, at 18:51, BRM wrote: >> ServerName differently for each VirtualHost. Strangely though, I >> still don't get stats for RX/TX from ifconfig: >>=20 >> eth0 Link encap:Ethernet HWaddr [removed] >> inet addr:1.2.3.1 Bcast:[removed] Mask:255.255.255.248 >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >> RX packets:923677 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:1444212 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:124904402 (119.1 MiB) TX bytes:1880087116 (1.7 = GiB) >> Interrupt:40 >>=20 >> eth0:1 Link encap:Ethernet HWaddr [removed] >> inet addr:1.2.3.2 Bcast:[removed] Mask:255.255.255.248 >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >> Interrupt:40 >=20 > Remember eth0:1 is an alias for eth0. >=20 > Your above info is slightly wrong in that eth0 should be listed as = eth0:0; where=20 > instead ifconfig is showing eth0 generic information and eth0:0 = information=20 > combined. > That's probably the source of your confusion. On a system running 2.4.25 here I have: $ ifconfig=20 eth0 Link encap:Ethernet HWaddr 00:02:A5:1B:01:59 =20 inet addr:213.x.y.91 Bcast:213.x.y.95 Mask:255.255.255.248 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:211366804 errors:0 dropped:0 overruns:0 frame:0 TX packets:306200382 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000=20 RX bytes:1542358934 (1470.9 Mb) TX bytes:1547826181 (1476.1 = Mb) Interrupt:20 Base address:0xd000=20 eth0:1 Link encap:Ethernet HWaddr 00:02:A5:1B:01:59 =20 inet addr:192.168.1.43 Bcast:192.168.255.255 = Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:211366804 errors:0 dropped:0 overruns:0 frame:0 TX packets:306200384 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000=20 RX bytes:1542358934 (1470.9 Mb) TX bytes:1547826521 (1476.1 = Mb) Interrupt:20 Base address:0xd000=20 lo Link encap:Local Loopback =20 ... 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 subnet. I *think* it's possible for the route (as in: `man route`) = to configure 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 = packets, comparing aliased addresses on the same and separate subnets. Stroller.