Networking Option 2: Self-service networks¶
Configure the Networking components on a compute node.
Configure the Open vSwitch agent¶
The Open vSwitch agent builds layer-2 (bridging and switching) virtual networking infrastructure for instances and handles security groups.
- Edit the - /etc/neutron/plugins/ml2/openvswitch_agent.inifile and complete the following actions:- In the - [ovs]section, map the provider virtual network to the provider physical bridge and configure the IP address of the physical network interface that handles overlay networks:- [ovs] bridge_mappings = provider:PROVIDER_BRIDGE_NAME local_ip = OVERLAY_INTERFACE_IP_ADDRESS - Replace - PROVIDER_BRIDGE_NAMEwith the name of the bridge connected to the underlying provider physical network. See Host networking and Open vSwitch: Provider networks for more information.- Also replace - OVERLAY_INTERFACE_IP_ADDRESSwith the IP address of the underlying physical network interface that handles overlay networks. The example architecture uses the management interface to tunnel traffic to the other nodes. Therefore, replace- OVERLAY_INTERFACE_IP_ADDRESSwith the management IP address of the compute node. See Host networking for more information.
- Ensure - PROVIDER_BRIDGE_NAMEexternal bridge is created and- PROVIDER_INTERFACE_NAMEis added to that bridge- # ovs-vsctl add-br $PROVIDER_BRIDGE_NAME # ovs-vsctl add-port $PROVIDER_BRIDGE_NAME $PROVIDER_INTERFACE_NAME 
- In the - [agent]section, enable VXLAN overlay networks and enable layer-2 population:- [agent] tunnel_types = vxlan l2_population = true 
- In the - [securitygroup]section, enable security groups and configure the Open vSwitch native or the hybrid iptables firewall driver:- [securitygroup] # ... enable_security_group = true firewall_driver = openvswitch #firewall_driver = iptables_hybrid 
- In the case of using the hybrid iptables firewall driver, ensure your Linux operating system kernel supports network bridge filters by verifying all the following - sysctlvalues are set to- 1:- net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-ip6tables - To enable networking bridge support, typically the - br_netfilterkernel module needs to be loaded. Check your operating system’s documentation for additional details on enabling this module.
 
Return to Networking compute node configuration.
