Network Node construction for the openstack icehouse Series

Source: Internet
Author: User

Network Node construction for the openstack icehouse Series

In the previous blog post, we will continue to build the control nodes of the openstack icehouse series. The following is an introduction to the environment.

Network nodes: ml2, openvswitch, DHCP, L3, and metadata

Control nodes: MySQL, Keystone, glance, Nova, neutron, dashboard, Cinder

Computing nodes: Nova-compute, qemu-KVM, openvswitch, and ml2

Keystone: Verification

Glance: Image

NOVA: Computing

Neutron: Network

Network setup (Network Node installation)

1. Install software

Apt-Get install-y neutron-plugin-ml2 neutron-plugin-openvswitch-Agent dnsmasq neutron-l3-agent neutron-DHCP-Agent VLAN bridge-utils

2. edit/etc/sysctl. conf.

VI/etc/sysctl. confnet. ipv4.ip _ forward = 1net. ipv4.conf. All. rp_filter = 0net. ipv4.conf. Default. rp_filter = 0

3. Refresh sysctl

Sysctl-P

4. edit/etc/neutron/Neutron. conf.

[Default] auth_strategy = keystonerpc_backend = neutron. openstack. common. RPC. impl_komburabbit_host = controllerreplace core_plugin = neutron. plugins. ml2.plugin. ml2plugin withcore_plugin = ml2service_plugins = plugin = true [plugin] auth_uri = http: // Controller: 5000auth_host = controllerauth_port = plugin = serviceadmin_user = neutronadmin_password = service_pass

5. edit/etc/neutron/l3_agent.ini.

VI/etc/neutron/l3_agent.ini [Default] interface_driver = Neutron. Agent. Linux. interface. ovsinterfacedriveruse_namespaces = true

6. edit/etc/neutron/dhcp_agent.ini.

VI/etc/neutron/dhcp_agent.ini [Default] interface_driver = Neutron. Agent. Linux. interface. ovsinterfacedriverdhcp_driver = Neutron. Agent. Linux. DHCP. dnsmasquse_namespaces = true

7. edit/etc/neutron/metadata_agent.ini

VI/etc/neutron/metadata_agent.ini [Default] auth_url = http: // Controller: 5000/v2.0auth _ region = regionone admin_tenant_name = serviceadmin_user = neutronadmin_password = login = helloopenstack

8. Configure/etc/NOVA. conf on the control node.

VI/etc/NOVA. conf [Default] service_neutron_metadata_proxy = trueneutron_metadata_proxy_shared_secret = helloopenstack service Nova-API restart

9. edit/etc/neutron/plugins/ml2/ml2_conf.ini

[Ml2] type_drivers = protocol = openvswitch [ml2_type_gre] Protocol = 1:1000 [ovs] local_ip = 10.0.1.21tunnel _ type = greenable_tunneling = true [securitygroup] firewall_driver = neutron. agent. linux. iptables_firewall.ovshybridiptablesfirewalldriverenable_security_group = true

10. Restart the openvswitch service.

Service openvswitch-switch restart

11. Create a bridge

Ovs-vsctl add-BR-int VM-internal network ovs-vsctl show: View

Ovs-vsctl add-BR-Ex VM-external network ovs-vsctl del-BR-int: Delete

12. Associate the NIC

Ovs-vsctl add-port Br-ex eth2 eth2: External Nic

13. edit/etc/Network/interfaces

Auto eth2iface eth2 Inet manualup ifconfig $ iface 0.0.0.0 upup IP link set $ iface promisc ondown IP link set $ iface promisc offdown ifconfig $ iface down

14. Restart the NIC

Ifdown eth2 & IFUP eth2 ifdown Br-ex & IFUP Br-ex

15. Restart the neutron Service

Service neutron-plugin-openvswitch-Agent restartservice neutron-DHCP-Agent restartservice neutron-l3-agent restartservice neutron-metadata-Agent restartservice dnsmasq restart

16. Check the neutron service status

Neutron agent-list

This article from "life is an attitude" blog, please be sure to keep this source http://sangh.blog.51cto.com/6892345/1564422

Network Node construction for the openstack icehouse Series

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.