~annegentle/openstack-devel/working

« back to all changes in this revision

Viewing changes to doc/build/docbook-xsl-1.76.1/webhelp/docs 2/content/ch06s02.html

  • Committer: Anne Gentle
  • Date: 2011-01-28 23:01:29 UTC
  • Revision ID: anne@openstack.org-20110128230129-73peiiwoeebab2f9
Updates and edits while testing docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 
2
<!DOCTYPE html
 
3
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:exsl="http://exslt.org/common" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook"><head>
 
5
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
 
6
<title>Configuring Networking on the Compute Node</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/><link rel="home" href="index.html" title="OpenStack Compute Administration Manual"/><link rel="up" href="ch06.html" title="Chapter 6. Networking"/><link rel="prev" href="ch06s01.html" title="Networking Options"/><link rel="next" href="ch07.html" title="Chapter 7. Running OpenStack Compute"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><script type="text/javascript">
 
7
            //The id for tree cookie
 
8
            var treeCookieId = "treeview-2255";
 
9
            var language = "en";
 
10
            var w = new Object();
 
11
            //Localization
 
12
            txt_filesfound = 'Results';
 
13
            txt_enter_at_least_1_char = "You must enter at least one character.";
 
14
            txt_browser_not_supported = "Your browser is not supported. Use of Mozilla Firefox is recommended.";
 
15
            txt_please_wait = "Please wait. Search in progress...";
 
16
            txt_results_for = "Results for: ";
 
17
        </script><style type="text/css">
 
18
            input {
 
19
            margin-bottom: 5px;
 
20
            margin-top: 2px;
 
21
            }
 
22
 
 
23
            .folder {
 
24
            display: block;
 
25
            height: 22px;
 
26
            padding-left: 20px;
 
27
            background: transparent url(../common/jquery/treeview/images/folder.gif) 0 0px no-repeat;
 
28
            }
 
29
            
 
30
        </style><link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/><link rel="stylesheet" type="text/css" href="../common/css/positioning.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/treeview/jquery.treeview.css"/><script type="text/javascript" src="../common/jquery/jquery-1.4.2.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery-ui-1.8.2.custom.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery.cookie.js"><!----></script><script type="text/javascript" src="../common/jquery/treeview/jquery.treeview.min.js"><!----></script><script type="text/javascript" src="search/htmlFileList.js"><!----></script><script type="text/javascript" src="search/htmlFileInfoList.js"><!----></script><script type="text/javascript" src="search/nwSearchFnt.js"><!----></script><script type="text/javascript" src="search/stemmers/en_stemmer.js"/><script type="text/javascript" src="search/index-1.js"><!----></script><script type="text/javascript" src="search/index-2.js"><!----></script><script type="text/javascript" src="search/index-3.js"><!----></script></head><body><div id="header"><img src="../common/images/openstack-logo.png" alt="OpenStack Documentation" width="157" height="47"/><p class="breadcrumbs"><a href="#">OpenStack Manuals</a><a href="#">Object Storage</a></p><h1>Configuring Networking on the Compute Node<br/>Chapter 6. Networking</h1><div id="navheader" align="right"><!----><table class="navLinks"><tr><td><a id="showHideButton" onclick="showHideToc();" class="pointLeft" title="Hide TOC tree">Sidebar
 
31
                            </a></td><td><a accesskey="p" class="navLinkPrevious" href="ch06s01.html">Prev</a>
 
32
                                        |
 
33
                                        <a accesskey="u" class="navLinkUp" href="ch06.html">Up</a>
 
34
                                    |
 
35
                                    <a accesskey="n" class="navLinkNext" href="ch07.html">Next</a></td></tr></table></div></div><div id="content"><!----><div class="section" title="Configuring Networking on the Compute Node"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="d5e400"/>Configuring Networking on the Compute Node</h2></div></div></div>
 
36
        <p>To configure the Compute node's networking for the VM images, the overall steps are:</p>
 
37
            
 
38
                    <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
 
39
                                <p>Set the --network-manager flag in nova.conf.</p>
 
40
                            </li><li class="listitem">
 
41
                        <p>Use the <code class="code">nova-manage network create CIDR n n</code> command to
 
42
                            create the subnet that the VMs reside on.</p>
 
43
                    </li><li class="listitem">
 
44
                        <p>Integrate the bridge with your network. </p>
 
45
                    </li></ol></div>
 
46
        <p>By default, Compute uses the VLAN Network Mode. You choose the networking mode for your
 
47
            virtual instances in the nova.conf file. Here are the three possible options: </p>
 
48
        <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
 
49
                <p>--network_manager = nova.network.manager.FlatManager</p>
 
50
                <p>Simple, non-VLAN networking</p>
 
51
            </li><li class="listitem">
 
52
                <p>--network_manager = nova.network.manager.FlatDHCPManager</p>
 
53
                <p>Flat networking with DHCP</p>
 
54
            </li><li class="listitem">
 
55
                <p>--network_manager = nova.network.manager.VlanManager</p>
 
56
                <p>VLAN networking with DHCP. This is the Default if no network manager is
 
57
                    defined in nova.conf. </p>
 
58
            </li></ul></div>
 
59
        <p>Use the "nova-manage network create 192.168.0.0/24 1 255" command to create the subnet
 
60
            that your VMs will run on. </p><div class="section" title="Configuring Flat Networking"><div class="titlepage"><div><div><h3 class="title"><a id="d5e423"/>Configuring Flat Networking</h3></div></div></div>
 
61
            <p>Ensure that your nova.conf file contains the line:</p>
 
62
            <p>
 
63
                </p><div class="literallayout"><p>--network_manager = nova.network.manager.FlatManager</p></div><p>
 
64
            </p>
 
65
        <p>Compute defaults to a bridge device named ‘br100’ which is stored in the Nova
 
66
                database, so you can change the name of the bridge device by modifying the entry in
 
67
                the database. </p>
 
68
            <p>Set the compute node's external IP address to be on the bridge and add eth0 to
 
69
                that bridge. To do this, edit your network interfaces configuration to look like the
 
70
                following example: </p>
 
71
        <p>
 
72
            </p><div class="literallayout"><p>&lt; begin /etc/network/interfaces &gt; <br/>
 
73
# The loopback network interface <br/>
 
74
auto lo <br/>
 
75
iface lo inet loopback <br/>
 
76
<br/>
 
77
# Networking for OpenStack Compute <br/>
 
78
auto br100 <br/>
 
79
<br/>
 
80
iface br100 inet dhcp <br/>
 
81
    bridge_ports        eth0 <br/>
 
82
    bridge_stp           off <br/>
 
83
    bridge_maxwait   0 <br/>
 
84
    bridge_fd            0 <br/>
 
85
&lt; end /etc/network/interfaces &gt; </p></div><p>
 
86
        </p>
 
87
        <p>Next, restart networking to apply the changes: <code class="code">sudo /etc/init.d/networking
 
88
        restart</code></p></div>
 
89
                <div class="section" title="Configuring Flat DHCP Networking"><div class="titlepage"><div><div><h3 class="title"><a id="d5e434"/>Configuring Flat DHCP Networking</h3></div></div></div><p>FlatDHCP doesn't create VLANs, it creates a bridge. This bridge works just fine on a single
 
90
                host, but when there are multiple hosts, traffic needs a way to get out of the
 
91
                bridge onto a physical interface. Be careful when setting up --flat_interface, if
 
92
                you specify an interface that already has an IP it will break and if this is the
 
93
                interface you are connecting through with SSH, you cannot fix it unless you have
 
94
                ipmi/console access.</p>
 
95
            <p>If you have an unused interface on your hosts that has connectivity with no ip
 
96
                address, you can simply tell FlatDHCP to bridge into the interface by specifying
 
97
                --flat_interface=&lt;interface&gt; in your flagfile. The network host will
 
98
                automatically add the gateway ip to this bridge. You can also add the interface to
 
99
                br100 manually and not set flat_interface. If this is the case for you, edit your
 
100
                nova.conf file to contain the following lines: </p>
 
101
            <p>
 
102
                </p><div class="literallayout"><p>--dhcpbridge_flagfile=/etc/nova/nova.conf<br/>
 
103
--dhcpbridge=/usr/bin/nova-dhcpbridge<br/>
 
104
--network_manager=nova.network.manager.FlatDHCPManager<br/>
 
105
--flat_network_dhcp_start=10.0.0.2<br/>
 
106
--flat_interface=eth2<br/>
 
107
--flat_injected=False<br/>
 
108
--public_interface=eth0</p></div><p>
 
109
            </p>
 
110
            <p>Integrate your network interfaces to match this configuration.</p></div>
 
111
                <div class="section" title="Configuring VLAN Networking"><div class="titlepage"><div><div><h3 class="title"><a id="d5e441"/>Configuring VLAN Networking</h3></div></div></div><p>TBW</p></div>
 
112
                <div class="section" title="Enabling Ping and SSH on VMs"><div class="titlepage"><div><div><h3 class="title"><a id="d5e444"/>Enabling Ping and SSH on VMs</h3></div></div></div>
 
113
        <p>Be sure you enable access to your VMs by using the ‘euca-authorize’ command. Below,
 
114
            you will find the commands to allow ‘ping’ and ‘ssh’ to your VMs: </p>
 
115
        <div class="literallayout"><p>euca-authorize -P icmp -t -1:-1 default <br/>
 
116
euca-authorize -P tcp -p 22 default</p></div><p>If
 
117
            you still cannot ping or SSH your instances after issuing the ‘euca-authorize’ commands,
 
118
            look at the number of ‘dnsmasq’ processes that are running. If you have a running
 
119
            instance, check to see that TWO ‘dnsmasq’ processes are running. If not, perform the
 
120
            following: <code class="code">killall dnsmasq service nova-network restart</code></p></div></div><script type="text/javascript" src="../common/main.js"><!----></script><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch06s01.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></div><div><div id="leftnavigation" style="padding-top:3px; background-color:white;"><div id="tabs"><ul><li><a href="#treeDiv"><span class="contentsTab">Contents</span></a></li><li><a href="#searchDiv"><span class="searchTab">Search</span></a></li></ul><div id="treeDiv"><img src="../common/images/loading.gif" alt="loading table of contents..." id="tocLoading" style="display:block;"/><div id="ulTreeDiv" style="display:none"><ul id="tree" class="filetree"><li><span class="file"><a href="ch01.html">Getting Started with OpenStack</a></span><ul><li><span class="file"><a href="ch01s01.html">What is OpenStack?</a></span></li><li><span class="file"><a href="ch01s02.html">Components of OpenStack</a></span></li><li><span class="file"><a href="ch01s03.html">Why Cloud?</a></span></li></ul></li><li><span class="file"><a href="ch02.html">Introduction to OpenStack Compute</a></span><ul><li><span class="file"><a href="ch02s01.html">Users and Projects</a></span></li><li><span class="file"><a href="ch02s02.html">Images and Instances</a></span></li></ul></li><li><span class="file"><a href="ch03.html">Introduction to OpenStack Imaging Service</a></span><ul><li><span class="file"><a href="ch03s01.html">Overview of  Architecture</a></span></li><li><span class="file"><a href="ch03s02.html">OpenStack Imaging Service API Server</a></span></li><li><span class="file"><a href="ch03s03.html">OpenStack Imaging Service Registry Servers</a></span></li></ul></li><li><span class="file"><a href="ch04.html">Installing and Configuring OpenStack Compute</a></span><ul><li><span class="file"><a href="ch04s01.html">System Requirements</a></span></li><li><span class="file"><a href="ch04s02.html">Installing OpenStack Compute on Ubuntu </a></span><ul><li><span class="file"><a href="ch04s02.html#d5e155">Example Installation Architecture</a></span></li><li><span class="file"><a href="ch04s02.html#d5e167">Scripted Installation</a></span></li><li><span class="file"><a href="ch04s02.html#d5e201">Manual Installation</a></span><ul><li><span class="file"><a href="ch04s02.html#d5e205">Installing the Cloud Controller</a></span><ul><li><span class="file"><a href="ch04s02.html#d5e226">Setting up the SQL Database (MySQL) on the Cloud Controller</a></span></li></ul></li><li><span class="file"><a href="ch04s02.html#d5e242">Installing the Compute Node</a></span></li><li><span class="file"><a href="ch04s02.html#d5e252">Restart All Relevant Services on the Compute Node</a></span></li></ul></li></ul></li><li><span class="file"><a href="ch04s03.html">Configuring OpenStack Compute</a></span><ul><li><span class="file"><a href="ch04s03.html#d5e260">Set Up OpenStack Compute Environment on the Compute Node</a></span></li><li><span class="file"><a href="ch04s03.html#d5e269">Create Certifications</a></span></li><li><span class="file"><a href="ch04s03.html#d5e276">Setting Flags in the nova.conf File</a></span></li><li><span class="file"><a href="ch04s03.html#d5e336">Enable Access to VMs on the Compute Node</a></span></li></ul></li></ul></li><li><span class="file"><a href="ch05.html">Installing and Configuring OpenStack Imaging Service</a></span><ul><li><span class="file"><a href="ch05s01.html">System Requirements</a></span></li><li><span class="file"><a href="ch05s02.html">Installing OpenStack Imaging Service on Ubuntu </a></span><ul><li><span class="file"><a href="ch05s02.html#d5e361">Example Installation Architecture</a></span></li><li><span class="file"><a href="ch05s02.html#d5e364">Installing the OpenStack Imaging Service</a></span><ul><li><span class="file"><a href="ch05s02.html#d5e379">Setting up the SQL Database</a></span></li></ul></li></ul></li></ul></li><li><span class="file"><a href="ch06.html">Networking</a></span><ul><li><span class="file"><a href="ch06s01.html">Networking Options</a></span></li><li id="webhelp-currentid"><span class="file"><a href="ch06s02.html">Configuring Networking on the Compute Node</a></span><ul><li><span class="file"><a href="ch06s02.html#d5e423">Configuring Flat Networking</a></span></li><li><span class="file"><a href="ch06s02.html#d5e434">Configuring Flat DHCP Networking</a></span></li><li><span class="file"><a href="ch06s02.html#d5e441">Configuring VLAN Networking</a></span></li><li><span class="file"><a href="ch06s02.html#d5e444">Enabling Ping and SSH on VMs</a></span></li></ul></li></ul></li><li><span class="file"><a href="ch07.html">Running OpenStack Compute</a></span><ul><li><span class="file"><a href="ch07s01.html">Understanding How Compute Runs Clouds</a></span></li><li><span class="file"><a href="ch07s02.html">Understanding the Compute Service Architecture</a></span><ul><li><span class="file"><a href="ch07s02.html#d5e474">API Server</a></span></li><li><span class="file"><a href="ch07s02.html#d5e478">Message Queue</a></span></li><li><span class="file"><a href="ch07s02.html#d5e482">Compute Worker</a></span></li><li><span class="file"><a href="ch07s02.html#d5e498">Network Controller</a></span></li><li><span class="file"><a href="ch07s02.html#d5e508">Volume Workers</a></span></li></ul></li><li><span class="file"><a href="ch07s03.html">Managing the Cloud</a></span><ul><li><span class="file"><a href="ch07s03.html#d5e523">Using the nova-manage command</a></span></li></ul></li><li><span class="file"><a href="ch07s04.html">Managing Compute Users</a></span><ul><li><span class="file"><a href="ch07s04.html#d5e539">Credentials</a></span></li><li><span class="file"><a href="ch07s04.html#d5e545">Role Based Access Control</a></span></li></ul></li></ul></li><li><span class="file"><a href="ch08.html">OpenStack Interfaces</a></span><ul><li><span class="file"><a href="ch08s01.html">System Requirements</a></span></li><li><span class="file"><a href="ch08s02.html">Installation Steps</a></span><ul><li><span class="file"><a href="ch08s02.html#d5e593">Get the source for both projects</a></span></li><li><span class="file"><a href="ch08s02.html#d5e604">(Optional) Build django-nova</a></span></li><li><span class="file"><a href="ch08s02.html#d5e622">Build and Configure Openstack-Dashboard</a></span></li><li><span class="file"><a href="ch08s02.html#d5e646">Run the Server</a></span></li></ul></li></ul></li><li><span class="file"><a href="ch09.html">OpenStack Compute Tutorials</a></span><ul><li><span class="file"><a href="ch09s01.html">Running Your First Elastic Web Application on the Cloud</a></span><ul><li><span class="file"><a href="ch09s01.html#d5e668">Part I: Setting Up the Cloud Infrastructure</a></span><ul><li><span class="file"><a href="ch09s01.html#d5e671">Configuring the network</a></span></li><li><span class="file"><a href="ch09s01.html#d5e693">Ensure the Database is Up-to-date</a></span></li><li><span class="file"><a href="ch09s01.html#d5e697">Creating a user</a></span></li><li><span class="file"><a href="ch09s01.html#d5e704">Creating a project and related credentials</a></span></li></ul></li><li><span class="file"><a href="ch09s01.html#d5e720">Part II: Getting Virtual Machines to Run the Virtual Servers</a></span></li><li><span class="file"><a href="ch09s01.html#d5e731">Part III: Installing the Needed Software for the Web-Scale Scenario</a></span><ul><li><span class="file"><a href="ch09s01.html#d5e740">On the first VM, install Wordpress</a></span></li><li><span class="file"><a href="ch09s01.html#d5e750">On a second VM, install MySQL</a></span></li><li><span class="file"><a href="ch09s01.html#d5e754">On a third VM, install Memcache</a></span></li><li><span class="file"><a href="ch09s01.html#d5e759">Configure the Wordpress Memcache plugin</a></span></li></ul></li></ul></li></ul></li><li><span class="file"><a href="ch10.html">Support and Troubleshooting</a></span><ul><li><span class="file"><a href="ch10s01.html">Community Support</a></span><ul><li><span class="file"><a href="ch10s01.html#d5e768">The Launchpad Answers area </a></span></li><li><span class="file"><a href="ch10s01.html#d5e773">OpenStack mailing list</a></span></li><li><span class="file"><a href="ch10s01.html#d5e778">The OpenStack Wiki search </a></span></li><li><span class="file"><a href="ch10s01.html#d5e781">The Launchpad Bugs area </a></span></li><li><span class="file"><a href="ch10s01.html#d5e797">The OpenStack IRC channel </a></span></li><li><span class="file"><a href="ch10s01.html#d5e800">OpenStack Mailing Lists </a></span></li></ul></li><li><span class="file"><a href="ch10s02.html">Troubleshooting OpenStack Object Storage</a></span><ul><li><span class="file"><a href="ch10s02.html#d5e806">Handling Drive Failure</a></span></li><li><span class="file"><a href="ch10s02.html#d5e810">Handling Server Failure</a></span></li><li><span class="file"><a href="ch10s02.html#d5e815">Detecting Failed Drives</a></span></li></ul></li><li><span class="file"><a href="ch10s03.html">Troubleshooting OpenStack Compute</a></span><ul><li><span class="file"><a href="ch10s03.html#d5e822">Log files for OpenStack Compute</a></span></li><li><span class="file"><a href="ch10s03.html#d5e826">Common Errors and Fixes for OpenStack Compute</a></span></li></ul></li></ul></li></ul></div></div><div id="searchDiv"><div id="search"><form onsubmit="Verifie(ditaSearch_Form);return false" name="ditaSearch_Form" class="searchForm"><fieldset class="searchFieldSet"><legend>Search</legend><center><input id="textToSearch" name="textToSearch" type="text" class="searchText"/> &nbsp; <input onclick="Verifie(ditaSearch_Form)" type="button" class="searchButton" value="Go" id="doSearch"/></center></fieldset></form></div><div id="searchResults"><center/></div><p class="searchHighlight"><a href="#" onclick="toggleHighlight()">Search Highlighter (On/Off)</a></p></div></div></div></div></body></html>
 
 
b'\\ No newline at end of file'