Skip to content

Instantly share code, notes, and snippets.

@vbrinza
Created March 2, 2016 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbrinza/94ab90abce7e644c9b54 to your computer and use it in GitHub Desktop.
Save vbrinza/94ab90abce7e644c9b54 to your computer and use it in GitHub Desktop.
[root@openstack ~(keystone_test)]# nova list
+--------------------------------------+-------+--------+------------+-------------+----------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+----------------------------------+
| 86e1285b-f3e2-43ca-9a9f-47efc24a9f25 | test | ACTIVE | - | Running | internal=10.10.0.3, 192.168.1.12 |
| 81f7c8de-b37c-4ee1-83fc-078db17fcb13 | test1 | ACTIVE | - | Running | internal=10.10.0.4, 192.168.1.13 |
+--------------------------------------+-------+--------+------------+-------------+----------------------------------+
[root@openstack ~(keystone_test)]# nova show test
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-03-01T11:34:48.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-03-01T11:34:40Z |
| flavor | m1.small (2) |
| hostId | b4293f75623e192d897d73512cba42620bac45e4db4c04c8450541b6 |
| id | 86e1285b-f3e2-43ca-9a9f-47efc24a9f25 |
| image | CentOS-7-x86_64 (08b8923d-4f31-4f37-a9a8-29c0f7661023) |
| internal network | 10.10.0.3, 192.168.1.12 |
| key_name | myssh-keys |
| metadata | {} |
| name | test |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | centos-rules |
| status | ACTIVE |
| tenant_id | f9832c1dc6c24239968621050c15abb9 |
| updated | 2016-03-01T13:01:54Z |
| user_id | e821bca263d44bc2ab7e6cc3382b5332 |
+--------------------------------------+----------------------------------------------------------+
[root@openstack ~(keystone_test)]# neutron net-list
+--------------------------------------+----------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+----------+-----------------------------------------------------+
| fd3a863d-0547-4908-8962-9f5a97a8592d | external | 57f035cb-ae97-46cb-9c94-2f2f6ab193bd 192.168.1.0/24 |
| 19d6c7e7-56c0-4007-8f16-1db40aab3903 | internal | 6cfec4d4-453c-4ad8-a77f-d999e9aaf651 10.10.0.0/24 |
+--------------------------------------+----------+-----------------------------------------------------+
[root@openstack ~(keystone_test)]# neutron net-show external
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| admin_state_up | True |
| id | fd3a863d-0547-4908-8962-9f5a97a8592d |
| mtu | 0 |
| name | external |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | 57f035cb-ae97-46cb-9c94-2f2f6ab193bd |
| tenant_id | f9832c1dc6c24239968621050c15abb9 |
+-----------------+--------------------------------------+
[root@openstack ~(keystone_test)]# neutron net-show internal
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| admin_state_up | True |
| id | 19d6c7e7-56c0-4007-8f16-1db40aab3903 |
| mtu | 0 |
| name | internal |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | 6cfec4d4-453c-4ad8-a77f-d999e9aaf651 |
| tenant_id | f9832c1dc6c24239968621050c15abb9 |
+-----------------+--------------------------------------+
[root@openstack ~(keystone_test)]# neutron router-list
+--------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | name | external_gateway_info |
+--------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| a5c68530-3d24-4bda-956d-bbc8503f8c5d | router1 | {"network_id": "fd3a863d-0547-4908-8962-9f5a97a8592d", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "57f035cb-ae97-46cb-9c94-2f2f6ab193bd", "ip_address": "192.168.1.11"}]} |
+--------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@openstack ~(keystone_test)]# neutron router-show router1
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| external_gateway_info | {"network_id": "fd3a863d-0547-4908-8962-9f5a97a8592d", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "57f035cb-ae97-46cb-9c94-2f2f6ab193bd", "ip_address": "192.168.1.11"}]} |
| id | a5c68530-3d24-4bda-956d-bbc8503f8c5d |
| name | router1 |
| routes | |
| status | ACTIVE |
| tenant_id | f9832c1dc6c24239968621050c15abb9 |
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@openstack ~(keystone_test)]# neutron router-port-list router1
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
| cc535b0b-51bc-4beb-bf2e-6ccce2fc4fbb | | fa:16:3e:dc:a3:83 | {"subnet_id": "6cfec4d4-453c-4ad8-a77f-d999e9aaf651", "ip_address": "10.10.0.1"} |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment