<?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=Macsec_-_linux</id>
	<title>Macsec - 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=Macsec_-_linux"/>
	<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Macsec_-_linux&amp;action=history"/>
	<updated>2026-06-01T17:33:49Z</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=Macsec_-_linux&amp;diff=1479&amp;oldid=prev</id>
		<title>Ycharbi : Correction de la commande d&#039;ajout d&#039;IP sur les deux machines</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Macsec_-_linux&amp;diff=1479&amp;oldid=prev"/>
		<updated>2023-09-23T17:22:01Z</updated>

		<summary type="html">&lt;p&gt;Correction de la commande d&amp;#039;ajout d&amp;#039;IP sur les deux machines&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 23 septembre 2023 à 17:22&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-l89&quot;&gt;Ligne 89 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 89 :&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;Comme précisé plus haut, le trafic ne sera chiffré entre les deux pairs que si l&amp;#039;interface source de l&amp;#039;échange est &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;macsec0&amp;lt;/syntaxhighlight&amp;gt;, aussi, il convient de lui attribuer une adresse &amp;#039;&amp;#039;IP&amp;#039;&amp;#039;&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;Comme précisé plus haut, le trafic ne sera chiffré entre les deux pairs que si l&amp;#039;interface source de l&amp;#039;échange est &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;macsec0&amp;lt;/syntaxhighlight&amp;gt;, aussi, il convient de lui attribuer une adresse &amp;#039;&amp;#039;IP&amp;#039;&amp;#039;&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;  ip address add &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;macsec0 &lt;/del&gt;10.0.0.1/24 dev macsec0&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;  ip address add 10.0.0.1/24 dev macsec0&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;==Machine 2==&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;==Machine 2==&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-l102&quot;&gt;Ligne 102 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 102 :&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;  ip link set macsec0 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 macsec0 up&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;  ip address add &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;macsec0 &lt;/del&gt;10.0.0.2/24 dev macsec0&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;  ip address add 10.0.0.2/24 dev macsec0&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=Macsec_-_linux&amp;diff=1473&amp;oldid=prev</id>
		<title>Ycharbi : Page créée avec « Category:Réseaux_linux  &#039;&#039;MACsec&#039;&#039; ou [https://fr.wikipedia.org/wiki/IEEE_802.1AE IEEE 802.1AE] est la norme de sécurisation de la [https://fr.wikipedia.org/wiki/Couche_liaison_de_donn%C3%A9es couche] [https://fr.wikipedia.org/wiki/Media_access_control MAC] de l{{&#039;}}[https://fr.wikipedia.org/wiki/IEEE IEEE]. Il permet le chiffrement des trames &#039;&#039;Ethernet&#039;&#039; (entre deux pairs sur un [https://fr.wikipedia.org/wiki/R%C3%A9seau_local LAN]) au sein d&#039;un même réseau... »</title>
		<link rel="alternate" type="text/html" href="https://doc.ycharbi.fr/index.php?title=Macsec_-_linux&amp;diff=1473&amp;oldid=prev"/>
		<updated>2023-07-23T14:37:12Z</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;  &amp;#039;&amp;#039;MACsec&amp;#039;&amp;#039; ou [https://fr.wikipedia.org/wiki/IEEE_802.1AE IEEE 802.1AE] est la norme de sécurisation de la [https://fr.wikipedia.org/wiki/Couche_liaison_de_donn%C3%A9es couche] [https://fr.wikipedia.org/wiki/Media_access_control MAC] de l{{&amp;#039;}}[https://fr.wikipedia.org/wiki/IEEE IEEE]. Il permet le chiffrement des trames &amp;#039;&amp;#039;Ethernet&amp;#039;&amp;#039; (entre deux pairs sur un [https://fr.wikipedia.org/wiki/R%C3%A9seau_local LAN]) au sein d&amp;#039;un même réseau... »&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;
&amp;#039;&amp;#039;MACsec&amp;#039;&amp;#039; ou [https://fr.wikipedia.org/wiki/IEEE_802.1AE IEEE 802.1AE] est la norme de sécurisation de la [https://fr.wikipedia.org/wiki/Couche_liaison_de_donn%C3%A9es couche] [https://fr.wikipedia.org/wiki/Media_access_control MAC] de l{{&amp;#039;}}[https://fr.wikipedia.org/wiki/IEEE IEEE]. Il permet le chiffrement des trames &amp;#039;&amp;#039;Ethernet&amp;#039;&amp;#039; (entre deux pairs sur un [https://fr.wikipedia.org/wiki/R%C3%A9seau_local LAN]) au sein d&amp;#039;un même réseau local et, par extension, dans n&amp;#039;importe quel protocole d{{&amp;#039;}}[[:Category:Tunnelisation|encapsulation en surcouche]] de niveau 2.&lt;br /&gt;
&lt;br /&gt;
Publié en 2006 (&amp;#039;&amp;#039;802.1AE-2006&amp;#039;&amp;#039;), la norme prévoyait un chiffrement des trames via le protocole &amp;#039;&amp;#039;GCM-AES-128&amp;#039;&amp;#039; (128 bits) et un amendement de 2011 (&amp;#039;&amp;#039;802.1AEbn-2011&amp;#039;&amp;#039;) a apporté le support des clés de 256 bits. Il a par la suite été complété en 2013 (&amp;#039;&amp;#039;802.1AEbw-2013&amp;#039;&amp;#039;) par l&amp;#039;ajout des suites cryptographiques &amp;#039;&amp;#039;GCM-AES-XPN-128&amp;#039;&amp;#039; et &amp;#039;&amp;#039;GCM-AES-XPN-256&amp;#039;&amp;#039;. Intégré depuis le noyau &amp;#039;&amp;#039;Linux&amp;#039;&amp;#039; 4.6 (2016), &amp;#039;&amp;#039;IEEE 802.1AE&amp;#039;&amp;#039; est utilisable via le paquet &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;iproute2&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;MACSec&amp;#039;&amp;#039; vient se substituer à la trame &amp;#039;&amp;#039;Ethernet&amp;#039;&amp;#039; standard en reprenant ses champs d&amp;#039;origines et en y ajoutant deux supplémentaires :&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Security Tag&amp;#039;&amp;#039;&amp;#039; : extension du champ [https://fr.wikipedia.org/wiki/EtherType EtherType]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Message Authentication Code&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;Integrity Check Value&amp;#039;&amp;#039; ou &amp;#039;&amp;#039;ICV&amp;#039;&amp;#039;) : somme de contrôle de la trame déchiffrée&lt;br /&gt;
&lt;br /&gt;
Une trame 802.1Q passe donc de la structure :&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
|-----&lt;br /&gt;
| adresse MAC dst.&lt;br /&gt;
| adresse MAC src.&lt;br /&gt;
| 802.1Q&lt;br /&gt;
| EtherType/Size&lt;br /&gt;
| Data  &lt;br /&gt;
| [https://fr.wikipedia.org/wiki/Frame_check_sequence FCS]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
à la suivante :&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-----&lt;br /&gt;
| colspan=&amp;quot;6&amp;quot; align=&amp;quot;center&amp;quot; | Authentifié ||  ||  &lt;br /&gt;
|-----&lt;br /&gt;
|| || || || colspan=&amp;quot;3&amp;quot; align=&amp;quot;center&amp;quot; | Chiffré || ||  &lt;br /&gt;
|-----&lt;br /&gt;
| adresse MAC dst.&lt;br /&gt;
| adresse MAC src.&lt;br /&gt;
| MACSec Security Tag&lt;br /&gt;
| 802.1Q&lt;br /&gt;
| EtherType/Size&lt;br /&gt;
| Data  &lt;br /&gt;
| ICV&lt;br /&gt;
| FCS&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Mise en œuvre=&lt;br /&gt;
Deux machines seront utilisées dans l&amp;#039;exemple qui suit. Elles comportent chacune les adresses &amp;#039;&amp;#039;MAC&amp;#039;&amp;#039; suivantes :&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Machine 1&amp;#039;&amp;#039;&amp;#039; : 44:9a:5b:fe:64:cc&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Machine 2&amp;#039;&amp;#039;&amp;#039; : 44:9a:5b:ea:2b:08&lt;br /&gt;
&lt;br /&gt;
==Machine 1==&lt;br /&gt;
Création de l&amp;#039;interface virtuel de chiffrement du trafic&lt;br /&gt;
 ip link add link eth0 macsec0 type macsec encrypt on&lt;br /&gt;
&lt;br /&gt;
Dans la mesure où les trames sont bornées au domaine de diffusion local d&amp;#039;une interface existante, celle nouvellement créée y est attachée et sera à utiliser lorsque les trames devront êtres chiffrées avant envoi (la communication sortant directement d{{&amp;#039;}}&amp;#039;&amp;#039;eth0&amp;#039;&amp;#039; est toujours en clair).&lt;br /&gt;
&lt;br /&gt;
La commande suivante détail les informations des interfaces &amp;#039;&amp;#039;MACSec&amp;#039;&amp;#039;. Plusieurs appairages chiffrés peuvent êtres configurés afin de réaliser une topologie en étoile confidentielle&lt;br /&gt;
 ip macsec show&lt;br /&gt;
&lt;br /&gt;
Retour de la commande&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
3: macsec0: protect on validate strict sc off sa off encrypt on send_sci on end_station off scb off replay off &lt;br /&gt;
    cipher suite: GCM-AES-128, using ICV length 16&lt;br /&gt;
    TXSC: 449a5bfe64cc0001 on SA 0&lt;br /&gt;
    offload: off &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ajout d&amp;#039;un pair&lt;br /&gt;
 ip macsec add macsec0 rx port 1 address 44:9a:5b:ea:2b:08&lt;br /&gt;
&lt;br /&gt;
 ip macsec show&lt;br /&gt;
&lt;br /&gt;
Une ligne &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;RXSC&amp;lt;/syntaxhighlight&amp;gt; a été ajouté&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
3: macsec0: protect on validate strict sc off sa off encrypt on send_sci on end_station off scb off replay off &lt;br /&gt;
    cipher suite: GCM-AES-128, using ICV length 16&lt;br /&gt;
    TXSC: 449a5bfe64cc0001 on SA 0&lt;br /&gt;
    RXSC: 449a5bea2b080001, state on&lt;br /&gt;
    offload: off&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Création d&amp;#039;une clé destinée au chiffrement symétrique&lt;br /&gt;
 dd if=/dev/urandom count=16 bs=1 2&amp;gt;/dev/null | hexdump | cut -c 9- | tr -d &amp;#039; \n&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Attribution de cette clé dans la configuration d&amp;#039;appairage avec la machine 2 pour l&amp;#039;interface &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;macsec0&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 ip macsec add macsec0 tx sa 0 pn 1 on key 00 a150a57510be82fc8c732aa899a28c17&lt;br /&gt;
&lt;br /&gt;
Injection de la clé du pair dans cette même configuration&lt;br /&gt;
 ip macsec add macsec0 rx port 1 address 44:9a:5b:ea:2b:08 sa 0 pn 1 on key 01 ff4c9f44769823abe910326dd8cc8d77&lt;br /&gt;
&lt;br /&gt;
Allumage de l&amp;#039;interface&lt;br /&gt;
 ip link set macsec0 up&lt;br /&gt;
&lt;br /&gt;
Comme précisé plus haut, le trafic ne sera chiffré entre les deux pairs que si l&amp;#039;interface source de l&amp;#039;échange est &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;macsec0&amp;lt;/syntaxhighlight&amp;gt;, aussi, il convient de lui attribuer une adresse &amp;#039;&amp;#039;IP&amp;#039;&amp;#039;&lt;br /&gt;
 ip address add macsec0 10.0.0.1/24 dev macsec0&lt;br /&gt;
&lt;br /&gt;
==Machine 2==&lt;br /&gt;
Les étapes sont les mêmes en adaptant les spécificités liées au pair différent&lt;br /&gt;
&lt;br /&gt;
 ip link add link eth0 macsec0 type macsec encrypt on&lt;br /&gt;
 ip macsec add macsec0 rx port 1 address 44:9a:5b:fe:64:cc&lt;br /&gt;
&lt;br /&gt;
 dd if=/dev/urandom count=16 bs=1 2&amp;gt;/dev/null | hexdump | cut -c 9- | tr -d &amp;#039; \n&amp;#039;&lt;br /&gt;
 ip macsec add macsec0 tx sa 0 pn 1 on key 01 ff4c9f44769823abe910326dd8cc8d77&lt;br /&gt;
 ip macsec add macsec0 rx port 1 address 44:9a:5b:fe:64:cc sa 0 pn 1 on key 00 a150a57510be82fc8c732aa899a28c17&lt;br /&gt;
&lt;br /&gt;
 ip link set macsec0 up&lt;br /&gt;
 ip address add macsec0 10.0.0.2/24 dev macsec0&lt;br /&gt;
&lt;br /&gt;
=Sources=&lt;br /&gt;
* https://developers.redhat.com/blog/2016/10/14/macsec-a-different-solution-to-encrypt-network-traffic&lt;br /&gt;
* https://www.man7.org/linux/man-pages/man8/ip-macsec.8.html&lt;br /&gt;
* https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/16-10/configuration_guide/sec/b_1610_sec_9200_cg/macsec_encryption.html&lt;/div&gt;</summary>
		<author><name>Ycharbi</name></author>
	</entry>
</feed>