此内容没有您所选择的语言版本。
7.4. Configure the Plug-in Agent
Configure the agent associated with the plug-in used in your environment. If you are using the ML2 plug-in configure the Open vSwitch agent.
7.4.1. Configure the Open vSwitch Plug-in Agent
You must install and enable the ML2 plug-in before configuring it. See Section 7.2.1.1, “Enable the ML2 Plug-in”.
The Open vSwitch plug-in has a corresponding agent. When the Open vSwitch plug-in is in use, all nodes in the environment that handle data packets must have the agent installed and configured. This includes all Compute nodes and systems hosting the dedicated DHCP and L3 agents.
Note
Open vSwitch support for TCP segmentation offload (TSO) and Generic Segmentation Offload (GSO) to VXLAN and GRE is enabled by default.
Procedure 7.11. Configuring the Open vSwitch Plug-in Agent
- Start the
openvswitch
service:#
systemctl start openvswitch.service
- Configure the
openvswitch
service to start at boot time:#
systemctl enable openvswitch.service
- Each host running the Open vSwitch agent requires an Open vSwitch bridge called
br-int
, which is used for private network traffic. This bridge is created automatically.Warning
Thebr-int
bridge is required for the agent to function correctly. Once created, do not remove or otherwise modify thebr-int
bridge. - Set the value of the
bridge_mappings
configuration key to a comma-separated list of physical networks and the network bridges associated with them:#
openstack-config --set /etc/neutron/plugins/ml2/openvswitch_agent.ini \
ovs bridge_mappings PHYSNET:BRIDGE
Replace PHYSNET with the name of a physical network, and replace BRIDGE with the name of the network bridge. - Start the
neutron-openvswitch-agent
service:#
systemctl start neutron-openvswitch-agent.service
- Configure the
neutron-openvswitch-agent
service to start at boot time:#
systemctl enable neutron-openvswitch-agent.service
- Configure the
neutron-ovs-cleanup
service to start at boot time. This service ensures that the OpenStack Networking agents maintain full control over the creation and management of tap devices:#
systemctl enable neutron-ovs-cleanup.service