I'm trying to configure bonded interfaces between 2 Gentoo hosts.
Gentoo box 1 has 2 network interfaces, the first (eth2 in my example) is connected to port 1 on a 802.3ad switch and the other (eth3) to port 1 on another 802.3 switch.
Gentoo box 2 also has 2 NICs, one (eth2) connected to switch 1 on port 2 and the other to switch 2 on port 2.
Switch 1 and 2 are stacked.
Switch 1 port 1 and switch 2 port 1 are configured in the switch web UI as LACP.
Same for switch 1 port 2 and switch 2 port 2.
On Gentoo box 1:
Code: Select all
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 2
Actor Key: 17
Partner Key: 301
Partner Mac Address: fc:75:16:6a:a9:e1
Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 68:05:ca:11:62:4f
Aggregator ID: 1
Slave queue ID: 0
Slave Interface: eth3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 68:05:ca:11:5e:77
Aggregator ID: 1
Slave queue ID: 0
Gentoo box 2 has a similar config but with different MAC addresses. However the "Partner Mac Address" is the SAME on both Gentoo servers.
Is this expected?
Also, I must be doing something wrong either on the switch or on the Gentoo boxes because disconnection of a cable "fails over" fine but if all cables are connected I'm expecting to have double speed (eg. 1Gbps * 2) but it's not the case.
I'm using D-LINK DGS-3100 switches and I'm thinking that maybe I'm configuring it inappropriately.
Any hints/ideas as to what I may check on the Gentoo servers and if anyone has successfully used DLINK switches for this kind of setup?
Thanks,
Vieri


