<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://doc.ycharbi.fr/index.php?action=history&amp;feed=atom&amp;title=Agr%C3%A9gation_de_liens_-_linux</id>
	<title>Agrégation de liens - linux - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://doc.ycharbi.fr/index.php?action=history&amp;feed=atom&amp;title=Agr%C3%A9gation_de_liens_-_linux"/>
	<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;action=history"/>
	<updated>2026-06-10T05:17:12Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;diff=1524&amp;oldid=prev</id>
		<title>Ycharbi : Ajout d&#039;une précision sur l&#039;algorithme de hachage du LACP + remplacement de la balise source obsolète</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;diff=1524&amp;oldid=prev"/>
		<updated>2024-05-18T08:48:15Z</updated>

		<summary type="html">&lt;p&gt;Ajout d&amp;#039;une précision sur l&amp;#039;algorithme de hachage du LACP + remplacement de la balise source obsolète&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 18 mai 2024 à 08:48&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Ligne 17 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 17 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Vous l&amp;#039;avez probablement remarqué mais le rôle de chacun d&amp;#039;entre eux est plutôt redondant. Honnêtement je n&amp;#039;ai jamais vu autre chose que le mode 4 en condition réelles et je me demande bien à quoi servent les autres. Je pense qu&amp;#039;historiquement ils étaient là avant l&amp;#039;invention du &amp;#039;&amp;#039;LACP&amp;#039;&amp;#039; et qu&amp;#039;ils ont permis (par de sacrés bidouilles) de répondre à un besoin maintenant normé. Leur existence actuelle est probablement dû à un désir de conservation de méthodes ingénieuses qui ont fait leurs preuves par le passer.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Vous l&amp;#039;avez probablement remarqué mais le rôle de chacun d&amp;#039;entre eux est plutôt redondant. Honnêtement je n&amp;#039;ai jamais vu autre chose que le mode 4 en condition réelles et je me demande bien à quoi servent les autres. Je pense qu&amp;#039;historiquement ils étaient là avant l&amp;#039;invention du &amp;#039;&amp;#039;LACP&amp;#039;&amp;#039; et qu&amp;#039;ils ont permis (par de sacrés bidouilles) de répondre à un besoin maintenant normé. Leur existence actuelle est probablement dû à un désir de conservation de méthodes ingénieuses qui ont fait leurs preuves par le passer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{info|Dans le cas du mode 4 (&#039;&#039;LACP&#039;&#039;), il est également possible de préciser l’algorithme de hachage utilisé par la liaison (voir [https://www.kernel.org/doc/html/latest/networking/bonding.html xmit_hash_policy]. Ceci permet de spécifier le mode de distribution des trames lors d&#039;accès concurrents par des clients vers plusieurs machines servies par LACP (la politique &#039;&#039;layer3+4&#039;&#039; permet d&#039;utiliser 100% de la bande passante des liens composant le &#039;&#039;LACP&#039;&#039; dans certains cas). La valeur &amp;lt;code&amp;gt;layer2&amp;lt;/code&amp;gt; est définit par défaut.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Configuration d&amp;#039;un agrégat=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Configuration d&amp;#039;un agrégat=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot;&gt;Ligne 26 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 28 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;La série de commandes qui suit utilise la notion de filtrage de &amp;#039;&amp;#039;VLAN&amp;#039;&amp;#039; exploité dans [[Vlan - linux|ce document]]. L&amp;#039;&amp;#039;&amp;#039;IEEE 802.3ad&amp;#039;&amp;#039; peut donc tout à fait s&amp;#039;intégrer dans une configuration déjà existante pour peu que vous ayez suffisamment d&amp;#039;interfaces réseau sur votre machine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;La série de commandes qui suit utilise la notion de filtrage de &amp;#039;&amp;#039;VLAN&amp;#039;&amp;#039; exploité dans [[Vlan - linux|ce document]]. L&amp;#039;&amp;#039;&amp;#039;IEEE 802.3ad&amp;#039;&amp;#039; peut donc tout à fait s&amp;#039;intégrer dans une configuration déjà existante pour peu que vous ayez suffisamment d&amp;#039;interfaces réseau sur votre machine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/del&gt;lang=&quot;bash&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/ins&gt;lang=&quot;bash&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Création d&amp;#039;un pont gérant le 802.1Q&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Création d&amp;#039;un pont gérant le 802.1Q&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link add br0 type bridge vlan_filtering 1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link add br0 type bridge vlan_filtering 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot;&gt;Ligne 34 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 36 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link add bond0 type bond&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link add bond0 type bond&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link set bond0 type bond miimon 100 mode 4&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link set bond0 type bond miimon 100 mode 4&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# Pour préciser la fonction de hachage à utiliser :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# ip link set bond0 type bond miimon 100 mode 4 xmit_hash_policy layer3+4&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Ajout des interfaces physique à celui-ci&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Ajout des interfaces physique à celui-ci&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot;&gt;Ligne 63 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 67 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link set vlan181 up&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip link set vlan181 up&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip address add 192.168.181.224/24 dev vlan181&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ip address add 192.168.181.224/24 dev vlan181&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{astuce|Pour les suppressions et les retraits d&#039;interfaces, il faut utiliser les mots clés &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot; inline&lt;/del&gt;&amp;gt;del&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt; et &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot; inline&lt;/del&gt;&amp;gt;nomaster&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt; à la place de &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot; inline&lt;/del&gt;&amp;gt;add&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt; et &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot; inline&lt;/del&gt;&amp;gt;master&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{astuce|Pour les suppressions et les retraits d&#039;interfaces, il faut utiliser les mots clés &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;del&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt; et &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;nomaster&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt; à la place de &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;add&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt; et &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;master&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{info|Le paramètre &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot; inline&lt;/del&gt;&amp;gt;miimon 100&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt; passé à la définition du type de l&#039;interface &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot; inline&lt;/del&gt;&amp;gt;bond0&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt; permet de spécifier la fréquence de surveillance de la liaison &#039;&#039;[http://jmainy.free.fr/guill.web-/Fea3.html MII]&#039;&#039; (&#039;&#039;Medium Indepedant Interface&#039;&#039;) en millisecondes. Cela détermine la fréquence à laquelle l&#039;état du lien vers chaque esclave est inspecté pour détecter les défaillances de ceux-ci. Une valeur de zéro désactive la surveillance de la liaison &#039;&#039;MII&#039;&#039;. Une valeur de 100 est une valeur standard. Source &#039;&#039;[https://www.linuxquestions.org/questions/linux-networking-3/mode%3D1-miimon%3D100-934723/ ici]&#039;&#039; et &#039;&#039;[https://www.tecmint.com/network-nic-bonding-teaming-in-debian-linux/ là]&#039;&#039;.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{info|Le paramètre &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;miimon 100&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt; passé à la définition du type de l&#039;interface &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt;bond0&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/ins&gt;&amp;gt; permet de spécifier la fréquence de surveillance de la liaison &#039;&#039;[http://jmainy.free.fr/guill.web-/Fea3.html MII]&#039;&#039; (&#039;&#039;Medium Indepedant Interface&#039;&#039;) en millisecondes. Cela détermine la fréquence à laquelle l&#039;état du lien vers chaque esclave est inspecté pour détecter les défaillances de ceux-ci. Une valeur de zéro désactive la surveillance de la liaison &#039;&#039;MII&#039;&#039;. Une valeur de 100 est une valeur standard. Source &#039;&#039;[https://www.linuxquestions.org/questions/linux-networking-3/mode%3D1-miimon%3D100-934723/ ici]&#039;&#039; et &#039;&#039;[https://www.tecmint.com/network-nic-bonding-teaming-in-debian-linux/ là]&#039;&#039;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Sources=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Sources=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;diff=1173&amp;oldid=prev</id>
		<title>Ycharbi : Changement de catégorie + ajout d&#039;une précision sur la somme des bandes passantes avec Multipath TCP + correction d&#039;une phrase.</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;diff=1173&amp;oldid=prev"/>
		<updated>2020-07-14T08:02:49Z</updated>

		<summary type="html">&lt;p&gt;Changement de catégorie + ajout d&amp;#039;une précision sur la somme des bandes passantes avec Multipath TCP + correction d&amp;#039;une phrase.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 14 juillet 2020 à 08:02&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;réseaux_linux&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;iproute2&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Le noyau &amp;#039;&amp;#039;Linux&amp;#039;&amp;#039; propose de grouper plusieurs interfaces réseau en un agrégat régit par différents modes possibles. L&amp;#039;intérêt est bien souvent de bénéficier d&amp;#039;une haute disponibilité sur un lien mais certains modes peuvent apporter un accroissement de performances lors de cas de figures particuliers.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Le noyau &amp;#039;&amp;#039;Linux&amp;#039;&amp;#039; propose de grouper plusieurs interfaces réseau en un agrégat régit par différents modes possibles. L&amp;#039;intérêt est bien souvent de bénéficier d&amp;#039;une haute disponibilité sur un lien mais certains modes peuvent apporter un accroissement de performances lors de cas de figures particuliers.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Ligne 19 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 19 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Configuration d&amp;#039;un agrégat=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Configuration d&amp;#039;un agrégat=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Afin de configurer un agrégat de liens sous un &#039;&#039;Linux&#039;&#039; récent, il faut les outils du paquet &#039;&#039;[[:Category:iproute2|iproute2]]&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;d&#039;installé &lt;/del&gt;sur votre machine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Afin de configurer un agrégat de liens sous un &#039;&#039;Linux&#039;&#039; récent, il faut les outils du paquet &#039;&#039;[[:Category:iproute2|iproute2]]&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;installés &lt;/ins&gt;sur votre machine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Exemple avec LACP==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Exemple avec LACP==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Je vais présenter les commandes nécessaires à l&#039;établissement d&#039;un agrégat se basant le protocole &#039;&#039;IEEE 802.3ad&#039;&#039;. Comme expliqué dans la documentation de celui-ci pour [[Lacp - cisco|Cisco IOS]], il est important de préciser que cette norme ne permet pas d&#039;avoir un tuyau égale à la somme des bandes passantes des liens qui le compose. Le &#039;&#039;LACP&#039;&#039; permet de répartir les transferts sur les interfaces qui en font parti. Ainsi, un seul client ne pourra pas bénéficier de plus de la capacité d&#039;un lien mais plusieurs clients pourront chacun utiliser la bande passante d&#039;une interface et donc ne pas se saturer l&#039;un l&#039;autre. Ne vous attendez donc pas à avoir du 5gbps (en couplant 5 interfaces gigabits) lors d&#039;un transfert avec un seul PC (relié en 10gbps). Ce n&#039;est pas ce que permet le &#039;&#039;LACP&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Je vais présenter les commandes nécessaires à l&#039;établissement d&#039;un agrégat se basant le protocole &#039;&#039;IEEE 802.3ad&#039;&#039;. Comme expliqué dans la documentation de celui-ci pour [[Lacp - cisco|Cisco IOS]], il est important de préciser que cette norme ne permet pas d&#039;avoir un tuyau égale à la somme des bandes passantes des liens qui le compose. Le &#039;&#039;LACP&#039;&#039; permet de répartir les transferts sur les interfaces qui en font parti. Ainsi, un seul client ne pourra pas bénéficier de plus de la capacité d&#039;un lien mais plusieurs clients pourront chacun utiliser la bande passante d&#039;une interface et donc ne pas se saturer l&#039;un l&#039;autre. Ne vous attendez donc pas à avoir du 5gbps (en couplant 5 interfaces gigabits) lors d&#039;un transfert avec un seul PC (relié en 10gbps). Ce n&#039;est pas ce que permet le &#039;&#039;LACP&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(si c&#039;est ce que vous voulez, tournez-vous plutôt vers le [[Multipath TCP]])&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;La série de commandes qui suit utilise la notion de filtrage de &amp;#039;&amp;#039;VLAN&amp;#039;&amp;#039; exploité dans [[Vlan - linux|ce document]]. L&amp;#039;&amp;#039;&amp;#039;IEEE 802.3ad&amp;#039;&amp;#039; peut donc tout à fait s&amp;#039;intégrer dans une configuration déjà existante pour peu que vous ayez suffisamment d&amp;#039;interfaces réseau sur votre machine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;La série de commandes qui suit utilise la notion de filtrage de &amp;#039;&amp;#039;VLAN&amp;#039;&amp;#039; exploité dans [[Vlan - linux|ce document]]. L&amp;#039;&amp;#039;&amp;#039;IEEE 802.3ad&amp;#039;&amp;#039; peut donc tout à fait s&amp;#039;intégrer dans une configuration déjà existante pour peu que vous ayez suffisamment d&amp;#039;interfaces réseau sur votre machine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
	<entry>
		<id>https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;diff=1172&amp;oldid=prev</id>
		<title>Ycharbi : Page créée avec « Category:réseaux_linux  Le noyau &#039;&#039;Linux&#039;&#039; propose de grouper plusieurs interfaces réseau en un agrégat régit par différents modes possibles. L&#039;intérêt est bien... »</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Agr%C3%A9gation_de_liens_-_linux&amp;diff=1172&amp;oldid=prev"/>
		<updated>2020-07-13T23:27:10Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &lt;a href=&quot;/index.php/Cat%C3%A9gorie:R%C3%A9seaux_linux&quot; title=&quot;Catégorie:Réseaux linux&quot;&gt;Category:réseaux_linux&lt;/a&gt;  Le noyau &amp;#039;&amp;#039;Linux&amp;#039;&amp;#039; propose de grouper plusieurs interfaces réseau en un agrégat régit par différents modes possibles. L&amp;#039;intérêt est bien... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:réseaux_linux]]&lt;br /&gt;
&lt;br /&gt;
Le noyau &amp;#039;&amp;#039;Linux&amp;#039;&amp;#039; propose de grouper plusieurs interfaces réseau en un agrégat régit par différents modes possibles. L&amp;#039;intérêt est bien souvent de bénéficier d&amp;#039;une haute disponibilité sur un lien mais certains modes peuvent apporter un accroissement de performances lors de cas de figures particuliers.&lt;br /&gt;
&lt;br /&gt;
=Les modes de fonctionnements=&lt;br /&gt;
Les modes proposés, au nombre de 7, sont les suivants:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 0 (balance-rr)&amp;#039;&amp;#039;&amp;#039;: Aussi connu sous le nom de &amp;#039;&amp;#039;Round-robin&amp;#039;&amp;#039;, ce mode permet de transmettre et recevoir les paquets séquentiellement un à un par chaque interface. Il en résulte un &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;équilibrage de la charge&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 1 (active-backup)&amp;#039;&amp;#039;&amp;#039; : Dans ce mode, une seule interface est active, tandis que toutes les autres sont en état de sauvegarde. Si l&amp;#039;interface active échoue, une de sauvegarde la remplace en tant que seule active dans la liaison. L&amp;#039;adresse de contrôle d&amp;#039;accès au support (&amp;#039;&amp;#039;MAC&amp;#039;&amp;#039;) de l&amp;#039;interface de liaison n&amp;#039;est visible que sur un seul port, ce qui évite toute confusion pour le commutateur. Ce mode offre une &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;tolérance aux pannes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 2 (balance-xor)&amp;#039;&amp;#039;&amp;#039; : L&amp;#039;adresse &amp;#039;&amp;#039;MAC&amp;#039;&amp;#039; source utilise une logique exclusive (ou &amp;#039;&amp;#039;XOR&amp;#039;&amp;#039;) avec l&amp;#039;adresse &amp;#039;&amp;#039;MAC&amp;#039;&amp;#039; de destination. Ce calcul garantit que la même interface esclave est sélectionnée pour chaque adresse &amp;#039;&amp;#039;MAC&amp;#039;&amp;#039; de destination. Ce mode assure la &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;tolérance aux pannes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; et l&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;équilibrage de charge&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 3 (broadcast)&amp;#039;&amp;#039;&amp;#039; : Toutes les transmissions sont envoyées à tous les esclaves. Ce mode assure une &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;tolérance aux pannes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 4 (802.3ad)&amp;#039;&amp;#039;&amp;#039; : Ce mode crée des groupes d&amp;#039;agrégation qui partagent les mêmes paramètres de vitesse et de mode de transmission ([Half-]duplex). Il nécessite un commutateur prenant en charge un lien dynamique &amp;#039;&amp;#039;[https://fr.wikipedia.org/wiki/IEEE_802.3ad IEEE 802.3ad]&amp;#039;&amp;#039; (ou &amp;#039;&amp;#039;LACP&amp;#039;&amp;#039;). Le lien qui en résulte permet d&amp;#039;exploiter la bande passante de chaque interface lors d&amp;#039;accès concurrents (cette notion sera abordé un peu [[#plus bas|plus bas]]). Il offre une &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;tolérance aux pannes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; et un &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;équilibrage de charge&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 5 (balance-tlb)&amp;#039;&amp;#039;&amp;#039; : Ce mode garantit que la répartition du trafic sortant est définie en fonction de la charge sur chaque interface et que l&amp;#039;une d&amp;#039;elle reçoive tout le trafic entrant. Si elle n&amp;#039;en reçoit pas, une autre est alors assignée à ce rôle. Il offre une &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;tolérance aux pannes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; et un &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;équilibrage de charge&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mode 6 (balance-alb)&amp;#039;&amp;#039;&amp;#039; : Les paquets reçus sont équilibrés par la négociation du protocole de résolution d&amp;#039;adresse (&amp;#039;&amp;#039;ARP&amp;#039;&amp;#039;). Il offre une &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;tolérance aux pannes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; et un &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;équilibrage de charge&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; (ceci n&amp;#039;est pris en charge que dans les environnements &amp;#039;&amp;#039;x86&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Quel que soit le mode choisi, les commandes utilisées seront les mêmes. Il faudra simplement spécifier ce choix par son numéro ou le mot clé qui y est associé (écrit entre parenthèses dans la liste ci-dessus).&lt;br /&gt;
&lt;br /&gt;
Vous l&amp;#039;avez probablement remarqué mais le rôle de chacun d&amp;#039;entre eux est plutôt redondant. Honnêtement je n&amp;#039;ai jamais vu autre chose que le mode 4 en condition réelles et je me demande bien à quoi servent les autres. Je pense qu&amp;#039;historiquement ils étaient là avant l&amp;#039;invention du &amp;#039;&amp;#039;LACP&amp;#039;&amp;#039; et qu&amp;#039;ils ont permis (par de sacrés bidouilles) de répondre à un besoin maintenant normé. Leur existence actuelle est probablement dû à un désir de conservation de méthodes ingénieuses qui ont fait leurs preuves par le passer.&lt;br /&gt;
&lt;br /&gt;
=Configuration d&amp;#039;un agrégat=&lt;br /&gt;
Afin de configurer un agrégat de liens sous un &amp;#039;&amp;#039;Linux&amp;#039;&amp;#039; récent, il faut les outils du paquet &amp;#039;&amp;#039;[[:Category:iproute2|iproute2]]&amp;#039;&amp;#039; d&amp;#039;installé sur votre machine.&lt;br /&gt;
&lt;br /&gt;
==Exemple avec LACP==&lt;br /&gt;
Je vais présenter les commandes nécessaires à l&amp;#039;établissement d&amp;#039;un agrégat se basant le protocole &amp;#039;&amp;#039;IEEE 802.3ad&amp;#039;&amp;#039;. Comme expliqué dans la documentation de celui-ci pour [[Lacp - cisco|Cisco IOS]], il est important de préciser que cette norme ne permet pas d&amp;#039;avoir un tuyau égale à la somme des bandes passantes des liens qui le compose. Le &amp;#039;&amp;#039;LACP&amp;#039;&amp;#039; permet de répartir les transferts sur les interfaces qui en font parti. Ainsi, un seul client ne pourra pas bénéficier de plus de la capacité d&amp;#039;un lien mais plusieurs clients pourront chacun utiliser la bande passante d&amp;#039;une interface et donc ne pas se saturer l&amp;#039;un l&amp;#039;autre. Ne vous attendez donc pas à avoir du 5gbps (en couplant 5 interfaces gigabits) lors d&amp;#039;un transfert avec un seul PC (relié en 10gbps). Ce n&amp;#039;est pas ce que permet le &amp;#039;&amp;#039;LACP&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
La série de commandes qui suit utilise la notion de filtrage de &amp;#039;&amp;#039;VLAN&amp;#039;&amp;#039; exploité dans [[Vlan - linux|ce document]]. L&amp;#039;&amp;#039;&amp;#039;IEEE 802.3ad&amp;#039;&amp;#039; peut donc tout à fait s&amp;#039;intégrer dans une configuration déjà existante pour peu que vous ayez suffisamment d&amp;#039;interfaces réseau sur votre machine.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Création d&amp;#039;un pont gérant le 802.1Q&lt;br /&gt;
ip link add br0 type bridge vlan_filtering 1&lt;br /&gt;
ip link set br0 up&lt;br /&gt;
&lt;br /&gt;
# Création de l&amp;#039;interface d&amp;#039;agrégat&lt;br /&gt;
ip link add bond0 type bond&lt;br /&gt;
ip link set bond0 type bond miimon 100 mode 4&lt;br /&gt;
&lt;br /&gt;
# Ajout des interfaces physique à celui-ci&lt;br /&gt;
ip link set eth0 down&lt;br /&gt;
ip link set eth0 master bond0&lt;br /&gt;
ip link set eth1 down&lt;br /&gt;
ip link set eth1 master bond0&lt;br /&gt;
ip link set bond0 up&lt;br /&gt;
&lt;br /&gt;
# Ajout de l&amp;#039;agrégat au pont&lt;br /&gt;
ip link set bond0 master br0&lt;br /&gt;
&lt;br /&gt;
# Suppression du VLAN par défaut&lt;br /&gt;
bridge vlan del dev br0 vid 1 self&lt;br /&gt;
bridge vlan del dev bond0 vid 1 master&lt;br /&gt;
&lt;br /&gt;
# Ajout de VLAN au trunk transporté par l&amp;#039;agrégat&lt;br /&gt;
bridge vlan add dev br0 vid 180 tagged self&lt;br /&gt;
bridge vlan add dev br0 vid 181 tagged self&lt;br /&gt;
bridge vlan add dev bond0 vid 180 tagged master&lt;br /&gt;
bridge vlan add dev bond0 vid 181 tagged master&lt;br /&gt;
&lt;br /&gt;
# Création d&amp;#039;interfaces VLAN (SVI)&lt;br /&gt;
ip link add link br0 name vlan180 type vlan id 180&lt;br /&gt;
ip link set vlan180 up&lt;br /&gt;
ip address add 192.168.180.224/24 dev vlan180&lt;br /&gt;
&lt;br /&gt;
ip link add link br0 name vlan181 type vlan id 181&lt;br /&gt;
ip link set vlan181 up&lt;br /&gt;
ip address add 192.168.181.224/24 dev vlan181&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{astuce|Pour les suppressions et les retraits d&amp;#039;interfaces, il faut utiliser les mots clés &amp;lt;source lang=&amp;quot;bash&amp;quot; inline&amp;gt;del&amp;lt;/source&amp;gt; et &amp;lt;source lang=&amp;quot;bash&amp;quot; inline&amp;gt;nomaster&amp;lt;/source&amp;gt; à la place de &amp;lt;source lang=&amp;quot;bash&amp;quot; inline&amp;gt;add&amp;lt;/source&amp;gt; et &amp;lt;source lang=&amp;quot;bash&amp;quot; inline&amp;gt;master&amp;lt;/source&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{info|Le paramètre &amp;lt;source lang=&amp;quot;bash&amp;quot; inline&amp;gt;miimon 100&amp;lt;/source&amp;gt; passé à la définition du type de l&amp;#039;interface &amp;lt;source lang=&amp;quot;bash&amp;quot; inline&amp;gt;bond0&amp;lt;/source&amp;gt; permet de spécifier la fréquence de surveillance de la liaison &amp;#039;&amp;#039;[http://jmainy.free.fr/guill.web-/Fea3.html MII]&amp;#039;&amp;#039; (&amp;#039;&amp;#039;Medium Indepedant Interface&amp;#039;&amp;#039;) en millisecondes. Cela détermine la fréquence à laquelle l&amp;#039;état du lien vers chaque esclave est inspecté pour détecter les défaillances de ceux-ci. Une valeur de zéro désactive la surveillance de la liaison &amp;#039;&amp;#039;MII&amp;#039;&amp;#039;. Une valeur de 100 est une valeur standard. Source &amp;#039;&amp;#039;[https://www.linuxquestions.org/questions/linux-networking-3/mode%3D1-miimon%3D100-934723/ ici]&amp;#039;&amp;#039; et &amp;#039;&amp;#039;[https://www.tecmint.com/network-nic-bonding-teaming-in-debian-linux/ là]&amp;#039;&amp;#039;.}}&lt;br /&gt;
&lt;br /&gt;
=Sources=&lt;br /&gt;
* https://developer.rackspace.com/blog/lacp-bonding-and-linux-configuration/&lt;br /&gt;
* https://access.redhat.com/documentation/fr-fr/red_hat_enterprise_linux/7/html/networking_guide/sec-using_channel_bonding&lt;br /&gt;
* https://developers.redhat.com/blog/2017/09/14/vlan-filter-support-on-bridge/&lt;/div&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
</feed>