############################### # Neutron - Networking Options ############################### # This interface is what all your api services will be bound to by default. # Additionally, all vxlan/tunnel and storage network traffic will go over this # interface by default. This interface must contain an IPv4 address. # It is possible for hosts to have non-matching names of interfaces - these can # be set in an inventory file per host or per group or stored separately, see # http://docs.ansible.com/ansible/intro_inventory.html # Yet another way to workaround the naming problem is to create a bond for the # interface on all hosts and give the bond name here. Similar strategy can be # followed for other types of interfaces. network_interface: "eth1" # These can be adjusted for even more customization. The default is the same as # the 'network_interface'. These interfaces must contain an IPv4 address. #kolla_external_vip_interface: "{{ network_interface }}" api_interface: "{{ network_interface }}" #storage_interface: "{{ network_interface }}" #cluster_interface: "{{ network_interface }}" #tunnel_interface: "{{ network_interface }}" #dns_interface: "{{ network_interface }}" # This is the raw interface given to neutron as its external network port. Even # though an IP address can exist on this interface, it will be unusable in most # configurations. It is recommended this interface not be configured with any IP # addresses for that reason. neutron_external_interface: "eth0" # Valid options are [ openvswitch, linuxbridge ] neutron_plugin_agent: "openvswitch"
实验环境两节点的网卡分配方式与 Linux Bridge 一致,如下所示:
控制节点三个网卡(eth0, eth1, eth2),计算节点两网卡(eth0, eth1)。
合并 Management 和 API 网络,使用 eth0,IP 段为 192.168.104.0/24。
VM 网络使用 eht1。
控制节点的 eth2 与 External 网络连接,IP 段为 10.10.10.0/24。
网络拓扑
实验环境的网络拓扑如下图所示
这个图在 Linux Bridge 实现中也看到过,唯一的区别是:对于节点中的 “Virtual Network Switch” 我们将用
Open vSwitch 替换掉 Linux Bridge。