Debian 8 Jessie - bond0 a 802.3ad

MP

Debian 8 Jessie - bond0 a 802.3ad
« kdy: 18. 08. 2015, 13:09:31 »
Zdravim,

narazil jsem na necekany problem s bondingem v Jessii. Mam to nastaveny uz na vice strojich, ale zrejme prvni fyzicky instalovany bez upgradu z wheezy. Pouzivam systemd, ale sit je ovladana pres /etc/init.d/networking (systemd-networkd je disabled). Na druhe strane je cisco s nakonfigurovanym aktivnim LACP.

cat /etc/modules
Kód: [Vybrat]
bonding/etc/network/interfaces
Kód: [Vybrat]
auto bond0
iface bond0 inet static
    address IP
    netmask MASK
    network NET
    broadcast BCAST
    bond-mode 802.3ad
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200
    bond-slaves eth1

cat /proc/net/bonding/bond0
Kód: [Vybrat]
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

Vysledkem teto konfigurace je vzdy RR mode misto 802.3ad. Reboot site/stroje nepomaha, znovuvytvoreni konfigu na switchi taky ne. Co jsem zjistil:
1] echo 4 > /sys/class/net/bond0/bonding/mode ==> nastavi se 802.3ad
2] modprobe bonding mode=4 ==> nastavi se 802.3ad
3] /etc/modprobe.d/bonding.conf + reboot
Kód: [Vybrat]
alias bond0 bonding
options bond0 mode=802.3ad miimon=100 downdelay=200 updelay=200
==> nastavi se RR

Takze rucni prepinani modu funguje, ale z nejakeho duvodu je automaticky bond0 stale v RR a ignoruje se minimalne bond-mode v konfiguraci. Kde muze byt problem?




hajkos

Re:Debian 8 Jessie - bond0 a 802.3ad
« Odpověď #1 kdy: 18. 08. 2015, 18:42:22 »
jen me napadlo, jestli tam nemas drobnou chybicku...

misto:
options bond0 mode=802.3ad miimon=100 downdelay=200 updelay=200

tam dat:
options bond0 mode=4 miimon=100 downdelay=200 updelay=200

jede to?

nobody

Re:Debian 8 Jessie - bond0 a 802.3ad
« Odpověď #2 kdy: 18. 08. 2015, 20:44:31 »
hajkos: to by melo byt jedno, cituji z https://www.kernel.org/doc/Documentation/networking/bonding.txt

Options with textual values will accept either the text name or, for backwards compatibility, the option value.  E.g., "mode=802.3ad" and "mode=4" set the same mode.

MP

Re:Debian 8 Jessie - bond0 a 802.3ad
« Odpověď #3 kdy: 19. 08. 2015, 14:17:28 »
Tak co automaticky funguje pro nastaveni 802.3ad (zadny alias atd):
/etc/modprobe.d/bonding.conf
Kód: [Vybrat]
options mode=802.3ad
options ...
...

Ale pak nechapu, ze na dvou jinych Jessie serverech to funguje i bez definovani "bonding.conf".
1] "interfaces" + "modules" -> bond0 je 802.3ad - odtud se prebirala konfigurace na problemovy server
2] "interfaces" + "modules" -> bond0 je RR (!!!!), netdev-bond0 je 802.3ad - zde se hralo s definovanim pomoci netdev-*