#!/usr/bin/env bash sudo apt update sudo apt install -y build-essential python python-dev python-pip python-setuptools
➜ ~ nova list --fields name,status,networks +--------------------------------------+-------+--------+-----------------------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+-------+--------+-----------------------------------------------+ | a8337ef7-693b-4f8f-a90c-b5d4ed087528 | web-1 | ACTIVE | Ext-Net=54.38.136.26, 2001:41d0:601:2000::26c | +--------------------------------------+-------+--------+-----------------------------------------------+
ubuntu@web-1:~$ ip addr show ens3 2: ens3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether fa:16:3e:5b:71:db brd ff:ff:ff:ff:ff:ff inet 54.38.136.26/32 brd 54.38.136.26 scope global ens3 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe5b:71db/64 scope link valid_lft forever preferred_lft forever ubuntu@web-1:~$ ip route default via 54.38.136.1 dev ens3 54.38.136.1 dev ens3 scope link
➜ ~ neutron net-show Private-Net neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +--------------------------+--------------------------------------+ | Field | Value | +--------------------------+--------------------------------------+ | admin_state_up | True | | availability_zone_hints | | | availability_zones | nova | | created_at | 2018-02-13T10:44:43Z | | description | | | id | adc65d0c-abd3-47d9-a1a3-96ed4ea50485 | | ipv4_address_scope | | | ipv6_address_scope | | | mtu | 9000 | | name | Private-Net | | project_id | 84506b08626d4e03a581d170f3bc53d2 | | provider:network_type | vrack | | provider:segmentation_id | 0 | | qos_policy_id | | | revision_number | 4 | | router:external | False | | shared | False | | status | ACTIVE | | subnets | b55fd630-79e4-4101-9d30-12ba693533ca | | tags | | | tenant_id | 84506b08626d4e03a581d170f3bc53d2 | | updated_at | 2018-02-13T10:44:49Z | +--------------------------+--------------------------------------+
➜ ~ neutron subnet-show b55fd630-79e4-4101-9d30-12ba693533ca neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +-------------------+----------------------------------------------------+ | Field | Value | +-------------------+----------------------------------------------------+ | allocation_pools | {"start": "192.168.0.214", "end": "192.168.0.254"} | | cidr | 192.168.0.0/24 | | created_at | 2018-02-13T10:44:49Z | | description | | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | | | host_routes | | | id | b55fd630-79e4-4101-9d30-12ba693533ca | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | | | network_id | adc65d0c-abd3-47d9-a1a3-96ed4ea50485 | | project_id | 84506b08626d4e03a581d170f3bc53d2 | | revision_number | 2 | | service_types | | | subnetpool_id | | | tenant_id | 84506b08626d4e03a581d170f3bc53d2 | | updated_at | 2018-02-13T10:44:49Z | +-------------------+----------------------------------------------------+
➜ ~ nova list --fields name,status,networks +--------------------------------------+-------+--------+----------------------------------------------------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+-------+--------+----------------------------------------------------------------------------+ | 9c1097ae-2e7e-4244-91b6-017ed75191b4 | db-1 | ACTIVE | Ext-Net=145.239.28.190, 2001:41d0:601:2000::245; Private-Net=192.168.0.224 | | a8337ef7-693b-4f8f-a90c-b5d4ed087528 | web-1 | ACTIVE | Ext-Net=54.38.136.26, 2001:41d0:601:2000::26c; Private-Net=192.168.0.218 | +--------------------------------------+-------+--------+----------------------------------------------------------------------------+
ubuntu@web-1:~$ mtr -r -c 1 192.168.0.224 Start: Tue Feb 13 13:17:33 2018 HOST: web-1 Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.168.0.224 0.0% 1 1.4 1.4 1.4 1.4 0.0
ubuntu@web-1:~$ mtr -r -c 1 145.239.28.190 Start: Tue Feb 13 13:17:52 2018 HOST: web-1 Loss% Snt Last Avg Best Wrst StDev 1.|-- 54.38.136.1 0.0% 1 0.2 0.2 0.2 0.2 0.0 2.|-- 192.168.250.254 0.0% 1 0.1 0.1 0.1 0.1 0.0 3.|-- 192.168.250.8 0.0% 1 0.3 0.3 0.3 0.3 0.0 4.|-- ip-145-239-28.eu 0.0% 1 0.4 0.4 0.4 0.4 0.0