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:
>> 
>> 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
>> 
>> 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
> 
> 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 information 
> combined.
> That's probably the source of your confusion.

On a system running 2.4.25 here I have:

$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:02:A5:1B:01:59  
          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 
          RX bytes:1542358934 (1470.9 Mb)  TX bytes:1547826181 (1476.1 Mb)
          Interrupt:20 Base address:0xd000 

eth0:1    Link encap:Ethernet  HWaddr 00:02:A5:1B:01:59  
          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 
          RX bytes:1542358934 (1470.9 Mb)  TX bytes:1547826521 (1476.1 Mb)
          Interrupt:20 Base address:0xd000 

lo        Link 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 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.



Reply via email to