コントローラー ノードにおいて、Networking のコンポーネントのインストールと設定を行います。
# apt-get install neutron-server neutron-linuxbridge-agent \
neutron-dhcp-agent neutron-metadata-agent python-neutronclient
Respond to prompts for database management, Identity service credentials, service endpoint registration, and message queue credentials.
ML2 プラグインを選択します。
注釈
ML2 プラグインを選択すると、/etc/neutron/neutron.conf ファイルのオプション core_plugin にも適切な値が入ります (この場合は値 ml2 が設定されます)。
/etc/neutron/neutron.conf ファイルを編集し、以下の作業をすべて行います。
[DEFAULT] セクションで、他のプラグインを無効にします。
[DEFAULT]
...
service_plugins =
[DEFAULT] セクションと [nova] セクションで、Networking が Compute にネットワークトポロジーの変更を通知するよう設定します。
[DEFAULT]
...
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
[nova]
...
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = NOVA_PASS
NOVA_PASS は Identity サービスで nova ユーザー用に選択したパスワードで置き換えます。
ML2 プラグインは、Linux ブリッジ機構を使用して、インスタンス用の L2 (ブリッジとスイッチ) 仮想ネットワークインフラを構築します。
/etc/neutron/plugins/ml2/ml2_conf.ini ファイルを編集して、以下の作業をすべて行います。
[ml2] セクションで、フラットネットワーク、VLAN ネットワークを有効にします。
[ml2]
...
type_drivers = flat,vlan
[ml2] セクションで、セルフサービスネットワークを無効にします。
[ml2]
...
tenant_network_types =
[ml2] セクションで、Linux ブリッジ機構を有効にします。
[ml2]
...
mechanism_drivers = linuxbridge
警告
ML2 プラグインの設定後に、type_drivers オプションから値を削除すると、データベース不整合が発生する可能性があります。
[ml2] セクションで、ポートセキュリティー拡張ドライバーを有効にします。
[ml2]
...
extension_drivers = port_security
[ml2_type_flat] セクションで、プロバイダー仮想ネットワークをフラットネットワークとして設定します。
[ml2_type_flat]
...
flat_networks = provider
[securitygroup] セクションで、 ipset を有効にし、セキュリティーグループルールの効率性を向上させます。
[securitygroup]
...
enable_ipset = True
Linux ブリッジエージェントは、インスタンス用の L2 (ブリッジおよびスイッチ) 仮想ネットワークインフラを構築して、セキュリティーグループを処理します。
/etc/neutron/plugins/ml2/linuxbridge_agent.ini ファイルを編集し、以下の作業をすべて行います。
[linux_bridge] セクションにおいて、プロバイダー仮想ネットワークをプロバイダー物理ネットワークのインターフェースに対応付けます。
[linux_bridge]
physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME
PROVIDER_INTERFACE_NAME をプロバイダー物理ネットワークのインターフェース名で置き換えます。詳細は ホストネットワーク を参照してください。
[vxlan] セクションにおいて、VXLAN オーバーレイネットワークを無効にします。
[vxlan]
enable_vxlan = False
[securitygroup] セクションで、セキュリティグループを有効にし、 Linux ブリッジ iptables ファイアウォールドライバーを設定します。
[securitygroup]
...
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
DHCP エージェント は、仮想ネットワーク向けに DHCP サービスを提供します。
/etc/neutron/dhcp_agent.ini ファイルを編集して、以下の作業をすべて行います。
[DEFAULT] セクションにおいて、Linux ブリッジインターフェースドライバー、Dnsmasq DHCP ドライバーを設定して、 isolated metadata を有効にします。これにより、プロバイダーネットワークにあるインスタンスがネットワーク経由でメタデータにアクセスできます。
[DEFAULT]
...
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
Networking コントローラーノードの設定 に戻ります。
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.