네트워킹 구성요소를 컨트롤러 노드에 설치 및 구성합니다.
# apt-get install neutron-server neutron-linuxbridge-agent \
neutron-dhcp-agent neutron-metadata-agent python-neutronclient
database management, Identity service credentials, service endpoint registration, message queue credentials 에 대한 프롬프트에서 응답합니다.
ML2 플러그인을 선택합니다:
주석
ML2 플러그인을 선택하면 core_plugin 으로 설정하고 /etc/neutron/neutron.conf 파일에서 적절한 값을 입력 채웁니다 (이 경우에는, ml2 로 값을 설정합니다).
/etc/neutron/neutron.conf 파일을 수정하고 다음 작업을 완료합니다:
[DEFAULT] 섹션에서, 부가적인 플러그인을 비활성화합니다:
[DEFAULT]
...
service_plugins =
[DEFAULT] 와 [nova] 섹션에서 네트워크 토폴로지 변경이 발생했을 때 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
Identity 서비스에서 nova 사용자의 암호로 NOVA_PASS 를 변경합니다.
ML2 플러그인은 인스턴스에 대한 layer-2 (브리징과 스위칭) 가상 네트워킹 인프라를 구축하여 리눅스 브릿지 메커니즘을 사용합니다.
/etc/neutron/plugins/ml2/ml2_conf.ini 파일을 수정하고 다음 작업을 진행합니다:
[ml2] 섹션에서 flat, VLAN 네트워크를 활성화합니다:
[ml2]
...
type_drivers = flat,vlan
[ml2] 섹션에서 셀프 서비스 네트워크를 비활성화합니다:
[ml2]
...
tenant_network_types =
[ml2] 섹션에서 리눅스 브릿지 체계를 활성화합니다:
[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
리눅스 브릿지 에이전트는 인스턴스에 대한 layer-2(브릿징과 스위칭) 가상 네트워킹 인프라를 구축하고 시큐리티 그룹을 처리합니다.
Edit the /etc/neutron/plugins/ml2/linuxbridge_agent.ini file and complete the following actions:
[linux_bridge] 섹션에서, 프로바이더 물리 네트워크 인터페이스에 프로바이더 가상 네트워크를 매핑합니다:
[linux_bridge]
physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME
물리적인 공용 네트워크 인터페이스를 기본으로 하여 PROVIDER_INTERFACE_NAME 을 변경합니다. 더 많은 정보는 호스트 네트워킹 를 살펴봅니다.
[vxlan] 섹션에서, VXLAN 오버레이 네트워크를 비활성합니다:
[vxlan]
enable_vxlan = False
[securitygroup] 섹션에서 시큐리티 그룹을 활성화시키고 리눅스 브릿지 iptables 방화벽 드라이버를 구성합니다:
[securitygroup]
...
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
DHCP agent 가상 네트워크에대한 DHCP 서비스를 제공합니다.
/etc/neutron/dhcp_agent.ini 파일을 수정하고 다음 작업을 완료합니다:
[DEFAULT] 섹션에서 Linux 브릿지 인터페이스 드라이버, Dnsmasq DHCP 드라이버를 구성하고 격리된 메타데이터를 활성화하여 프로바이더 네트워크 상의 인스턴스가 네트워크에서 메타데이터를 액세스하도록 합니다:
[DEFAULT]
...
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.