bonding unter linux (wheezy) schlägt fehl

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
n1k1
Beiträge: 2
Registriert: 28.05.2013 18:03:20

bonding unter linux (wheezy) schlägt fehl

Beitrag von n1k1 » 28.05.2013 18:24:00

Hallo zusammen,

ich weiss das Thema ist alt, doch evtl. kann mir zum Thema "NIC-Bonding" einen Tip geben.

ich versuche eben unter einem neu aufgesetzten wheezy-system (amd64) ein active-passive NIC-bond einzurichten. Die Umgebung läuft virtuell unter vmware workstation unter Win7 mit zwei virtuellen NICs (bridged).

Auf den ersten Blick scheint der bond zu funktionieren, sobald jedoch das bislang aktive Interface mit "ifconfig eth0 down" deaktiviert wird, bricht jegliche IP-Verbindung von/zu diesem system ab.

Im Log wird vermerkt, dass das bisherige aktive Interface "eth0" runterfällt und nun das andere slave interface "eth1" aktiv geschalten wird. Eigentlich alles ok, doch ist das System IP-technisch nicht mehr erreichbar.

Hier die Settings

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0 eth1 bond0
#iface eth0 inet dhcp

auto bond0
iface bond0 inet static
address 192.168.99.47
netmask 255.255.255.0
network 192.168.99.0
gateway 192.168.99.2
slaves eth0 eth1
bond_mode active-backup
bond_miimon 100
bond_downdelay 200
bond_updelay 200


ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:0c:29:ad:cb:76
inet addr:192.168.99.47 Bcast:192.168.99.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fead:cb76/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:3731 errors:0 dropped:664 overruns:0 frame:0
TX packets:1672 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:347993 (339.8 KiB) TX bytes:325591 (317.9 KiB)

eth0 Link encap:Ethernet HWaddr 00:0c:29:ad:cb:76
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2279 errors:0 dropped:0 overruns:0 frame:0
TX packets:1616 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:196571 (191.9 KiB) TX bytes:323195 (315.6 KiB)

eth1 Link encap:Ethernet HWaddr 00:0c:29:ad:cb:76
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:1452 errors:0 dropped:664 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:151422 (147.8 KiB) TX bytes:2396 (2.3 KiB)



cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:ad:cb:76
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:ad:cb:80
Slave queue ID: 0


und nach down-setzen von eth0 wird gemeldet:

bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
bonding: bond0: Setting MII monitoring interval to 100.
bonding: bond0: Setting down delay to 200.
bonding: bond0: Setting up delay to 200.
bond0: setting mode to active-backup (1).
bonding: bond0: Adding slave eth0.
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
bonding: bond0: enslaving eth0 as a backup interface with an up link.
bonding: bond0: Adding slave eth1.
e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
bonding: bond0: enslaving eth1 as a backup interface with an up link.
ADDRCONF(NETDEV_UP): bond0: link is not ready
bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex.
bonding: bond0: making interface eth0 the new active one.
bonding: bond0: first active interface up!
ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
bonding: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex.
bond0: IPv6 duplicate address fe80::20c:29ff:fead:cb76 detected!
bonding: bond0: link status down for active interface eth0, disabling it in 200 ms.
bonding: bond0: link status definitely down for interface eth0, disabling it
bonding: bond0: making interface eth1 the new active one.


Weiss hier jemand Rat?

Besten Dank vorab.
Gruss
/n1k1

dufty
Beiträge: 378
Registriert: 21.09.2012 21:09:05

Re: bonding unter linux (wheezy) schlägt fehl

Beitrag von dufty » 28.05.2013 18:38:01

allow-hotplug bond0 ?

n1k1
Beiträge: 2
Registriert: 28.05.2013 18:03:20

Re: bonding unter linux (wheezy) schlägt fehl

Beitrag von n1k1 » 29.05.2013 08:45:43

allow-@dufty,

ja dieser eintrag ist unsinn, doch loest das mein problem nicht :-)

gruss
/n1k1

Antworten