Openvswitch Vxlan Experiment

Source: Internet
Author: User
Tags openvswitch

OS CentOS 7.4 Upgrade kernel

http://blog.csdn.net/chenhaifeng2016/article/details/78675531


Install Openvswitch

http://blog.csdn.net/chenhaifeng2016/article/details/78674223


Configure Host 1

Ovs-vsctl ADD-BR Br0

Ovs-vsctl ADD-BR BR1

Ovs-vsctl Add-port br0 Enp9s0

Ifconfig Enp9s0 0 up

Ifconfig br0 10.0.0.80/24 up

Route add default GW 10.0.0.1 br0

Ifconfig BR1 192.168.1.1/16 up

Ovs-vsctl add-port BR1 vx1--set interface vx1 Type=vxlan



Configure Host 2

Ovs-vsctl ADD-BR Br0

Ovs-vsctl ADD-BR BR1

Ovs-vsctl Add-port br0 Enp5s0

Ifconfig Enp5s0 0 up

Ifconfig br0 10.0.0.90/24 up

Route add default GW 10.0.0.1 br0

Ifconfig BR1 192.168.2.1/16 up

Ovs-vsctl add-port BR1 vx1--set interface vx1 Type=vxlan



Test



--End--


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.