Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenStack multinet setup
[root@compute ~]# nova secgroup-list
+--------------------------------------+------------+-----------------+
| Id | Name | Description |
+--------------------------------------+------------+-----------------+
| cc36ac51-919c-4bcc-b621-838a2475d646 | db_client | DB Access group |
| ebb74efc-0cfb-4bb6-86a6-d36aa748a64c | db_server | DB Server |
| 5e4ab003-4ed2-4b72-9c85-e63b2c0daead | default | default |
| 692737cb-99c5-4f51-bf83-1540107fa010 | web_server | Web Server |
+--------------------------------------+------------+-----------------+
[root@compute ~]# nova secgroup-list-rules 5e4ab003-4ed2-4b72-9c85-e63b2c0daead
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| | | | | default |
| | | | | default |
| icmp | -1 | -1 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
[root@compute ~]# nova secgroup-list-rules cc36ac51-919c-4bcc-b621-838a2475d646
+-------------+-----------+---------+----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+----------+--------------+
+-------------+-----------+---------+----------+--------------+
[root@compute ~]# nova secgroup-list-rules ebb74efc-0cfb-4bb6-86a6-d36aa748a64c
+-------------+-----------+---------+----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+----------+--------------+
| tcp | 5432 | 5432 | | db_client |
+-------------+-----------+---------+----------+--------------+
[root@compute ~]# nova secgroup-list-rules 5e4ab003-4ed2-4b72-9c85-e63b2c0daead
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| | | | | default |
| | | | | default |
| icmp | -1 | -1 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
[root@compute ~]# nova secgroup-list-rules 692737cb-99c5-4f51-bf83-1540107fa010
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| tcp | 443 | 443 | 0.0.0.0/0 | |
| tcp | 80 | 80 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
[root@compute ~]# neutron subnet-list
+--------------------------------------+------------------------+-----------------+------------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+------------------------+-----------------+------------------------------------------------------+
| 097341fd-13a4-449d-8e2b-209d84768594 | private-subnet1 | 10.2.0.0/24 | {"start": "10.2.0.2", "end": "10.2.0.254"} |
| 4017f724-8e31-45aa-8039-34ff28ed9b40 | gb_frontend_net | 10.10.31.0/24 | {"start": "10.10.31.2", "end": "10.10.31.254"} |
| 96fa1d7e-5c06-4d52-9a70-393b90730ffc | private_gb_db_subnet1 | 10.10.10.0/24 | {"start": "10.10.10.2", "end": "10.10.10.254"} |
| cfe76316-17a1-43c6-9c44-335fb5c73884 | private_gb_mid_subnet1 | 10.10.25.0/24 | {"start": "10.10.25.2", "end": "10.10.25.254"} |
| ff02ae13-f632-4b85-aafb-5c4259f45910 | public-subnet1 | 123.45.67.0/24 | {"start": "123.45.67.128", "end": "123.45.67.159"} |
+--------------------------------------+------------------------+-----------------+------------------------------------------------------+
[root@compute ~]# nova list
+--------------------------------------+---------------+--------+------------+-------------+-------------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+---------------+--------+------------+-------------+-------------------------------------------------+
| 051a41dc-da39-4c13-ac7d-831d40b207a3 | systest-db | ACTIVE | - | Running | private_gb_db_net=10.10.10.3, 123.45.67.145 |
| 723b1197-9a5f-4e77-8ede-6b57f0adf827 | systest-front | ACTIVE | - | Running | private_gb_front_net=10.10.31.2, 123.45.67.141 |
| bb37744e-ef67-4135-b56d-b4727b09cfba | systest-mid | ACTIVE | - | Running | private_gb_mid_net=10.10.25.4, 123.45.67.144 |
+--------------------------------------+---------------+--------+------------+-------------+-------------------------------------------------+
[root@compute ~]# neutron router-list
+--------------------------------------+----------------------+-----------------------------------------------------------------------------+
| id | name | external_gateway_info |
+--------------------------------------+----------------------+-----------------------------------------------------------------------------+
| 3e7389cc-5982-42cf-a533-f22ac50b200e | gb_front_mid_router | null |
| 6c67f99c-ab71-426b-96de-4fa4f13b54c8 | gb_mid_db_router | null |
| 9ad0bb63-0645-4b49-9e9a-0d44b74dae66 | gb_mid_public_router | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| ab8d8c29-1859-4ce7-9567-1298eb1e0bc4 | private-to-public | null |
| b7b2841d-1b57-4f86-855e-3b8f22b9be0a | real_router | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| e21a0a44-09fd-4e4a-b54c-a7475eb33982 | gb_front_db_router | null |
| f3628f34-d1d8-441f-b4bd-d37c31ec2312 | gb_db_public_router | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| f7a8e316-b522-49f7-9ca2-274d77b5a46b | gb_public_router | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
+--------------------------------------+----------------------+-----------------------------------------------------------------------------+
# for r in $(cat routers) ; do neutron router-show ${r} ; done
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | 3e7389cc-5982-42cf-a533-f22ac50b200e |
| name | gb_front_mid_router |
| routes | |
| status | ACTIVE |
| tenant_id | 57970ba569fc4b11b349126179178e76 |
+-----------------------+--------------------------------------+
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | 6c67f99c-ab71-426b-96de-4fa4f13b54c8 |
| name | gb_mid_db_router |
| routes | |
| status | ACTIVE |
| tenant_id | 57970ba569fc4b11b349126179178e76 |
+-----------------------+--------------------------------------+
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | True |
| external_gateway_info | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| id | 9ad0bb63-0645-4b49-9e9a-0d44b74dae66 |
| name | gb_mid_public_router |
| routes | |
| status | ACTIVE |
| tenant_id | 57970ba569fc4b11b349126179178e76 |
+-----------------------+-----------------------------------------------------------------------------+
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | ab8d8c29-1859-4ce7-9567-1298eb1e0bc4 |
| name | private-to-public |
| routes | |
| status | ACTIVE |
| tenant_id | 6b8003ce3384406d9c2de752995aaadd |
+-----------------------+--------------------------------------+
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | True |
| external_gateway_info | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| id | b7b2841d-1b57-4f86-855e-3b8f22b9be0a |
| name | real_router |
| routes | |
| status | ACTIVE |
| tenant_id | 8a8f8b88f193465a8eca4e91f6f71cf4 |
+-----------------------+-----------------------------------------------------------------------------+
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | e21a0a44-09fd-4e4a-b54c-a7475eb33982 |
| name | gb_front_db_router |
| routes | |
| status | ACTIVE |
| tenant_id | 57970ba569fc4b11b349126179178e76 |
+-----------------------+--------------------------------------+
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | True |
| external_gateway_info | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| id | f3628f34-d1d8-441f-b4bd-d37c31ec2312 |
| name | gb_db_public_router |
| routes | |
| status | ACTIVE |
| tenant_id | 57970ba569fc4b11b349126179178e76 |
+-----------------------+-----------------------------------------------------------------------------+
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | True |
| external_gateway_info | {"network_id": "5d1dd75c-07e7-4ab3-86e3-48591f53009e", "enable_snat": true} |
| id | f7a8e316-b522-49f7-9ca2-274d77b5a46b |
| name | gb_public_router |
| routes | |
| status | ACTIVE |
| tenant_id | 57970ba569fc4b11b349126179178e76 |
+-----------------------+-----------------------------------------------------------------------------+
@droopy4096

This comment has been minimized.

Copy link
Owner Author

commented May 21, 2015

Environment:

RHEL6
OpenStack IceHouse (neutron + OpenVSwitch+ml2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.