alve a tutti e grazie in anticipo a chi avrà voglia di leggere questo post.

A casa ho configurato un server (hostname XXXXXXXX -> ovviamente le X rappresentano gli omissis :P ) Ubuntu 10.10 con servizi
- CUPS
- SAMBA come PDC
- FTP
- SSH
Il server è connesso alla LAN (momentaneamente) con una scheda di rete 10/100 FullDuplex (Realtek8139) ad uno switch 16 porte ASUS 10/100 FullDuplex il quale è a sua volta connesso a quella schifezza di router Alice che mi fa da DHCP, oltre che da Gateway. In una situazione di massima saturazioone possibile, la rete potrebbe avere 7 pc collegati (server incluso) ma la situazione che sto descrivendo è il risultato di test effettuati su una rete a cui sono collegati solo server e un client, via cavo entrambi.
IP server: 192.168.1.252
IP client: 192.168.1.151

Il problema risiede nel trasferimento di file. Sia con Samba che con Ftp - in LAN - non riesco a raggiungere 1 Mb/s di download dal server, o 3 Mb/s di upload. Hdd del server (e del client) hanno velocità di trasferimento testate sperimentalmente ben superiori a quelle descritte, quindi (essendo ben due servizi a darmi problemi) credo proprio che il problema risieda nella configurazione della rete.

Prima ho parlato di momentaneamente in quanto l'interfaccia di rete è in bonding, avendo momentaneamente come slave unicamente la interfaccia eth1 (eth0 è una scheda rotta onboard) pronto per l'aggiunta di altre due interfacce di rete.

Posto le varie informazioni che posso ricavare da quel catorcio del mio server:

ifconfig -a:
codice:
bond0     Link encap:Ethernet  HWaddr 00:50:70:d4:17:64  
          inet addr:192.168.1.252  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:70ff:fed4:1764/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:31909 errors:9 dropped:0 overruns:0 frame:0
          TX packets:60909 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2895159 (2.8 MB)  TX bytes:49064413 (49.0 MB)

eth1      Link encap:Ethernet  HWaddr 00:50:70:d4:17:64  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:31909 errors:9 dropped:0 overruns:0 frame:0
          TX packets:60909 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2895159 (2.8 MB)  TX bytes:49064413 (49.0 MB)
          Interrupt:11 Base address:0xc400 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:190 errors:0 dropped:0 overruns:0 frame:0
          TX packets:190 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17552 (17.5 KB)  TX bytes:17552 (17.5 KB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:XXX.XXX.XXX.XXX  P-t-P:192.168.100.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:698 errors:0 dropped:0 overruns:0 frame:0
          TX packets:400 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:86500 (86.5 KB)  TX bytes:36835 (36.8 KB)
dmesg | grep eth
codice:
[    1.805170] 8139too 0000:01:09.0: eth0: RealTek RTL8139 at 0xc400, 00:50:70:d4:17:64, IRQ 11
[    5.897065] udev[324]: renamed network interface eth0 to eth1
[    8.688735] eth1: link up, 10Mbps, half-duplex, lpa 0x0000
[    8.688897] bonding: bond0: making interface eth1 the new active one.
[    8.689166] bonding: bond0: enslaving eth1 as an active interface with an up link.
[  884.361312] bonding: bond0: releasing active interface eth1
[  884.610889] bonding: bond0: making interface eth1 the new active one.
[  884.611162] bonding: bond0: enslaving eth1 as an active interface with an up link.
[  958.594716] bonding: bond0: releasing active interface eth1
[  958.766321] bonding: bond0: making interface eth1 the new active one.
[  958.766600] bonding: bond0: enslaving eth1 as an active interface with an up link.
[ 4769.371844] bonding: bond0: releasing active interface eth1
[ 4769.552256] bonding: bond0: making interface eth1 the new active one.
[ 4769.552488] bonding: bond0: enslaving eth1 as an active interface with an up link.
ethtool eth1
codice:
Settings for eth1:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	Supports auto-negotiation: Yes
	Advertised link modes:  Not reported
	Advertised pause frame use: No
	Advertised auto-negotiation: No
	Speed: 100Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 32
	Transceiver: internal
	Auto-negotiation: off
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000007 (7)
	Link detected: yes
mii-tool eth1
codice:
eth1: 100 Mbit, full duplex, link ok
cat /etc/network/interfaces
codice:
# This file describes the network interfaces available on your system and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto bond0
iface bond0 inet static
	address 192.168.1.252
	network 192.168.1.0
	netmask 255.255.255.0
	broadcast 192.168.1.255
	gateway 192.168.1.1
# bond confuration in /etc/modules
bond_mode 6
bond_miimon 100
# Creating bond0 device
post-up ifenslave bond0 eth1 #eth0 eth2
pre-down ifenslave -d bond0 eth1 #eth0 eth2


auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig bond0 up # line maintained by pppoeconf
provider dsl-provider
cat /etc/modules
codice:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

loop
lp
bonding mode=6 miimon=100
cat /etc/resolv.conf
codice:
nameserver 85.37.XX.XX
nameserver 85.38.XX.XX
cat /etc/hosts
codice:
127.0.0.1	localhost
192.168.1.252	XXXXXXXX

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
route
[code]
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.1 * 255.255.255.255 UH 0 0 0 ppp0
localnet * 255.255.255.0 U 0 0 0 bond0
default * 0.0.0.0 U 0 0 0 ppp0
[/route]

ip addr
codice:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UNKNOWN qlen 1000
    link/ether 00:50:70:d4:17:64 brd ff:ff:ff:ff:ff:ff
3: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether 00:50:70:d4:17:64 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.252/24 brd 192.168.1.255 scope global bond0
    inet6 fe80::250:70ff:fed4:1764/64 scope link 
       valid_lft forever preferred_lft forever
11: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN qlen 3
    link/ppp 
    inet XXX.XXX.XXX.XXX peer 192.168.100.1/32 scope global ppp0
lspci -vv
codice:
01:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
	Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32 (8000ns min, 16000ns max)
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at c400 [size=256]
	Region 1: Memory at e9000000 (32-bit, non-prefetchable) [size=256]
	[virtual] Expansion ROM at 20000000 [disabled] [size=64K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: 8139too
	Kernel modules: 8139too, 8139cp
grazie ancora per chiunque sappia illuminare questo mio stupido problema....