# Ansible Bonding with automatic recongition of interfaces

**URL:** <https://forum.ansible.com/t/ansible-bonding-with-automatic-recongition-of-interfaces/34877>\
**Category:** Ansible Project\
**Created:** [March 29, 2021, 8:16am UTC](https://forum.ansible.com/t/ansible-bonding-with-automatic-recongition-of-interfaces/34877 "2021-03-29T08:16:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmc1](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@bmc1](https://forum.ansible.com/u/bmc1)\
**Post date:** [March 29, 2021, 8:16am UTC](https://forum.ansible.com/t/ansible-bonding-with-automatic-recongition-of-interfaces/34877/1 "2021-03-29T08:16:12Z")

</div>

I have some issues with my project. I need to bond two interfaces, automatically choosing the two with 25Gbit speed. I’m able to make a normal bonding selecting the interface names, I’m able to filter the interfaces through speed too, but I’m lost trying to connect both ideas.

This is my Bonding.yml

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 29, 2021, 8:52am UTC](https://forum.ansible.com/t/ansible-bonding-with-automatic-recongition-of-interfaces/34877/2 "2021-03-29T08:52:00Z")

</div>

Where does interfaces\_per\_speed come from?  
Can you post all the data/vars/etc?
