# Problème Debian 10 bonding

**URL:** <https://www.debian-fr.org/t/probleme-debian-10-bonding/80727>\
**Category:** Support Debian\
**Created:** [Décembre 2, 2019, 10:05 UTC](https://www.debian-fr.org/t/probleme-debian-10-bonding/80727 "2019-12-02T10:05:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lanf](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/ecd19e/32.png) [@Lanf](https://www.debian-fr.org/u/Lanf)\
**Post date:** [Décembre 2, 2019, 10:05 UTC](https://www.debian-fr.org/t/probleme-debian-10-bonding/80727/1 "2019-12-02T10:05:09Z")

</div>

onjour,

j’ai un problème avec ma configuration de bonding sur Debian.

J’obtiens l’erreur suivante :

```nohighlight
unable to set because the bond device has slaves

```

```nohighlight
auto bond1
allow-hotplug bond1
iface bond1 inet static
        address 192.28.1.250
        netmask 255.255.255.0
        network 192.28.1.0
        broadcast 192.28.1.255
        gateway 192.28.1.254
        dns-nameservers 192.30.128.101
        dns-search bob.intra.cvl.fr
        slaves enp4s0f0 enp4s0f1
       bond-slaves none
       bond-mode 802.3ad
        bond-miimon 100
        bond-downdelay 200
        bond-updelay 200

allow-hotplug ens4s0f0
iface enp4s0f0 inet manual
bond-master bond1
bond-primary ens4s0f0

allow-hotplug ens4s0f1
iface enp4s0f1 inet manual
bond-master bond1

```

Quelqu’un peut’il m’aider ?

---

<div class="post-metadata">

**Author:** ![littlejohn75](https://www.debian-fr.org/user_avatar/www.debian-fr.org/littlejohn75/32/3840_2.png) [@littlejohn75](https://www.debian-fr.org/u/littlejohn75)\
**Post date:** [Décembre 2, 2019, 1:56 UTC](https://www.debian-fr.org/t/probleme-debian-10-bonding/80727/2 "2019-12-02T13:56:34Z")

</div>

> [@Lanf](#):
>
> ```plaintext
> dns-search bob.intra.cvl.fr
> slaves enp4s0f0 enp4s0f1
> bond-slaves none
> bond-mode 802.3ad
> bond-miimon 100
> bond-downdelay 200
> bond-updelay 200
> 
> allow-hotplug ens4s0f0
> iface enp4s0f0 inet manual
> 
> ```

Je commencerais par supprimer

```plaintext
allow-hotplug bond1
    bond-slaves none
# et les instructions relatives aux interfaces enp4s0f0 enp4s0f1
# c'est à dire tout ce qui suit 

allow-hotplug ens4s0f0

```

En tout cas, c’est ce que j’ai sur des machines sous `stretch` : aucun `allow hotplug` et un simple `auto bond0`

Cordialement,  
Regards,  
Mit freundlichen Grüßen,  
مع تحياتي الخالصة

* * *

F. Petitjean  
Ingénieur civil du Génie Maritime.

« On ne perd pas son temps en aiguisant ses outils. »  
Proverbe français

« Moi, lorsque je n’ai rien à dire, je veux qu’on le sache. » (R. Devos)

---

<div class="post-metadata">

**Author:** ![Lanf](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/l/ecd19e/32.png) [@Lanf](https://www.debian-fr.org/u/Lanf)\
**Post date:** [Décembre 2, 2019, 1:59 UTC](https://www.debian-fr.org/t/probleme-debian-10-bonding/80727/3 "2019-12-02T13:59:37Z")

</div>

J’ai fais la modification.  
J’ai toujours la même erreur.

---

<div class="post-metadata">

**Author:** ![littlejohn75](https://www.debian-fr.org/user_avatar/www.debian-fr.org/littlejohn75/32/3840_2.png) [@littlejohn75](https://www.debian-fr.org/u/littlejohn75)\
**Post date:** [Décembre 2, 2019, 3:55 UTC](https://www.debian-fr.org/t/probleme-debian-10-bonding/80727/4 "2019-12-02T15:55:46Z")

</div>

> [@Lanf](#):
>
> J’ai toujours la même erreur.

C’est fâcheux.

> [@littlejohn75](#):
>
> bond-mode 802.3ad

Pour cette agrégation de liens, vérifiez que que les 2 câbles réseau qui sont branchés sur les 2 interfaces de la machine sont bien connectés à des ports d’un commutateur administrable et que ces deux ports font bien partie d’un groupe d’agrégation au sens de la norme IEEE 802.3ad (`LACP`).  
Quelles sont les marques et modèles du serveur et du commutateur ?

Voici un extrait de `/etc/network/interfaces` qui fonctionne sous `stretch`

```plaintext
auto bond0
iface bond0 inet static
        address 192.168.1.180
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        slaves eth2 eth3
        bond_mode 802.3ad
        bond_miimon 100
        ond_xmit_hash_policy layer2
        # ond_xmit_hash_policy layer3+4
        bond_lacp_rate slow

```

Cordialement,  
Regards,  
Mit freundlichen Grüßen,  
مع تحياتي الخالصة

* * *

F. Petitjean  
Ingénieur civil du Génie Maritime.

« Je préfère le vin d’ici à l’au-delà »  
Pierre Dac

Au cœur de Linux il y a un noyau. Au cœur de Windows, on trouve des pépins…
