Fix prompt usage in admin-guide-cloud
Use # for root and $ for-non root commands. Also fixes some screen markup. Change-Id: I026bd3b4b1fffa1829210fe53112dfd0f122a60c
This commit is contained in:
parent
5c235f5f16
commit
a126bd69cd
@ -466,7 +466,7 @@
|
||||
xlink:href="http://docs.openstack.org/user-guide/content/index.html">
|
||||
<citetitle>OpenStack End User
|
||||
Guide</citetitle></link>.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova --debug list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova --debug list</userinput>
|
||||
<?db-font-size 75%?><computeroutput>connect: (10.0.0.15, 5000)
|
||||
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.0.0.15:5000\r\nContent-Length: 116\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "demoproject", "passwordCredentials": {"username": "demouser", "password": "demopassword"}}}'
|
||||
reply: 'HTTP/1.1 200 OK\r\n'
|
||||
@ -1327,13 +1327,13 @@ echo 'Extra user data here'</computeroutput></screen>
|
||||
<programlisting language="ini">net.ipv4.ip_forward = 1</programlisting>
|
||||
<para>Save the file and run this command to apply the
|
||||
changes:</para>
|
||||
<screen><prompt>$</prompt> <userinput>sysctl -p</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>sysctl -p</userinput></screen>
|
||||
<para>You can also update the setting by restarting
|
||||
the network service.</para>
|
||||
<para>For example, on Ubuntu, run this command:</para>
|
||||
<screen><userinput><prompt>$</prompt>/etc/init.d/procps.sh restart</userinput></screen>
|
||||
<screen><userinput><prompt>#</prompt>/etc/init.d/procps.sh restart</userinput></screen>
|
||||
<para>On RHEL/Fedora/CentOS, run this command:</para>
|
||||
<screen><prompt>$</prompt> <userinput>service network restart</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>service network restart</userinput></screen>
|
||||
</section>
|
||||
<section xml:id="create_list_of_available_floating_ips">
|
||||
<title>Create a list of available floating IP
|
||||
@ -1343,28 +1343,23 @@ echo 'Extra user data here'</computeroutput></screen>
|
||||
<command>nova-manage floating create</command>
|
||||
command to add entries to this list.</para>
|
||||
<para>For example:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage floating create --pool=nova --ip_range=68.99.26.170/31</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage floating create --pool=nova --ip_range=68.99.26.170/31</userinput></screen>
|
||||
<para>You can use the following
|
||||
<command>nova-manage</command> commands to
|
||||
perform floating IP operations:</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<screen><userinput>nova-manage floating list</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage floating list</userinput></screen>
|
||||
<para>Lists the floating IP addresses in the
|
||||
pool.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<screen><userinput>nova-manage floating create
|
||||
--pool=<replaceable>[pool
|
||||
name]</replaceable>
|
||||
--ip_range=<replaceable>[CIDR]</replaceable>
|
||||
</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage floating create --pool=<replaceable>[pool name]</replaceable> --ip_range=<replaceable>[CIDR]</replaceable></userinput></screen>
|
||||
<para>Creates specific floating IPs for either
|
||||
a single address or a subnet.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<screen><userinput>nova-manage floating delete
|
||||
<replaceable>[CIDR]</replaceable></userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage floating delete <replaceable>[CIDR]</replaceable></userinput></screen>
|
||||
<para>Removes floating IP addresses using the
|
||||
same parameters as the create
|
||||
command.</para>
|
||||
@ -1404,7 +1399,7 @@ echo 'Extra user data here'</computeroutput></screen>
|
||||
rights. You can disassociate the project from the
|
||||
network with a scrub command and the project ID as the
|
||||
final parameter:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage project scrub --project=<replaceable><id></replaceable></userinput> </screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage project scrub --project=<replaceable><id></replaceable></userinput></screen>
|
||||
</section>
|
||||
<section xml:id="section_use-multi-nics">
|
||||
<title>Multiple interfaces for your instances
|
||||
@ -1942,23 +1937,23 @@ net.bridge.bridge-nf-call-ip6tables=0</programlisting>
|
||||
<step>
|
||||
<para>For administrators, the standard pattern for
|
||||
executing a nova-manage command is:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage category command <replaceable>[args]</replaceable></userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage category command <replaceable>[args]</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>For example, to obtain a list of all
|
||||
projects:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage project list</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage project list</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Run without arguments to see a list of
|
||||
available command categories:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>You can also run with a category argument
|
||||
such as user to see a list of all commands in
|
||||
that category:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage service</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage service</userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
<simplesect>
|
||||
@ -2113,7 +2108,7 @@ local0.error @@172.20.1.43:1024</programlisting>
|
||||
<step>
|
||||
<para>Look at the running instances, to get the ID
|
||||
of the instance you wish to migrate.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova list</userinput>
|
||||
<computeroutput><![CDATA[+--------------------------------------+------+--------+-----------------+
|
||||
| ID | Name | Status |Networks |
|
||||
+--------------------------------------+------+--------+-----------------+
|
||||
@ -2125,7 +2120,7 @@ local0.error @@172.20.1.43:1024</programlisting>
|
||||
<para>Look at information associated with that
|
||||
instance - our example is vm1 from
|
||||
above.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova show d1df1b5a-70c4-4fed-98b7-423362f2c47c</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova show d1df1b5a-70c4-4fed-98b7-423362f2c47c</userinput>
|
||||
<computeroutput><![CDATA[+-------------------------------------+----------------------------------------------------------+
|
||||
| Property | Value |
|
||||
+-------------------------------------+----------------------------------------------------------+
|
||||
@ -2209,7 +2204,7 @@ HostC p2 5 10240 150
|
||||
<para>Use the <command>nova
|
||||
live-migration</command> command to
|
||||
migrate the instances.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova live-migration d1df1b5a-70c4-4fed-98b7-423362f2c47c HostC</userinput><computeroutput><![CDATA[Migration of d1df1b5a-70c4-4fed-98b7-423362f2c47c initiated.]]></computeroutput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova live-migration d1df1b5a-70c4-4fed-98b7-423362f2c47c HostC</userinput><computeroutput><![CDATA[Migration of d1df1b5a-70c4-4fed-98b7-423362f2c47c initiated.]]></computeroutput></screen>
|
||||
<para>Make sure instances are migrated
|
||||
successfully with <command>nova
|
||||
list</command>. If instances are still running
|
||||
@ -2722,7 +2717,7 @@ done < $volumes_tmp_file</programlisting>
|
||||
<step>
|
||||
<para>In this example, the iscsi session is
|
||||
number 15 for that instance:</para>
|
||||
<screen><prompt>$</prompt> <userinput>iscsiadm -m session -u -r 15</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>iscsiadm -m session -u -r 15</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Do not forget the <literal>-r</literal>
|
||||
|
@ -55,12 +55,12 @@
|
||||
<substeps>
|
||||
<step>
|
||||
<para>Use this command to list all volumes:</para>
|
||||
<screen><prompt>$</prompt> <userinput>lvdisplay</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>lvdisplay</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create the snapshot; you can do this while
|
||||
the volume is attached to an instance:</para>
|
||||
<screen><prompt>$</prompt> <userinput>lvcreate --size 10G --snapshot --name volume-00000001-snapshot /dev/cinder-volumes/volume-00000001</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>lvcreate --size 10G --snapshot --name volume-00000001-snapshot /dev/cinder-volumes/volume-00000001</userinput></screen>
|
||||
<para>Use the <option>--snapshot</option>
|
||||
configuration option to tell LVM that you want
|
||||
a snapshot of an already existing volume. The
|
||||
@ -136,7 +136,7 @@ Block device 251:14</programlisting>
|
||||
partitions created inside instances, you
|
||||
cannot see its content and create efficient
|
||||
backups.</para>
|
||||
<screen><prompt>$</prompt> <userinput>kpartx -av /dev/cinder-volumes/volume-00000001-snapshot</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>kpartx -av /dev/cinder-volumes/volume-00000001-snapshot</userinput></screen>
|
||||
<note os="debian">
|
||||
<para>On a Debian-based distribution, you can
|
||||
use the <command>apt-get install kpartx</command>
|
||||
@ -163,7 +163,7 @@ Block device 251:14</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Mount your partition:</para>
|
||||
<screen><prompt>$</prompt> <userinput>mount /dev/mapper/cinder--volumes-volume--volume--00000001--snapshot1 /mnt</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>mount /dev/mapper/cinder--volumes-volume--volume--00000001--snapshot1 /mnt</userinput></screen>
|
||||
<para>If the partition mounts successfully, no
|
||||
errors are returned.</para>
|
||||
<para>You can directly access the data inside the
|
||||
|
@ -181,8 +181,8 @@
|
||||
to the appropriate value to include the IP addresses of
|
||||
<literal>HostB</literal> and <literal>HostC</literal>.
|
||||
Then restart the NFS server:</para>
|
||||
<screen><prompt>$</prompt> <userinput>/etc/init.d/nfs-kernel-server restart</userinput>
|
||||
<prompt>$</prompt> <userinput>/etc/init.d/idmapd restart</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>/etc/init.d/nfs-kernel-server restart</userinput>
|
||||
<prompt>#</prompt> <userinput>/etc/init.d/idmapd restart</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Set the 'execute/search' bit on your shared
|
||||
@ -235,7 +235,7 @@ HostA: 921515008 101921792 772783104 12% /var/lib/nova/instances ( <
|
||||
</para>
|
||||
<para>Restart libvirt. After you run the command, ensure that
|
||||
libvirt is successfully restarted:</para>
|
||||
<screen><prompt>$</prompt> <userinput>stop libvirt-bin && start libvirt-bin</userinput>
|
||||
<screen><prompt>#</prompt> <userinput>stop libvirt-bin && start libvirt-bin</userinput>
|
||||
<prompt>$</prompt> <userinput>ps -ef | grep libvirt</userinput></screen>
|
||||
<screen><computeroutput>root 1145 1 0 Nov27 ? 00:00:03 /usr/sbin/libvirtd -d -l</computeroutput></screen>
|
||||
</step>
|
||||
|
@ -457,14 +457,14 @@
|
||||
of tenants by specifying an Identity
|
||||
<option>tenant_id</option> in the command, as
|
||||
follows:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create --tenant-id=<replaceable>tenant-id</replaceable> <replaceable>network-name</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create --tenant-id=<replaceable>tenant-id</replaceable> <replaceable>network-name</replaceable></userinput></screen>
|
||||
<para>For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create --tenant-id=5e4bbe24b67a4410bc4d9fae29ec394e net1</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create --tenant-id=5e4bbe24b67a4410bc4d9fae29ec394e net1</userinput></screen>
|
||||
<note>
|
||||
<para>To view all tenant IDs in Identity, run the
|
||||
following command as an Identity Service admin
|
||||
user:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone tenant-list</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>keystone tenant-list</userinput></screen>
|
||||
</note>
|
||||
</section>
|
||||
<?hard-pagebreak?>
|
||||
@ -487,37 +487,37 @@
|
||||
<tr>
|
||||
<td>Creates a network that all tenants can
|
||||
use.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron net-create --shared public-net</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron net-create --shared public-net</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creates a subnet with a specified
|
||||
gateway IP address.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron subnet-create --gateway 10.0.0.254 net1 10.0.0.0/24</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron subnet-create --gateway 10.0.0.254 net1 10.0.0.0/24</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creates a subnet that has no gateway
|
||||
IP address.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron subnet-create --no-gateway net1 10.0.0.0/24</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron subnet-create --no-gateway net1 10.0.0.0/24</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creates a subnet with DHCP
|
||||
disabled.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron subnet-create net1 10.0.0.0/24 --enable_dhcp False</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron subnet-create net1 10.0.0.0/24 --enable_dhcp False</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creates a subnet with a specified set
|
||||
of host routes.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron subnet-create test-net1 40.0.0.0/24 --host_routes type=dict list=true destination=40.0.1.0/24,nexthop=40.0.0.2</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron subnet-create test-net1 40.0.0.0/24 --host_routes type=dict list=true destination=40.0.1.0/24,nexthop=40.0.0.2</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creates a subnet with a specified set
|
||||
of dns name servers.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron subnet-create test-net1 40.0.0.0/24 --dns_nameservers list=true 8.8.8.7 8.8.8.8</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron subnet-create test-net1 40.0.0.0/24 --dns_nameservers list=true 8.8.8.7 8.8.8.8</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Displays all ports and IPs allocated
|
||||
on a network.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-list --network_id <replaceable>net-id</replaceable></userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-list --network_id <replaceable>net-id</replaceable></userinput></screen></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -545,12 +545,12 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Checks available networks.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron net-list</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron net-list</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Boots a VM with a single NIC on a
|
||||
selected Networking network.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> --nic net-id=<replaceable>net-id</replaceable> <replaceable>vm-name</replaceable></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> --nic net-id=<replaceable>net-id</replaceable> <replaceable>vm-name</replaceable></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -561,17 +561,17 @@
|
||||
linkend="network_compute_note"
|
||||
/>.</para>
|
||||
</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-list --device_id=<replaceable>vm-id</replaceable></userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-list --device_id=<replaceable>vm-id</replaceable></userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Searches for ports, but shows only the
|
||||
<option>mac_address</option> of the port.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-list --field mac_address --device_id=<replaceable>vm-id</replaceable></userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-list --field mac_address --device_id=<replaceable>vm-id</replaceable></userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Temporarily disables a port from
|
||||
sending traffic.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-update <replaceable>port-id</replaceable> --admin_state_up=False</userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-update <replaceable>port-id</replaceable> --admin_state_up=False</userinput></screen></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -618,7 +618,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Boots a VM with multiple NICs.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> --nic net-id=<replaceable>net1-id</replaceable> --nic net-id=<replaceable>net2-id</replaceable> <replaceable>vm-name</replaceable></userinput></screen></td>
|
||||
<td><screen><prompt>$</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> --nic net-id=<replaceable>net1-id</replaceable> --nic net-id=<replaceable>net2-id</replaceable> <replaceable>vm-name</replaceable></userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Boots a VM with a specific IP address.
|
||||
@ -627,8 +627,8 @@
|
||||
specifying a <option>port-id</option>
|
||||
rather than a
|
||||
<option>net-id</option>.</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-create --fixed-ip subnet_id=<replaceable>subnet-id</replaceable>,ip_address=<replaceable>IP</replaceable> <replaceable>net-id</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> --nic port-id=<replaceable>port-id</replaceable> <replaceable>vm-name</replaceable></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-create --fixed-ip subnet_id=<replaceable>subnet-id</replaceable>,ip_address=<replaceable>IP</replaceable> <replaceable>net-id</replaceable></userinput>
|
||||
<prompt>$</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> --nic port-id=<replaceable>port-id</replaceable> <replaceable>vm-name</replaceable></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -637,7 +637,7 @@
|
||||
tenant who submits the request
|
||||
(without the <parameter>--nic</parameter>
|
||||
option).</td>
|
||||
<td><screen><prompt>#</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> <replaceable>vm-name</replaceable></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>nova boot --image <replaceable>img</replaceable> --flavor <replaceable>flavor</replaceable> <replaceable>vm-name</replaceable></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -665,9 +665,9 @@
|
||||
<command>ping</command> and
|
||||
<command>ssh</command> access to your
|
||||
VMs.</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron security-group-rule-create --protocol icmp \
|
||||
<screen><prompt>$</prompt> <userinput>neutron security-group-rule-create --protocol icmp \
|
||||
--direction ingress default</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>neutron security-group-rule-create --protocol tcp --port-range-min 22 \
|
||||
<screen><prompt>$</prompt> <userinput>neutron security-group-rule-create --protocol tcp --port-range-min 22 \
|
||||
--port-range-max 22 --direction ingress default</userinput></screen>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@ -680,8 +680,8 @@
|
||||
commands enable <command>ping</command>
|
||||
and <command>ssh</command> access to your
|
||||
VMs.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0</userinput>
|
||||
<prompt>#</prompt> <userinput>nova secgroup-add-rule default tcp 22 22 0.0.0.0/0</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0</userinput>
|
||||
<prompt>$</prompt> <userinput>nova secgroup-add-rule default tcp 22 22 0.0.0.0/0</userinput></screen>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<note>
|
||||
|
@ -522,14 +522,14 @@
|
||||
networks.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create public --router:external=True</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron subnet-create public 172.16.1.0/24</userinput></screen>
|
||||
<prompt>$</prompt> <userinput>neutron subnet-create public 172.16.1.0/24</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Lists external networks.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-list -- --router:external=True</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-list -- --router:external=True</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -537,13 +537,13 @@
|
||||
connects to multiple L2 networks
|
||||
privately.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create net1</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron subnet-create net1 10.0.0.0/24</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron net-create net2</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron subnet-create net2 10.0.1.0/24</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron router-create router1</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron router-interface-add router1 <subnet1-uuid></userinput>
|
||||
<prompt>#</prompt> <userinput>neutron router-interface-add router1 <subnet2-uuid></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create net1</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron subnet-create net1 10.0.0.0/24</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron net-create net2</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron subnet-create net2 10.0.1.0/24</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron router-create router1</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron router-interface-add router1 <subnet1-uuid></userinput>
|
||||
<prompt>$</prompt> <userinput>neutron router-interface-add router1 <subnet2-uuid></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -553,7 +553,7 @@
|
||||
act as a NAT gateway for external
|
||||
connectivity.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-gateway-set router1 <ext-net-id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-gateway-set router1 <ext-net-id></userinput></screen>
|
||||
<para>The router obtains an interface with
|
||||
the gateway_ip address of the subnet,
|
||||
and this interface is attached to a
|
||||
@ -573,7 +573,7 @@
|
||||
<td>
|
||||
<para>Lists routers.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-list</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-list</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -581,7 +581,7 @@
|
||||
<para>Shows information for a specified
|
||||
router.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-show <router_id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-show <router_id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -597,11 +597,11 @@
|
||||
represents the VM NIC to which the
|
||||
floating IP should map.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron port-list -c id -c fixed_ips -- --device_id=<instance_id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron port-list -c id -c fixed_ips -- --device_id=<instance_id></userinput></screen>
|
||||
<para>This port must be on an Networking
|
||||
subnet that is attached to a router
|
||||
uplinked to the external network used
|
||||
to create the floating IP.
|
||||
to create the floating IP.
|
||||
Conceptually, this is because the
|
||||
router must be able to perform the
|
||||
Destination NAT (DNAT) rewriting of
|
||||
@ -617,8 +617,8 @@
|
||||
<para>Creates a floating IP address and
|
||||
associates it with a port.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-create <ext-net-id></userinput>
|
||||
<prompt>#</prompt> <userinput>neutron floatingip-associate <floatingip-id> <internal VM port-id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-create <ext-net-id></userinput>
|
||||
<prompt>$</prompt> <userinput>neutron floatingip-associate <floatingip-id> <internal VM port-id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -627,14 +627,14 @@
|
||||
associates it with a port, in a single
|
||||
step.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-create --port_id <internal VM port-id> <ext-net-id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-create --port_id <internal VM port-id> <ext-net-id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Lists floating IPs.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-list</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-list</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -642,7 +642,7 @@
|
||||
<para>Finds floating IP for a specified VM
|
||||
port.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-list -- --port_id=ZZZ</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-list -- --port_id=ZZZ</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -650,7 +650,7 @@
|
||||
<para>Disassociates a floating IP
|
||||
address.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-disassociate <floatingip-id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-disassociate <floatingip-id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -658,14 +658,14 @@
|
||||
<para>Deletes the floating IP
|
||||
address.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-delete <floatingip-id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-delete <floatingip-id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Clears the gateway.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-gateway-clear router1</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-gateway-clear router1</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -673,14 +673,14 @@
|
||||
<para>Removes the interfaces from the
|
||||
router.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-interface-delete router1 <subnet-id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-interface-delete router1 <subnet-id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Deletes the router.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-delete router1</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-delete router1</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -898,51 +898,51 @@
|
||||
<para>Creates a security group for our web
|
||||
servers.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron security-group-create webservers --description "security group for webservers"</userinput></screen></td>
|
||||
<screen><prompt>$</prompt> <userinput>neutron security-group-create webservers --description "security group for webservers"</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><para>Lists security groups.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron security-group-list</userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron security-group-list</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Creates a security group rule to
|
||||
allow port 80 ingress.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron security-group-rule-create --direction ingress --protocol tcp --port_range_min 80 --port_range_max 80 <security_group_uuid></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron security-group-rule-create --direction ingress --protocol tcp --port_range_min 80 --port_range_max 80 <security_group_uuid></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Lists security group
|
||||
rules.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron security-group-rule-list</userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron security-group-rule-list</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><para>Deletes a security group
|
||||
rule.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron security-group-rule-delete <security_group_rule_uuid></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron security-group-rule-delete <security_group_rule_uuid></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Deletes a security
|
||||
group.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron security-group-delete <security_group_uuid></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron security-group-delete <security_group_uuid></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><para>Creates a port and associates two
|
||||
security groups.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-create --security-group <security_group_id1> --security-group <security_group_id2> <network_id></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-create --security-group <security_group_id1> --security-group <security_group_id2> <network_id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Removes security groups from a
|
||||
port.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron port-update --no-security-groups <port_id></userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron port-update --no-security-groups <port_id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -989,15 +989,15 @@
|
||||
option is required for pool
|
||||
creation.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron lb-pool-create --lb-method ROUND_ROBIN --name mypool --protocol HTTP --subnet-id <subnet-uuid> <parameter>--provider <provider_name></parameter></userinput></screen></td>
|
||||
<screen><prompt>$</prompt> <userinput>neutron lb-pool-create --lb-method ROUND_ROBIN --name mypool --protocol HTTP --subnet-id <subnet-uuid> <parameter>--provider <provider_name></parameter></userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Associates two web servers with
|
||||
pool.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron lb-member-create --address <webserver one IP> --protocol-port 80 mypool</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron lb-member-create --address <webserver two IP> --protocol-port 80 mypool</userinput></screen></td>
|
||||
<screen><prompt>$</prompt> <userinput>neutron lb-member-create --address <webserver one IP> --protocol-port 80 mypool</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron lb-member-create --address <webserver two IP> --protocol-port 80 mypool</userinput></screen></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -1005,13 +1005,13 @@
|
||||
make sure our instances are still running
|
||||
on the specified
|
||||
protocol-port.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron lb-healthmonitor-create --delay 3 --type HTTP --max-retries 3 --timeout 3</userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron lb-healthmonitor-create --delay 3 --type HTTP --max-retries 3 --timeout 3</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><para>Associates a health monitor with
|
||||
pool.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron lb-healthmonitor-associate <healthmonitor-uuid> mypool</userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron lb-healthmonitor-associate <healthmonitor-uuid> mypool</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1021,7 +1021,7 @@
|
||||
directs the requests to one of the pool
|
||||
members.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron lb-vip-create --name myvip --protocol-port 80 --protocol HTTP --subnet-id <subnet-uuid> mypool</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron lb-vip-create --name myvip --protocol-port 80 --protocol HTTP --subnet-id <subnet-uuid> mypool</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1371,7 +1371,7 @@
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Create a firewall rule:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron firewall-rule-create --protocol <tcp|udp|icmp|any> --destination-port <port-range> --action <allow|deny></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron firewall-rule-create --protocol <tcp|udp|icmp|any> --destination-port <port-range> --action <allow|deny></userinput></screen>
|
||||
<para>The CLI requires that a protocol value be
|
||||
provided. If the rule is protocol agnostic,
|
||||
the 'any' value can be used.</para>
|
||||
@ -1382,7 +1382,7 @@
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Create a firewall policy:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron firewall-policy-create --firewall-rules "<firewall-rule ids or names separated by space>" myfirewallpolicy</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron firewall-policy-create --firewall-rules "<firewall-rule ids or names separated by space>" myfirewallpolicy</userinput></screen>
|
||||
<para>The order of the rules specified above is
|
||||
important. A firewall policy can be created
|
||||
without any rules and rules can be added later
|
||||
@ -1402,7 +1402,7 @@
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Create a firewall:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron firewall-create <firewall-policy-uuid></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron firewall-create <firewall-policy-uuid></userinput></screen>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<note>
|
||||
@ -1437,12 +1437,12 @@
|
||||
<listitem>
|
||||
<para>Create a port with a specific
|
||||
allowed-address-pairs:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron port-create net1 --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron port-create net1 --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr></userinput></screen>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Update a port adding
|
||||
allowed-address-pairs:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron port-update <port-uuid> --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron port-update <port-uuid> --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr></userinput></screen>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<note>
|
||||
@ -1604,7 +1604,7 @@
|
||||
<para>Creates QoS Queue
|
||||
(admin-only).</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron queue-create--min 10 --max 1000 myqueue</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron queue-create--min 10 --max 1000 myqueue</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1612,20 +1612,20 @@
|
||||
<para>Associates a queue with a
|
||||
network.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create network --queue_id=<queue_id></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create network --queue_id=<queue_id></userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<para>Creates a default system
|
||||
queue.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron queue-create --default True --min 10 --max 2000 default</userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron queue-create --default True --min 10 --max 2000 default</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><para>Lists QoS
|
||||
queues.</para></td>
|
||||
<td><screen><prompt>#</prompt> <userinput>neutron queue-list</userinput></screen>
|
||||
<td><screen><prompt>$</prompt> <userinput>neutron queue-list</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1633,7 +1633,7 @@
|
||||
<para>Deletes a QoS
|
||||
queue.</para></td>
|
||||
<td>
|
||||
<screen><prompt>#</prompt> <userinput>neutron queue-delete <queue_id or name>'</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron queue-delete <queue_id or name>'</userinput></screen>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1712,11 +1712,11 @@
|
||||
<title>VMware NSX L3 extension operations</title>
|
||||
<para>Create external network and map it to a
|
||||
specific NSX gateway service:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create public --router:external=True --provider:network_type l3_ext \
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create public --router:external=True --provider:network_type l3_ext \
|
||||
--provider:physical_network <L3-Gateway-Service-UUID></userinput></screen>
|
||||
<para>Terminate traffic on a specific VLAN from a
|
||||
NSX gateway service:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create public --router:external=True --provider:network_type l3_ext \
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create public --router:external=True --provider:network_type l3_ext \
|
||||
--provider:physical_network <L3-Gateway-Service-UUID> --provider:segmentation_id <VLAN_ID></userinput></screen>
|
||||
</section>
|
||||
</section>
|
||||
@ -1966,17 +1966,17 @@
|
||||
<para>Update a router with rules to permit traffic
|
||||
by default but block traffic from external
|
||||
networks to the 10.10.10.0/24 subnet:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-update <replaceable>Router-UUID</replaceable> --router_rules type=dict list=true\
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-update <replaceable>Router-UUID</replaceable> --router_rules type=dict list=true\
|
||||
source=any,destination=any,action=permit \
|
||||
source=external,destination=10.10.10.0/24,action=deny</userinput></screen>
|
||||
<para>Specify alternate next-hop addresses for a
|
||||
specific subnet:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-update <replaceable>Router-UUID</replaceable> --router_rules type=dict list=true\
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-update <replaceable>Router-UUID</replaceable> --router_rules type=dict list=true\
|
||||
source=any,destination=any,action=permit \
|
||||
source=10.10.10.0/24,destination=any,action=permit,nexthops=10.10.10.254+10.10.10.253</userinput></screen>
|
||||
<para>Block traffic between two subnets while
|
||||
allowing everything else:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-update <replaceable>Router-UUID</replaceable> --router_rules type=dict list=true\
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-update <replaceable>Router-UUID</replaceable> --router_rules type=dict list=true\
|
||||
source=any,destination=any,action=permit \
|
||||
source=10.10.10.0/24,destination=10.20.20.20/24,action=deny</userinput></screen>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user