[ovs-discuss] How to Configure two VMs to a vxlan?

Jesse Gross jesse at nicira.com
Wed Jan 14 20:43:41 UTC 2015


On Wed, Jan 14, 2015 at 12:28 AM, Peng <pengyujian5201314 at 126.com> wrote:
> Hi
>
> I'm testing vxlan.
> I have one host with two VMs:
> vm interface ip
> vm1 vmnet1  10.1.0.14/24
> vm2 vmnet2  10.1.0.15/24
>
> The host ip is 10.1.0.13
>
> I want to configure vm1 and vm2 to a vxlan.
>
> ovs-vsctl add-br br1
> ovs-vsctl add-port br1 eth1
> ovs-vsctl add-port br1 vmnet1 --set interface vmnet1 type=vxlan
> option:key=100 option:remote_ip=10.1.0.13
> ovs-vsctl add-port br1 vmnet2 --set interface vmnet2 type=vxlan
> option:key=100 option:remote_ip=10.1.0.13
>
> But vm1 and vm2 cannot ping each other.
>
> How to configure vm1 and vm2 to a vxlan?

VXLAN configuration should be set on a tunnel port instead of the VM
ports directly. There are several tutorials available online, for
example:
http://openvswitch.org/support/config-cookbooks/port-tunneling/

(Just substitute VXLAN for GRE.)



More information about the discuss mailing list