ubuntuusers.de

Bonding e1000e LACP

Status: Ungelöst | Ubuntu-Version: Server 12.04 (Precise Pangolin)
Antworten |

NORT1200

Anmeldungsdatum:
15. August 2012

Beiträge: 5

Hallo ,

ich muss jetzt auch mal nerven komm nicht weiter mit dem bonding (IEEE 802.3ad) unter 12.04 64bit . hab alles nach Ubuntu.com Anleitung eingerichtet aber im mii-tool kommt immer dieser SIOCGMIIREG Fehler. Durch testen habe ich rausgefunden das es nur Geräte sind die den e1000e Treiber nutzen die die Fehlermeldung ausgeben. Habe auch schon neueren Treiber installiert 2.0.1. nun weiß ich nicht ob ich die meldung ignorieren kann oder wie kann ich testen ob das bonding richtig läuft.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
root@backup:~# mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok
SIOCGMIIREG on eth1 failed: Input/output error
SIOCGMIIREG on eth1 failed: Input/output error
eth1: negotiated 1000baseT-FD flow-control, link ok
SIOCGMIIREG on eth2 failed: Input/output error
SIOCGMIIREG on eth2 failed: Input/output error
eth2: negotiated 1000baseT-FD flow-control, link ok
SIOCGMIIREG on eth3 failed: Input/output error
SIOCGMIIREG on eth3 failed: Input/output error
eth3: negotiated 1000baseT-FD flow-control, link ok
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
root@backup:~# 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: 4
        Number of ports: 4
        Actor Key: 17
        Partner Key: 2
        Partner Mac Address: 20:fd:f1:75:c2:2d

Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 2
Permanent HW addr: 68:05:ca:06:4c:48
Aggregator ID: 4
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:06:4c:49
Aggregator ID: 4
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:15:17:ca:ac:b4
Aggregator ID: 4
Slave queue ID: 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:15:17:ca:ac:b2
Aggregator ID: 4
Slave queue ID: 0
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
root@backup:~# dmesg |grep bond
[    5.236581] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    5.435646] bonding: bond0: Setting MII monitoring interval to 100.
[    5.437665] bonding: bond0: setting mode to 802.3ad (4).
[    5.439398] bonding: bond0: Setting LACP rate to fast (1).
[    5.440796] ADDRCONF(NETDEV_UP): bond0: link is not ready
[    5.451257] bonding: bond0: Adding slave eth2.
[    5.652923] bonding: bond0: enslaving eth2 as a backup interface with a down link.
[    5.654014] bonding: bond0: Adding slave eth3.
[    5.856970] bonding: bond0: enslaving eth3 as a backup interface with a down link.
[    5.856974] bonding: bond0: Adding slave eth1.
[    6.276729] bonding: bond0: enslaving eth1 as a backup interface with a down link.
[    6.276734] bonding: bond0: Adding slave eth0.
[    6.303198] bonding: bond0: enslaving eth0 as a backup interface with an up link.
[    6.348734] ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
[    7.748008] bonding: bond0: link status definitely up for interface eth2, 1000 Mbps full duplex.
[    7.848005] bonding: bond0: link status definitely up for interface eth3, 1000 Mbps full duplex.
[    8.848005] bonding: bond0: link status definitely down for interface eth2, disabling it
[    8.948005] bonding: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex.
[   11.148007] bonding: bond0: link status definitely up for interface eth2, 1000 Mbps full duplex.
[   12.248007] bonding: bond0: link status definitely down for interface eth2, disabling it
[   14.548006] bonding: bond0: link status definitely up for interface eth2, 1000 Mbps full duplex.
[   16.752004] bond0: no IPv6 routers present
root@backup:~#
1
2
3
4
5
6
root@backup:~# lspci|grep Ethernet
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
01:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
01:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
06:02.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller (rev 05)
root@backup:~#

PS: Im Switch ist LACP eingerichtet.

danke für hilfe

Gruß Alex

elektronenblitz63

Avatar von elektronenblitz63

Anmeldungsdatum:
16. Januar 2007

Beiträge: 29307

Wohnort: NRW

Hallo,
wie sieht denn die Konfiguration der interfaces aus?

mii-tool
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 1000baseT-FD flow-control, link ok

... habe ich hier auch. Scheint eine Unverträglichkeit zwischen mii-tool und der Karte/e1000e zu sein.

NORT1200

(Themenstarter)

Anmeldungsdatum:
15. August 2012

Beiträge: 5

Hallo,

hier die Interfaces config.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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 eth0
iface eth0 inet manual
    bond-master bond0

auto eth1
iface eth1 inet manual
    bond-master bond0

auto eth2
iface eth2 inet manual
    bond-master bond0

auto eth3
iface eth3 inet manual
    bond-master bond0

auto bond0
iface bond0 inet static
address 192.168.177.29
gateway 192.168.177.1
netmask 255.255.255.0
dns-nameservers 192.168.177.7 
# slaves eth0 eth1 eth2 eth 3
# LACP configuration 
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-slaves none

grüße Alex

elektronenblitz63

Avatar von elektronenblitz63

Anmeldungsdatum:
16. Januar 2007

Beiträge: 29307

Wohnort: NRW

Es kann sein, dass die auto-Einträge für die einzelnen Schnittstellen nicht mehr erforderlich/erlaubt sind oder auch durch allow ersetzt werden müssen. Deaktiviere diese mal und ändere den Eintrag slaves

Siehe ansonsten auch Netzwerkkarten bündeln

auto lo
iface lo inet loopback

# auto eth0
# iface eth0 inet manual
#    bond-master bond0

# auto eth1
# iface eth1 inet manual
#    bond-master bond0

# auto eth2
# iface eth2 inet manual
#    bond-master bond0

# auto eth3
# iface eth3 inet manual
#    bond-master bond0

auto bond0
iface bond0 inet static
address 192.168.177.29
gateway 192.168.177.1
netmask 255.255.255.0
dns-nameservers 192.168.177.7 

slaves eth0 eth1 eth2 eth3

# oder 
# bond-slaves eth0 eth1 eth2 eth3

# LACP configuration 
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1

Starten

## ggf. ohne sudo - da root

sudo ifdown eth0
...
# für alle Schnittstellen wiederholen

sudo ifup bond0
sudo /etc/init.d/networking restart

NORT1200

(Themenstarter)

Anmeldungsdatum:
15. August 2012

Beiträge: 5

Hallo Rainer,

war ne gute Idee aber muss ne ältere art der config sein funzt nicht mehr. bringt nur das bond0 hoch und hat dann keine verbindung da die einzelnen interfaces ja down sind.

gruß Alex

elektronenblitz63

Avatar von elektronenblitz63

Anmeldungsdatum:
16. Januar 2007

Beiträge: 29307

Wohnort: NRW

Die im Artikel verlinkte Anleitung ist ja aktuell. Demnach war alles korrekt konfiguriert.

Ich würde mal den Anschluß, Kabel Port des Switch usw. für eth2 prüfen

[    8.848005] bonding: bond0: link status definitely down for interface eth2, disabling it

und

Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 2
Permanent HW addr: 68:05:ca:06:4c:48
Aggregator ID: 4
Slave queue ID: 0

.. oder auch mal Karte 2 und 3 tauschen (Anschluß/Steckplatz) und schauen, ob der Fehler wandert.

NORT1200

(Themenstarter)

Anmeldungsdatum:
15. August 2012

Beiträge: 5

Hallo Rainer,

die leitungen sind ok der switch hat auch link und 0 errors auf den ports. Da ich der meinung bin das es mit dem e1000e treiber und mii-tool probleme gibt (SIOCGMIIREG on eth1 failed: Input/output error) und die eine e1000 karte keine probleme macht. Ich hab mich jetzt entschieden die dualport karten zurück zu schicken und mir eine quadport schicken zu lassen die mit dem e1000 treiber arbeitet(der ja keine fehler ausgibt).

gruß Alex

elektronenblitz63

Avatar von elektronenblitz63

Anmeldungsdatum:
16. Januar 2007

Beiträge: 29307

Wohnort: NRW

Hallo,
wäre nett, wenn Du kurze Rückmeldung geben könntest wenn alles funktioniert und wie die Konfiguration dann aussieht. Der Wiki-Artikel sollte dahingehend wohl etwas aktualisiert werden.

Antworten |