Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[電子情報局 仮想情報装置課] VXLANつながらない #20

Open
bgpat opened this issue Mar 4, 2018 · 4 comments
Open

[電子情報局 仮想情報装置課] VXLANつながらない #20

bgpat opened this issue Mar 4, 2018 · 4 comments
Assignees

Comments

@bgpat
Copy link
Member

bgpat commented Mar 4, 2018

https://contest.svc.icttoracon.net/#/problems/50/31/issues

満点: 450 / 通過チーム数: 0 / 依存: メールが届かない /
補足事項:
問題:

VXLANでの通信を検証するように依頼された。

異なるサーバ上のVXLANインターフェースがお互いに通信できるようにしてほしいとのことだ。
サーバ同士はソフトウェアルータを介してL3の疎通性がある。VXLANのアンダーレイ通信には、マルチキャストルーティングを利用してほしいそうだ。

前任者も設定を行ったようなのだが、上手くいかずに諦めてしまったらしい。
どうにか設定を変更して、VXLANインターフェース同士が通信できるようにしてほしい。
制約

VXLANインターフェース間の通信は、マルチキャストルーティングを用いたVXLAN通信でなければならない。
スタート

Server 1/2のVXLANインターフェース vxlan42 から Server 2/1のVXLANインターフェース vxlan42 へ ping が通らない。
ゴール

Server 1/2のVXLANインターフェース vxlan42 から Server 2/1のVXLANインターフェース vxlan42 へ ping が通る。
アクセス情報

VM IPアドレス ユーザ パスワード
Server 1 192.168.13.67/26 admin efz7GRGc
Server 2 192.168.13.131/26 admin efz7GRGc
Router 192.168.13.2/26 admin efz7GRGc
@fono09
Copy link
Member

fono09 commented Mar 4, 2018

UDP multicastですでもVyOSは中継してくれない
Routerにpimdを入れたい

pimdはDebianのパッケージで入れる
https://wiki.vyos.net/wiki/FAQ#How_do_I_install_Debian_packages.3F

Pimd on VyOSの設定
https://wiki.vyos.net/wiki/Pimd#Starting_Pimd

@bgpat
Copy link
Member Author

bgpat commented Mar 4, 2018

pimd を入れた

apt-get install pimd

@bgpat
Copy link
Member Author

bgpat commented Mar 4, 2018

/etc/network/interfaces

Server 1

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# See LP: #1262951

auto ens3
iface ens3 inet static
    address 192.168.13.67/26
    gateway 192.168.13.66
    post-up ip link set ens3 multicast on

auto vxlan42
iface vxlan42 inet manual
    pre-up ip link add vxlan42 type vxlan id 42 group 239.255.255.255 ttl 10 || true
    up ip address add 10.0.0.2/24 dev vxlan42 && ip link set vxlan42 up
    down ip link set vxlan42 down
    post-down ip link del vxlan42 || true

Server 2

# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# See LP: #1262951

auto ens3
iface ens3 inet static
    address 192.168.13.131/26
    gateway 192.168.13.130
    post-up ip link set ens3 multicast on

auto vxlan42
iface vxlan42 inet manual
    pre-up ip link add vxlan42 type vxlan id 42 group 239.255.255.255 ttl 10 || true
    up ip address add 10.0.0.3/24 dev vxlan42 && ip link set vxlan42 up
    down ip link set vxlan42 down
    post-down ip link del vxlan42 || true

@fono09 fono09 self-assigned this Mar 4, 2018
@fono09
Copy link
Member

fono09 commented Mar 4, 2018

お疲れ様です。team10のkstmです。
問題 VXLANつながらない
の解答を送らせていただきます。

Routerにつきましては、debianのパッケージを有効にし、
Pimdをインストールさせていただきました。

これはVXLANがIP multicastを利用するものの、
VyOSは標準ではIP multicastをルーティングしないため、
Pimdを導入し、IP multicastを利用する、VXLANを疎通させるものでございます。

# apt-get install pimd
# service pimd start

また、それぞれのノードに関して、
設定ファイルを調整させていただきました。
標準のVXLANでございますとTTLが1となっており、
ルータを挟むことに寄って疎通が不能となります。

そのため、TTLを10と設定させていただきました。
/etc/network/interfacesの設定例は下記のとおりとなります。

auto vxlan42
iface vxlan42 inet manual
    pre-up ip link add vxlan42 type vxlan id 42 group 239.255.255.255 ttl 10 || true
    up ip address add 10.0.0.3/24 dev vxlan42 && ip link set vxlan42 up
    down ip link set vxlan42 down
    post-down ip link del vxlan42 || true

以上、用件のみとなりますが、何卒よろしくお願いいたします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants