0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【2024年08月版】Proxmoxで分散スイッチ構築メモ【vxlan, ハブ・アンド・スポーク型】

Last updated at Posted at 2024-08-17

はじめに

vSphere上で使っていた分散スイッチみたいなのを、
Proxmox上で、Open vSwitch でつくってみたいな

とういことで、VXLANでつないでみるメモ

Google検索しても理解できるレベルの資料がなかったので、ChatGPT先生に教えてもらいました

構成

今回は、Node A が SPOF になるけど、簡単なので、以下のハブ・アンド・スポーク型の構成で作ってみる

メッシュ型の記事はこちら ↓
【2024年08月版】Proxmoxで分散スイッチ構築メモ【vxlan, メッシュ型】
GREの記事はこちら ↓
【2024年08月版】Proxmoxで分散スイッチ構築メモ【gre, メッシュ型】

設定方法

Node A

ovs-vsctl add-port vmbr1 vxlan2_B -- set interface vxlan2_B type=vxlan options:remote_ip=10.0.254.112 options:key=101
ovs-vsctl add-port vmbr1 vxlan2_C -- set interface vxlan2_C type=vxlan options:remote_ip=10.0.254.113 options:key=101
ovs-vsctl add-port vmbr1 vxlan2_D -- set interface vxlan2_D type=vxlan options:remote_ip=10.0.254.114 options:key=101

Node B, C, D

ovs-vsctl add-port vmbr1 vxlan2_A -- set interface vxlan2_A type=vxlan options:remote_ip=10.0.254.111 options:key=101

確認

設定の確認

Node A

$ ovs-vsctl list-ports vmbr1
vxlan2_B
vxlan2_C
vxlan2_D

Node B, C, D

$ ovs-vsctl list-ports vmbr1
vxlan2_A

疎通の確認

  • vmbr1 に直接IPを指定して(たとえば172.16.254.0/24など)、互いにPingで疎通確認
  • vmbr1 をVMやLXCで利用して疎通確認

さいごに

かんたんでしたね

関連リンク

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?