Ich habe mich daher daran versucht, jeweils 2 Gigabit Netzwerkkarten (eth1/eth2) mit Crossover-Cat-5-Kabeln zu verbindung und bonding einzurichten:
Code: Alles auswählen
/etc/network/interfaces:
(...)
auto eth1
iface eth1 inet manual
bond-master bond0
auto eth2
iface eth2 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 192.168.2.1
netmask 255.255.255.0
bond-mode 802.3ad # auch mit mode 0 probiert
bond-miimon 100
bond-downdelay 200
bond-updelay 200
bond-lacp-rate 4
bond-slaves none
ethtool zeigt auch an, dass jeweils beide Netzwerkkarten mit 1000 Mb/s erkannt werden:
Code: Alles auswählen
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
Code: Alles auswählen
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 bond0
über bond0/crossover:
Code: Alles auswählen
netperf -H 192.168.2.1 -p 12865 -l 5 -f M:
Size Size Size Time Throughput
bytes bytes bytes secs. MBytes/sec
87380 16384 16384 5.02 57.71
Code: Alles auswählen
netperf -H 192.168.0.1 -p 12865 -l 5 -f M:
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. MBytes/sec
87380 16384 16384 5.04 70.02