Network card settings for OpenStack

Source: Internet
Author: User

The first contact with OpenStack, this piece is more headache, different documents, settings will vary, and can work, in the end which is correct? I'm afraid it's hard to come to a conclusion, here is a summary, the day sent to the mailing list for advice.

The following settings, the final result, is that there is a network card into bridge, I understand bridge, is a switch, the virtual machine on the above can communicate with each other.

The following assumes that the fix IP uses 192.168.100.0/24

One: Single NIC

Often have friends ask, if it is a single NIC, How to set (Https://blog.hpcloud.com/road-essex-part-4-openstack%E2%84%A2-nova-and-horizon)

In the nova.conf file.

public_interface=eth0flat_interface=eth0flat_network_bridge=br100

Because it is a single network card, here is more special.

/etc/network/interface

Staticaddress 192.168.100.1netmask 255.255.255.0BRIDGE_STP offbridge_fd 0

Two: Dual NIC

Dual NIC, easy to understand.

In the nova.conf file.

public_interface=eth0flat_interface=eth1flat_network_bridge=br100

The meaning of the setting here is that eth1 is a bridge.

Eth0 settings, like the normal network card settings, you can set the static IP, also can be obtained by DHCP. eth1 settings, I've seen at least 3 different settings

1: Set the NIC into promiscuous mode

Many of these documents are set up, including the famous training organization http://www.mirantis.com/blog/openstack-networking-single-host-flatdhcpmanager/

It is also recommended. Another puppet installation of OpenStack documentation is also recommended

Iface eth1 inet manual up  ifconfig $IFACE 0.0.0.0 up up  ifconfig $IFACE Promisc

2: Do not set any IP

This is the setting I've been using, this is Https://github.com/managedit/openstack-setup

This friend, who should also be a developer of OpenStack, has previously maintained Diablo's Deb package updates

Auto Eth1iface eth1 inet manualup ifconfig eth1 up

3: Set IP

The network segment with the fix IP, for example fix IP is: 192.168.100.0/24, the first 10 IP addresses, left for the server to use. Then we can set the IP for eth1.

Http://www.hastexo.com/resources/docs/installing-openstack-essex-4-ubuntu-1204-precise-pangolin/step-1-prepare-your-system

In nova.conf there is a parameter

flat_network_dhcp_start=192.168.100.11

Previously reserved IP, it can be used to set eth1 IP, after starting nova-network, this IP will become the gateway of all virtual machines. If you are using the Mutilhost design.

ref:http://www.chenshake.com/openstack-settings-on-the-network-card/

Network card settings for OpenStack

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.