Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure OVS VxLAN for ML2

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces ML2 how to configure OVS VxLAN, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.

Open vSwitch supports both VXLAN and GRE overlay network. Because OpenStack has little difference in the configuration and implementation of VXLAN and GRE, only how to implement VXLAN is discussed here.

Enable vxlan network in ML2 configuration

Set the parameters related to vxlan network in / etc/neutron/plugins/ml2/ml2_conf.ini.

Specify that the network type created by an ordinary user is vxlan, while enable l2population mechanism driver, and then specify the range of vxlan.

The above configuration defines the range of vxlan vni as 1001-2000, which is for ordinary users to create vxlan network in their tenants. Because the average user cannot specify that vni,Neutron will automatically take values from this range in order when creating a network.

For admin, there is no restriction on the vni range, and admin can create a vxlan network with a vni range of 1-16777216.

Configure to enable vxlan and l2population in [agent].

Finally, configure VTEP in [ovs].

The bridge corresponding to vxlan tunnel is br-tun.

Local_ip specifies the IP address of the VTEP.

Devstack-controller uses 166.66.16.10, and this IP is configured on the network card eth2.

Devstack-compute01 uses 166.66.16.11, which is configured on the network card eth2.

Initial network structure

After the Neutron service is restarted, view the network configuration through ovs-vsctl show.

Br-int and br-tun are connected through patch port "patch-tun" and "br-tun".

On how to configure ML2 OVS VxLAN to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report