Ask Your Question
1

How to connect 2 VM's via VXLAN ?

asked 2016-10-22 17:49:20 -0500

FilipGontko gravatar image

I have task to create 2 VM's .. one as a web server and another as a client and I should connect them via VXLAN. Please how can I do that ? I have no experience with OpenStack. Only things I've read about it but I couln't find out anything about this problem. Please help me!

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
2

answered 2016-10-25 00:27:37 -0500

  1. Can you confirm me that you are creating two vxlan to communicate to each other if yes

    create two vxlan. create router and attache that vxlan to router. create one vm in each vxlan. make sure you have allow ports and protocols in Security group.

if no

create vxlan network. create two vms in vxlan network. make sure you have allow ports and protocols in Security group.

edit flag offensive delete link more

Comments

Thanks it helped me a lot!

FilipGontko gravatar imageFilipGontko ( 2017-02-17 02:39:48 -0500 )edit
2

answered 2016-10-24 16:43:23 -0500

aegiacometti gravatar image

By using the dashboard, first, as admin create the network using "provider network type" as "vxlan" Then create the subnet and associate it to the network. Then create the two VMs assigning their NICs to this two networks.

edit flag offensive delete link more
2

answered 2016-10-25 11:29:48 -0500

mesutaygun gravatar image

ı am working about that network node ovs-vsctl show 199e6b8a-edbc-4bae-8c96-ca0920416127 Manager "ptcp:6640:127.0.0.1" is_connected: true Bridge br-int Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port br-int Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port int-br-ex Interface int-br-ex type: patch options: {peer=phy-br-ex} Bridge br-ex Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port "eno2" Interface "eno2" Port br-ex Interface br-ex type: internal Port "qg-d2975ff2-ac" Interface "qg-d2975ff2-ac" type: internal Port phy-br-ex Interface phy-br-ex type: patch options: {peer=int-br-ex} Bridge br-tun Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} ovs_version: "2.6.0"

compute node ovs-vsctl show 1048f957-d6d1-4639-a6ab-2406e19201f5 Manager "ptcp:6640:127.0.0.1" is_connected: true Bridge br-tun Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port br-tun Interface br-tun type: internal Port "vxlan-c0a8fa5a" Interface "vxlan-c0a8fa5a" type: vxlan options: {df_default="true", in_key=flow, local_ip="192.168.250.70", out_key=flow, remote_ip="192.168.250.90"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Bridge br-int Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port br-int Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} ovs_version: "2.6.0"

but ıcant get a valid ip adress on virtual machine. All service up but sending discover?

edit flag offensive delete link more
0

answered 2017-07-26 07:24:26 -0500

FilipGontko gravatar image

Thank you for your ideas!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-22 17:49:20 -0500

Seen: 357 times

Last updated: Jul 26 '17