From a263d72a4bf0898ac10fc053b57917876422c795 Mon Sep 17 00:00:00 2001 From: jdubois Date: Thu, 27 Apr 2023 10:28:06 +0200 Subject: [PATCH] =?UTF-8?q?M=C3=A0J=20config=20vlan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoOpenBSD/CARP.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/HowtoOpenBSD/CARP.md b/HowtoOpenBSD/CARP.md index 797ba556..d21c605c 100644 --- a/HowtoOpenBSD/CARP.md +++ b/HowtoOpenBSD/CARP.md @@ -50,7 +50,7 @@ Sur le BACKUP : ### Création d'une interface CARP dans un VLAN -On peut attacher une interface CARP à une interface VLAN. L'interface carp0 sera alors isolée dans le VLAN auquel elle est attachée. +On peut attacher une interface CARP à une interface VLAN. L'interface CARP sera alors isolée dans le VLAN auquel elle est attachée. Pour la création d'un VLAN, voir [VLAN](VLAN) @@ -59,10 +59,13 @@ Pour la création d'un VLAN, voir [VLAN](VLAN) up # cat /etc/hostname.vlan42 -vlandev bnx0 description "VLAN42" +vnetid 42 parent bnx0 +up +description "VLAN42" +inet 192.0.2.1 255.255.255.224 # cat /etc/hostname.carp0 -192.0.2.30/27 carpdev vlan42 pass PASSWORD vhid 1 advskew 128 +192.0.2.30/27 carpdev vlan42 pass PASSWORD vhid 1 advbase 1 advskew 128 ~~~ ## Le droit de préemption